/* start — kimo (https://getkimo.tech/install) */
@font-face {
  font-family: "Inter";
  src:
    url("/assets/InterVariable.woff2") format("woff2"),

    url("https://getkimo.tech/assets/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src:
    url("/assets/Manrope.ttf") format("truetype"),

    url("https://getkimo.tech/assets/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #0a0a0b;
  --ink-2: #080809;
  --ink-3: #131315;
  --paper: #eeeae1;
  --paper-2: #f5f1e7;
  --orange: #ff5a24;
  --smoke: #85827b;
  --line-d: rgba(245,241,231,.12);
  --line-l: rgba(10,10,11,.14);
  --g: clamp(20px, 3.4vw, 56px);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --word: "Manrope", "Inter", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur-fast: 180ms;
  --dur-state: 400ms;
  --dur-reveal: 1000ms;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--paper-2);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 400 16px/1.55 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper-2);
}

img, svg, canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  transition: transform var(--dur-fast) var(--ease);
}

button:active {
  transform: scale(0.97);
}

h1, h2, h3, p, ol, ul, dl, dd, blockquote, pre {
  margin: 0;
}

ol, ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--orange);
  color: var(--ink);
}

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

/* Custom themed scrollbars */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: rgba(10, 10, 11, 0.2);
}
*::-webkit-scrollbar-thumb {
  background: rgba(133, 130, 123, 0.35);
  border-radius: 99px;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  padding-inline: var(--g);
  max-width: 1480px;
  margin-inline: auto;
}

.dim {
  color: var(--smoke);
}

.dim-paper {
  color: #6b675f;
}

.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--orange);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* ---------- Custom Desktop Cursor ---------- */
.kimo-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--paper-2);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition:
    width var(--dur-fast) var(--ease),
    height var(--dur-fast) var(--ease),
    margin var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    border var(--dur-fast) var(--ease);
}

.kimo-cursor.is-ring {
  width: 36px;
  height: 36px;
  margin-left: -18px;
  margin-top: -18px;
  background: transparent;
  border: 1.5px solid var(--paper-2);
}

/* ---------- Top Navigation Bar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--g);
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-d);
  transition:
    background var(--dur-state) var(--ease),
    color var(--dur-state) var(--ease),
    border-color var(--dur-state) var(--ease);
}

.nav.on-paper {
  background: rgba(238, 234, 225, 0.9);
  color: var(--ink);
  border-bottom-color: var(--line-l);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 700 22px/1 var(--word);
  letter-spacing: -.04em;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
}

.nav.on-paper .brand img {
  filter: brightness(0) saturate(100%);
}

.nav-step-rail {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-rail-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  min-height: 36px;
  border-radius: 99px;
  color: var(--smoke);
  font-size: 11.5px;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.nav-rail-short {
  display: none;
}

.nav-rail-pill:hover {
  color: var(--paper-2);
  background: rgba(245, 241, 231, 0.06);
}

.nav.on-paper .nav-rail-pill:hover {
  color: var(--ink);
  background: rgba(10, 10, 11, 0.06);
}

.nav-rail-pill.is-active {
  color: var(--paper-2);
  background: rgba(245, 241, 231, 0.09);
  font-weight: 600;
}

.nav.on-paper .nav-rail-pill.is-active {
  color: var(--ink);
  background: rgba(10, 10, 11, 0.08);
}

.nav-rail-pill.is-active .nav-rail-num {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 99px;
  color: rgba(245, 241, 231, .76);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.nav.on-paper .nav-links a {
  color: rgba(10, 10, 11, .72);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: currentColor;
  background: rgba(245, 241, 231, .08);
}

.nav.on-paper .nav-links a:hover,
.nav.on-paper .nav-links a:focus-visible {
  background: rgba(10, 10, 11, .07);
}

/* ---------- Self-Drawing SVG Checkmark ---------- */
.draw-check-svg {
  display: inline-block;
  flex-shrink: 0;
}

.draw-check-path {
  stroke-dasharray: 20;
  stroke-dashoffset: 0;
  animation: drawStroke var(--dur-state) var(--ease) both;
}

@keyframes drawStroke {
  from {
    stroke-dashoffset: 20;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- THE HERO: A Film Editor's Slate, at Night ---------- */
.slate-hero {
  position: relative;
  min-height: 85vh;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-d);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

.slate-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.slate-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.036;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.slate-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(28px, 4.5vh, 52px);
  padding-bottom: clamp(28px, 4.5vh, 48px);
  gap: clamp(40px, 7vh, 76px);
}

.slate-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-d);
  text-transform: uppercase;
  color: var(--smoke);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.slate-meta-left,
.slate-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: recBlink 1.6s steps(2) infinite;
}

@keyframes recBlink {
  50% {
    opacity: 0.2;
  }
}

.slate-tc {
  color: var(--paper-2);
  font-variant-numeric: tabular-nums;
}

.slate-hero-center {
  margin-block: auto;
}

.slate-hero-title {
  font: 620 clamp(56px, 8.8vw, 152px)/0.9 var(--sans);
  letter-spacing: -0.055em;
  color: var(--paper-2);
  margin-left: -0.04em;
}

.slate-hero-title em,
h2 em,
h3 em {
  font-style: normal;
  color: var(--orange);
}

.word-group {
  display: inline;
}

.word-mask {
  display: inline-block;
  overflow: hidden;
  padding: 0 0.04em 0.1em;
  margin: 0 -0.04em -0.1em;
  vertical-align: bottom;
}

.word-mask + .word-mask {
  margin-left: 0.22em;
}

.word-rise {
  display: inline-block;
  transform: translateY(108%);
  animation: wordMaskRise var(--dur-reveal) var(--ease) forwards;
}

@keyframes wordMaskRise {
  to {
    transform: translateY(0);
  }
}

.slate-hero-sub-row {
  margin-top: clamp(28px, 4.5vh, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.slate-hero-lede {
  color: rgba(245, 241, 231, 0.72);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.45;
  max-width: 48ch;
}

.begin-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  min-height: 46px;
  border-radius: 99px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.begin-pill::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 7px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-state) var(--ease);
}

.begin-pill:hover::after {
  transform: scaleX(1);
}

.clapper-row {
  padding-top: 18px;
  border-top: 1px solid var(--line-d);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.clapper-cells {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.clapper-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  min-height: 38px;
  border-radius: 99px;
  border: 1px solid var(--line-d);
  background: rgba(19, 19, 21, 0.75);
  font-size: 11.5px;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.clapper-pill:hover {
  border-color: rgba(245, 241, 231, 0.35);
  background: var(--ink-3);
}

.clapper-k {
  color: var(--smoke);
}

.clapper-v {
  color: var(--paper-2);
  font-weight: 600;
}

.clapper-sep {
  color: var(--smoke);
}

.clapper-spec {
  color: var(--smoke);
  font-size: 11.5px;
}

/* ---------- THE WORKSPACE (12-Column Editorial Grid on Paper) ---------- */
.chapter--paper {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(72px, 11vh, 136px) 0 clamp(88px, 13vh, 152px);
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
  align-items: start;
}

.workspace-steps-col {
  grid-column: 1 / span 7;
  min-width: 0;
  max-width: 100%;
}

.workspace-term-col {
  grid-column: 8 / span 5;
  position: sticky;
  top: 82px;
  min-width: 0;
  max-width: 100%;
}

.workspace-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-l);
  color: #6b675f;
}

.share-slate-btn {
  padding: 6px 14px;
  min-height: 36px;
  border-radius: 99px;
  border: 1px solid var(--line-l);
  color: var(--ink);
  font-size: 11.5px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.share-slate-btn:hover {
  background: var(--ink);
  color: var(--paper-2);
  border-color: var(--ink);
}

.share-slate-btn.is-copied {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Step Blocks, Giant Outlined Numbers & Wipe ---------- */
.step-block {
  min-width: 0;
  max-width: 100%;
  padding-block: clamp(38px, 5.5vh, 64px);
  border-bottom: 1px solid var(--line-l);
}

.step-block.is-collapsed {
  padding-block: 16px;
}

.collapsed-step-bar {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 4px;
  text-align: left;
  color: var(--ink);
}

.collapsed-left {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
}

.collapsed-num {
  color: var(--smoke);
}

.collapsed-title {
  font: 620 22px/1 var(--sans);
  letter-spacing: -0.035em;
}

.collapsed-choice {
  color: #5d5952;
}

.collapsed-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #5d5952;
}

.collapsed-step-bar:hover .collapsed-right {
  color: var(--ink);
}

.step-header-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 28px);
  align-items: end;
  margin-bottom: 24px;
}

.giant-step-num {
  position: relative;
  font: 700 clamp(76px, 8.5vw, 138px)/0.82 var(--sans);
  letter-spacing: -0.065em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10, 10, 11, 0.16);
  user-select: none;
  font-variant-numeric: tabular-nums;
}

.giant-step-num::after {
  content: attr(data-num);
  position: absolute;
  inset: 0;
  color: var(--ink);
  -webkit-text-stroke: 0 transparent;
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--dur-state) var(--ease);
}

.step-block.is-current .giant-step-num::after {
  clip-path: inset(0 0% 0 0);
}

.step-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.step-eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: #6b675f;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: lowercase;
}

.step-block.is-current .step-eyebrow .step-num {
  color: var(--orange);
  font-weight: 600;
}

.collapse-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  min-height: 32px;
  border-radius: 99px;
  border: 1px solid var(--line-l);
  color: #5b5851;
  font-size: 11px;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.collapse-step-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.step-title {
  font: 620 clamp(30px, 3vw, 48px)/0.96 var(--sans);
  letter-spacing: -0.045em;
  margin-left: -0.03em;
  margin-bottom: 10px;
}

.step-lede {
  color: #3d3b37;
  max-width: 54ch;
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- 3-Up Tactile OS Tiles & Shared Sliding Orange Rule ---------- */
.os-tiles-shell {
  margin-top: 24px;
}

.os-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.os-tile {
  min-width: 0;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line-l);
  background: var(--paper-2);
  color: var(--ink);
  text-align: left;
  transition:
    transform var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    background var(--dur-state) var(--ease),
    color var(--dur-state) var(--ease);
}

.os-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 10, 11, 0.42);
}

.os-tile.is-selected {
  background: var(--ink);
  color: var(--paper-2);
  border-color: var(--ink);
}

.os-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.os-tile-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%);
  transition: filter var(--dur-state) var(--ease);
}

.os-tile.is-selected .os-tile-icon {
  filter: brightness(0) invert(0.95);
}

.os-detected-tag {
  font-size: 10.5px;
  color: #6b675f;
}

.os-tile.is-selected .os-detected-tag {
  color: var(--smoke);
}

.os-tile-name {
  display: block;
  font: 620 clamp(20px, 1.9vw, 26px)/1 var(--sans);
  letter-spacing: -0.04em;
}

.os-tile-spec {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #6b675f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-tile.is-selected .os-tile-spec {
  color: rgba(245, 241, 231, 0.65);
}

.os-sliding-rule-track {
  position: relative;
  height: 2px;
  margin-top: 8px;
  background: rgba(10, 10, 11, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.os-sliding-rule-Indicator {
  width: calc(100% / 3);
  height: 100%;
  background: var(--orange);
  transform: translate3d(calc(var(--active-os-idx, 0) * 100%), 0, 0);
  transition: transform var(--dur-state) var(--ease);
}

/* ---------- OS Detail Panel ---------- */
.os-detail-panel {
  min-width: 0;
  max-width: 100%;
  margin-top: 18px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line-l);
  background: var(--paper-2);
}

.os-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.os-detail-headline {
  margin-top: 4px;
  font-weight: 560;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease);
}

.btn-primary::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-state) var(--ease);
}

.btn-primary:hover::after {
  transform: scaleX(1);
}

.honest-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-l);
  color: #3d3b37;
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 66ch;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-weight: 560;
  transition: color var(--dur-fast) var(--ease), gap var(--dur-fast) var(--ease);
}

.inline-link:hover {
  color: var(--orange);
  gap: 10px;
}

/* ---------- Sliding Segmented Controls ---------- */
.segmented-shell {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sliding-seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--seg-count, 3), minmax(0, 1fr));
  padding: 4px;
  border-radius: 99px;
  border: 1px solid var(--line-l);
  background: var(--paper-2);
  isolation: isolate;
}

.sliding-seg--4,
.sliding-seg--5 {
  margin-top: 20px;
}

.sliding-seg-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / var(--seg-count, 3));
  border-radius: 99px;
  background: var(--ink);
  z-index: 0;
  transform: translate3d(calc(var(--seg-idx, 0) * 100%), 0, 0);
  transition: transform var(--dur-state) var(--ease);
}

.sliding-seg-btn {
  position: relative;
  z-index: 1;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 520;
  color: #3d3b37;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--dur-state) var(--ease);
}

.sliding-seg-btn.is-selected {
  color: var(--paper-2);
  font-weight: 600;
}

.claude-setup-controls {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-l);
  background: var(--paper-2);
  display: grid;
  gap: 10px;
}

.claude-control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.claude-mode-group,
.claude-scope-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.claude-mode-seg {
  min-width: 236px;
  background: var(--paper);
}

.claude-scope-seg {
  min-width: 206px;
  background: var(--paper);
}

.claude-mode-seg .sliding-seg-btn,
.claude-scope-seg .sliding-seg-btn {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 11.5px;
}

.claude-scope-hint {
  color: #4f4c46;
  font-size: 11.5px;
  padding-top: 4px;
  border-top: 1px dashed var(--line-l);
}

.claude-verify-block {
  margin-top: 14px;
}

/* ---------- Hairline Underline Input (Draws in Orange on Focus) ---------- */
.path-field-box {
  margin-top: 24px;
}

.path-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.path-label {
  font-family: var(--mono);
  font-size: 12px;
  color: #4f4c46;
}

.path-reset {
  font-family: var(--mono);
  font-size: 11px;
  color: #6b675f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.path-reset:hover {
  color: var(--orange);
}

.underline-input-wrap {
  position: relative;
}

.underline-path-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid rgba(10, 10, 11, 0.24);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  border-radius: 0;
}

.underline-path-input:focus {
  outline: none;
}

.underline-draw-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-state) var(--ease);
}

.underline-path-input:focus + .underline-draw-bar {
  transform: scaleX(1);
}

.step-note {
  margin-top: 16px;
  color: #3d3b37;
  font-size: 13.5px;
}

/* ---------- Code Blocks ---------- */
.code-wrap {
  min-width: 0;
  max-width: 100%;
  position: relative;
  margin-top: 14px;
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--paper-2);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  box-shadow: 0 24px 60px -30px rgba(10, 10, 11, 0.6);
}

.trouble-section .code-wrap {
  background: var(--ink-3);
  border: 1px solid var(--line-d);
}

.code-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-d);
  color: var(--smoke);
  font-size: 11.5px;
}

.code-inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.code-pre {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
  color: var(--paper-2);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
}

.copy-pill {
  flex-shrink: 0;
  min-height: 32px;
  padding: 5px 13px;
  border-radius: 99px;
  border: 1px solid rgba(245, 241, 231, 0.22);
  background: rgba(19, 19, 21, 0.9);
  color: var(--paper-2);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.2;
  text-transform: lowercase;
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.copy-pill:hover {
  border-color: var(--paper-2);
  color: #fff;
}

.copy-pill.is-copied {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- THE TERMINAL (Hero Object of the Workspace) ---------- */
.setup-terminal {
  position: relative;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper-2);
  border: 1px solid rgba(10, 10, 11, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 40px 90px -40px rgba(10, 10, 11, 0.7);
  overflow: hidden;
}

.scanline-beam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(245, 241, 231, 0.06) 50%,
    transparent 100%
  );
  height: 35%;
  transform: translateY(-120%);
  z-index: 3;
}

.setup-terminal.scan-once .scanline-beam {
  animation: scanSweep var(--dur-reveal) var(--ease) 1 forwards;
}

@keyframes scanSweep {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(320%);
  }
}

.term-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-d);
  background: var(--ink-2);
}

.term-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.term-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 241, 231, 0.16);
}

.term-filename {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--smoke);
  font-size: 11.5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-path-tag {
  color: var(--paper-2);
}

.term-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.term-view-tabs {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 99px;
  border: 1px solid var(--line-d);
  background: var(--ink);
}

.term-tab-btn {
  padding: 3px 9px;
  min-height: 24px;
  border-radius: 99px;
  font-size: 10.5px;
  color: var(--smoke);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.term-tab-btn:hover {
  color: var(--paper-2);
}

.term-tab-btn.is-active {
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 600;
}

.term-copy-all {
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(245, 241, 231, 0.2);
  color: var(--paper-2);
  font-size: 11px;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.term-copy-all:hover {
  border-color: var(--paper-2);
}

.term-copy-all.is-copied {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 600;
}

.term-body {
  padding: 12px 0;
  font-size: 12px;
  line-height: 1.65;
  overflow-x: auto;
}

.term-section-block {
  position: relative;
  padding: 10px 16px 12px 14px;
  border-left: 2px solid transparent;
  transition:
    border-color var(--dur-state) var(--ease),
    background var(--dur-state) var(--ease);
}

.term-section-block + .term-section-block {
  border-top: 1px solid rgba(245, 241, 231, 0.07);
}

.term-section-block.is-morphing {
  border-left-color: var(--orange);
  background: rgba(255, 90, 36, 0.04);
  animation: blockMorph var(--dur-state) var(--ease);
}

@keyframes blockMorph {
  from {
    opacity: 0.55;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.term-block-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.term-block-meta {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--smoke);
}

.term-mini-copy {
  padding: 2px 9px;
  border-radius: 99px;
  border: 1px solid rgba(245, 241, 231, 0.14);
  color: var(--smoke);
  font-size: 10.5px;
}

.term-mini-copy:hover {
  color: var(--paper-2);
  border-color: rgba(245, 241, 231, 0.35);
}

.term-mini-copy.is-copied {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 600;
}

.term-line {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  white-space: pre;
}

.term-ln {
  color: rgba(133, 130, 123, 0.4);
  user-select: none;
  text-align: right;
  font-size: 11px;
}

.term-code {
  overflow-x: auto;
}

/* Brand Syntax Tokens */
.tok-comment {
  color: var(--smoke);
}
.tok-key {
  color: var(--paper-2);
  font-weight: 560;
}
.tok-string {
  color: #e8b89a;
}
.tok-flag {
  color: rgba(255, 90, 36, 0.85);
}
.tok-cmd {
  color: var(--paper-2);
}
.tok-punct {
  color: rgba(245, 241, 231, 0.65);
}

.term-checker {
  padding: 12px 16px;
  border-top: 1px solid var(--line-d);
  background: var(--ink-2);
  display: grid;
  gap: 10px;
}

.term-checker-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.term-checker-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.term-checker-label {
  color: var(--smoke);
  font-size: 11px;
}

.term-paste-toggle {
  color: var(--paper-2);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.term-paste-toggle:hover {
  color: var(--orange);
}

.term-checker-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.checker-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  min-height: 30px;
  border-radius: 99px;
  border: 1px solid var(--line-d);
  color: var(--smoke);
  font-size: 11px;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.checker-chip:hover {
  color: var(--paper-2);
  border-color: rgba(245, 241, 231, 0.3);
}

.checker-chip.is-done {
  color: var(--paper-2);
  border-color: rgba(245, 241, 231, 0.28);
}

.checker-chip.is-done .checker-svg {
  color: var(--orange);
}

.term-paste-box {
  padding-top: 10px;
  border-top: 1px dashed var(--line-d);
  display: grid;
  gap: 8px;
}

.term-paste-label {
  color: var(--smoke);
  font-size: 11px;
}

.term-paste-label code {
  color: var(--paper-2);
}

.term-paste-input {
  width: 100%;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid var(--line-d);
  background: var(--ink);
  color: var(--paper-2);
  font-family: var(--mono);
  font-size: 11.5px;
}

.term-paste-input:focus {
  outline: none;
  border-color: var(--orange);
}

.term-paste-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  line-height: 1.45;
  padding: 6px 10px;
  border-radius: 8px;
}

.term-paste-status.is-success {
  color: var(--paper-2);
  background: rgba(245, 241, 231, 0.06);
  border: 1px solid rgba(245, 241, 231, 0.22);
}

.term-paste-status.is-success svg {
  color: var(--orange);
  flex-shrink: 0;
}

.term-paste-status.is-error {
  color: var(--paper-2);
  background: rgba(255, 90, 36, 0.12);
  border: 1px solid var(--orange);
}

.term-paste-status.is-unknown {
  color: var(--smoke);
  background: rgba(245, 241, 231, 0.03);
  border: 1px solid var(--line-d);
}

/* ---------- STEP 04: THE PAYOFF (Full-Bleed Dark) ---------- */
.payoff-section {
  background: var(--ink);
  color: var(--paper-2);
  padding: clamp(88px, 13vh, 156px) 0 clamp(84px, 12vh, 144px);
  border-top: 1px solid var(--line-d);
}

.payoff-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading {
  font: 620 clamp(40px, 6vw, 96px)/0.92 var(--sans);
  letter-spacing: -0.05em;
  margin-left: -0.03em;
}

.payoff-lede {
  color: rgba(245, 241, 231, 0.72);
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.55;
}

.payoff-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: clamp(32px, 4.5vh, 48px);
}

.payoff-chip {
  min-height: 40px;
  padding: 9px 18px;
  border-radius: 99px;
  border: 1px solid var(--line-d);
  background: var(--ink-3);
  color: var(--smoke);
  font-size: 12px;
  white-space: nowrap;
  transition:
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.payoff-chip:hover {
  color: var(--paper-2);
  border-color: rgba(245, 241, 231, 0.3);
}

.payoff-chip.is-active {
  background: var(--paper-2);
  border-color: var(--paper-2);
  color: var(--ink);
  font-weight: 600;
}

.payoff-frame {
  margin-top: 20px;
  border-radius: 20px;
  border: 1px solid var(--line-d);
  background: var(--ink-2);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  overflow: hidden;
  box-shadow: 0 40px 100px -45px rgba(0, 0, 0, 0.85);
}

.payoff-console {
  padding: clamp(22px, 3vw, 36px);
  border-right: 1px solid var(--line-d);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
}

.payoff-console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-d);
  color: var(--smoke);
}

.payoff-prompt-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.you-tag {
  color: var(--orange);
  font-weight: 600;
}

.payoff-typed-quote {
  font: 540 clamp(18px, 1.5vw, 24px)/1.35 var(--sans);
  letter-spacing: -0.025em;
  color: var(--paper-2);
}

.slate-caret {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  background: var(--orange);
  vertical-align: -2px;
  margin-left: 3px;
}

.payoff-calls {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-d);
}

.payoff-call-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(245, 241, 231, 0.03);
  color: rgba(245, 241, 231, 0.68);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-state) var(--ease), transform var(--dur-state) var(--ease);
}

.payoff-call-row.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.call-sig {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-sig b {
  color: var(--paper-2);
  font-weight: 600;
}

.call-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.call-tc {
  color: var(--smoke);
  font-size: 11px;
}

.call-status i {
  font-style: normal;
  color: var(--orange);
  font-weight: 700;
}

.payoff-all-prompts {
  padding-top: 14px;
  border-top: 1px solid var(--line-d);
}

.payoff-mini-list {
  display: grid;
  gap: 6px;
}

.payoff-mini-quote {
  text-align: left;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--smoke);
  border: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.payoff-mini-quote:hover {
  color: var(--paper-2);
}

.payoff-mini-quote.is-selected {
  color: var(--paper-2);
  border-color: var(--line-d);
  background: rgba(245, 241, 231, 0.03);
}

/* Right Half: Darkroom Render Plate */
.payoff-monitor {
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background: #070708;
  min-width: 0;
}

.monitor-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-d);
  background: var(--ink);
}

.monitor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    filter var(--dur-reveal) var(--ease),
    transform var(--dur-reveal) var(--ease),
    opacity var(--dur-reveal) var(--ease);
}

.monitor-screen.is-developing .monitor-img {
  filter: blur(22px) brightness(0.32) contrast(1.15);
  transform: scale(1.04);
}

.monitor-screen.is-developed .monitor-img {
  filter: blur(0px) brightness(1) contrast(1);
  transform: scale(1);
}

.monitor-hud {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(10, 10, 11, 0.76);
  border: 1px solid var(--line-d);
  color: var(--paper-2);
  font-size: 11px;
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.monitor-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-d);
}

.monitor-out {
  color: var(--paper-2);
  font-size: 12.5px;
}

.monitor-out .arrow {
  font-style: normal;
  color: var(--orange);
  margin-right: 6px;
}

.replay-link {
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--line-d);
  color: var(--smoke);
  font-size: 11px;
}

.replay-link:hover {
  color: var(--paper-2);
  border-color: rgba(245, 241, 231, 0.35);
}

/* Closing Statement */
.payoff-closing {
  margin-top: clamp(72px, 11vh, 128px);
  padding-top: clamp(48px, 7vh, 84px);
  border-top: 1px solid var(--line-d);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.closing-headline {
  font: 620 clamp(48px, 7.8vw, 132px)/0.9 var(--sans);
  letter-spacing: -0.055em;
  margin-left: -0.04em;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.closing-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 99px;
  border: 1px solid var(--line-d);
  color: var(--paper-2);
  font-size: 14px;
  font-weight: 560;
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease);
}

.closing-pill:hover {
  border-color: var(--paper-2);
}

.closing-pill--primary {
  background: var(--paper-2);
  border-color: var(--paper-2);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- TROUBLESHOOTING ACCORDION ---------- */
.trouble-section {
  background: var(--ink-2);
  color: var(--paper-2);
  padding: clamp(76px, 11vh, 136px) 0 clamp(84px, 12vh, 148px);
  border-top: 1px solid var(--line-d);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--smoke);
  margin-bottom: 20px;
  font-size: 12px;
  text-transform: lowercase;
}

.kicker .num {
  color: var(--orange);
}

.kicker::after {
  content: "";
  display: inline-block;
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.38;
}

.accordion-list {
  margin-top: clamp(36px, 5vh, 56px);
  border-top: 1px solid var(--line-d);
}

.accordion-item {
  border-bottom: 1px solid var(--line-d);
}

.accordion-trigger {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  color: var(--paper-2);
}

.accordion-left {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}

.accordion-idx {
  color: var(--smoke);
}

.accordion-q {
  font: 560 clamp(20px, 2vw, 28px)/1.15 var(--sans);
  letter-spacing: -0.03em;
}

.accordion-sub {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  color: var(--smoke);
}

.accordion-icon {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--smoke);
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 99px;
  border: 1px solid var(--line-d);
  display: grid;
  place-items: center;
  transition:
    transform var(--dur-state) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
  border-color: var(--orange);
  color: var(--orange);
}

.accordion-panel {
  min-width: 0;
  max-width: 68ch;
  padding: 0 4px 26px 46px;
  color: rgba(245, 241, 231, 0.78);
  animation: drawerSlide var(--dur-state) var(--ease) both;
}

@keyframes drawerSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trouble-foot {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--smoke);
}

/* ---------- FOOTER (Mono row above giant cropped lockup) ---------- */
.foot {
  background: var(--ink);
  padding: clamp(36px, 6vh, 64px) 0 0;
  border-top: 1px solid var(--line-d);
  overflow: hidden;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: clamp(32px, 5vh, 56px);
  border-bottom: 1px solid var(--line-d);
  color: var(--smoke);
  text-transform: uppercase;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.foot-row a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  transition: color var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.foot-row a:hover {
  color: var(--orange);
}

.foot-lock {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.4vw;
  padding-inline: var(--g);
  margin-top: clamp(24px, 4vh, 44px);
  transform: translateY(14%);
}

.foot-lock img {
  width: 13.5vw;
  max-width: 190px;
  height: auto;
  transform: translateY(-1.4vw);
}

.foot-lock span {
  font: 700 clamp(84px, 25vw, 360px)/0.74 var(--word);
  letter-spacing: -0.07em;
  color: var(--paper-2);
}

/* ---------- Responsive (Tablet & 375px Phone) ---------- */
@media (max-width: 1080px) {
  .workspace-steps-col {
    grid-column: 1 / -1;
  }

  .workspace-term-col {
    grid-column: 1 / -1;
    position: static;
    margin-top: 16px;
  }

  .payoff-frame {
    grid-template-columns: minmax(0, 1fr);
  }

  .payoff-console {
    border-right: 0;
    border-bottom: 1px solid var(--line-d);
  }
}

@media (max-width: 760px) {
  .nav {
    padding: 8px 14px;
    gap: 4px;
  }

  .brand {
    font-size: 19px;
    gap: 6px;
  }

  .nav-rail-lbl {
    display: none;
  }

  .nav-rail-short {
    display: none;
  }

  .nav-rail-pill.is-active .nav-rail-short {
    display: inline;
  }

  .nav-rail-pill {
    padding: 6px 7px;
    gap: 3px;
    font-size: 10px;
    min-height: 44px;
  }

  .nav-links a[href*="#films"] {
    display: none;
  }

  .nav-links a {
    padding: 6px 6px;
    font-size: 11px;
    min-height: 44px;
  }

  .slate-hero {
    min-height: 78vh;
  }

  .slate-meta-row {
    font-size: 10.5px;
  }

  .slate-hero-title {
    font-size: clamp(44px, 13vw, 68px);
    line-height: 0.94;
  }

  .slate-hero-title .word-group {
    display: block;
  }

  /* 3-up compact row at 375px */
  .os-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .os-tile {
    min-height: 96px;
    padding: 12px 10px;
    gap: 12px;
    border-radius: 12px;
  }

  .os-tile-name {
    font-size: 15px;
  }

  .os-tile-spec {
    font-size: 9.5px;
  }

  .os-detected-tag {
    display: none;
  }

  .step-header-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .giant-step-num {
    font-size: 64px;
  }

  .sliding-seg--4,
  .sliding-seg--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 16px;
    gap: 4px;
  }

  .sliding-seg--4 .sliding-seg-thumb,
  .sliding-seg--5 .sliding-seg-thumb {
    display: none;
  }

  .sliding-seg--4 .sliding-seg-btn,
  .sliding-seg--5 .sliding-seg-btn {
    min-height: 44px;
  }

  .sliding-seg--4 .sliding-seg-btn.is-selected,
  .sliding-seg--5 .sliding-seg-btn.is-selected {
    background: var(--ink);
    color: var(--paper-2);
  }

  .term-titlebar {
    flex-wrap: wrap;
  }

  .accordion-panel {
    padding-left: 4px;
  }

  .foot-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .word-rise {
    transform: none !important;
  }
}


/* ---------- match getkimo.tech nav ---------- */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; }
.nav .brand { justify-self: start; }
.nav-links a { color: color-mix(in srgb, currentColor 70%, transparent); }
.nav-links a:hover, .nav-links a.on { color: currentColor; background: color-mix(in srgb, currentColor 9%, transparent); }
.nav-links { align-items: center; }
.nav-sep { width: 1px; height: 16px; margin: 0 8px; background: color-mix(in srgb, currentColor 22%, transparent); }
@media (max-width: 760px) { .nav-sep { display: none; } }
.nav-cta { justify-self: end; display: inline-flex; gap: 8px; align-items: center; min-height: 40px; padding: 10px 18px; border-radius: 99px; background: var(--paper-2); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background var(--dur-fast) var(--ease), transform var(--dur-state) var(--ease); }
.nav-cta:hover { background: var(--orange); transform: translateY(-1px); }
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto auto; gap: 8px; }
  .nav-links { display: flex; }
  .nav-links a { padding: 6px 9px; font-size: 12px; min-height: 0; }
  .nav-cta { padding: 8px 14px; }
}

/* nav: page links stay visible on phones and scroll sideways */
@media (max-width: 760px) {
  .nav { grid-template-columns: auto minmax(0, 1fr) auto !important; gap: 8px; }
  .nav-links { display: flex !important; justify-self: end; justify-content: flex-start; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: none; padding: 6px 9px; font-size: 12px; min-height: 0; }
}
@media (max-width: 480px) { .nav-cta { display: none !important; } }
