/* header mark */
.hdr-mark {
  font-family: var(--font-pixel);
  font-synthesis: none;
  -webkit-text-stroke: 0.02em currentColor;
  letter-spacing: 0.06em;
  color: var(--ts);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s;
}
.hdr-mark:hover {
  color: var(--tp);
}
.hdr-cmd[data-state="copied"] {
  color: var(--tp);
  border-color: color-mix(in srgb, var(--ac) 55%, transparent);
}
a.hdr-cmd,
a.hdr-terminal {
  text-decoration: none;
}

/* word reveal, same timing as the reference intro */
.lab-intro-lede .w,
.lab-intro-note .w {
  display: inline-block;
  animation: lab-intro-w-in 750ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .lab-intro-lede .w,
  .lab-intro-note .w {
    animation: none;
  }
}

/* icon slot in the readout */
.lab-intro-readout > .lab-intro-icon {
  min-height: 0;
}
.lab-intro-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg2) var(--noise);
  background-size: 160px 160px;
  display: block;
  object-fit: cover;
}

/* section frame, same rhythm as the reference bands */
.sec {
  border-bottom: 1px solid var(--border);
  padding: clamp(56px, 9vh, 96px) var(--lab-content-x);
}
.sec-kicker {
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tt);
  margin: 0 0 14px;
  font-size: 11px;
}
.sec-heading {
  font-family: var(--sans);
  color: var(--ts);
  max-width: 420px;
  margin: 0 0 clamp(28px, 5vh, 48px);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

/* install terminal */
.term {
  max-width: 880px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 70px #0000008c;
  position: relative;
  isolation: isolate;
}
.term:before {
  content: "";
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 140% at 50% 120%, var(--ac-dim), transparent 62%);
  opacity: 0;
  transition: opacity 0.24s;
  position: absolute;
  inset: 0;
}
.term:hover:before,
.term:focus-within:before {
  opacity: 1;
}
.term:after {
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(#ffffff06 0 1px, #0000 1px 3px);
  position: absolute;
  inset: 0;
}
.term-bar {
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--tt);
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  font-size: 11px;
  display: flex;
  position: relative;
  z-index: 1;
}
.term-dot {
  background: var(--ac);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  box-shadow: 0 0 6px color-mix(in srgb, var(--ac) 55%, transparent);
}
.term-title {
  text-transform: uppercase;
  margin-right: auto;
}
.term-bar .hdr-cmd {
  height: 34px;
  font-size: 12px;
}
.term-body {
  padding: clamp(22px, 3.4vw, 36px) clamp(18px, 3vw, 32px);
  font-family: var(--mono);
}
.term-line {
  letter-spacing: -0.01em;
  font-size: clamp(14px, 1.9vw, 21px);
  line-height: 1.5;
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--tp);
}
.term-prompt {
  color: var(--tt);
  transition: color 0.24s;
}
.term:hover .term-prompt {
  color: var(--ts);
}
.term-line .gsb-caret {
  vertical-align: -0.15em;
}
.term-out {
  font-family: var(--mono);
  color: var(--tt);
  font-size: 12px;
  line-height: 1.7;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--border);
  white-space: pre-wrap;
}
.term-out .ok {
  color: var(--ac);
}
.term-out kbd {
  font-family: var(--mono);
  color: var(--ts);
}
.win-note {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--ac);
  background: var(--ac-dim);
  border: 1px solid var(--ac-b);
  border-radius: 9999px;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  font-size: 11px;
  margin: 0 0 16px;
  width: fit-content;
  display: none;
}
.win-note .wip-dot {
  background: var(--ac);
  border-radius: 50%;
  width: 6px;
  height: 6px;
}
@media (hover: none) and (pointer: coarse), (max-width: 759px) {
  .win-note {
    display: inline-flex;
  }
}

/* readout rows under the terminal */
.rows {
  max-width: 880px;
  border-top: 1px solid var(--border);
  margin-top: clamp(28px, 5vh, 44px);
  padding-top: 9px;
  display: flex;
  flex-direction: column;
}
.row {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--tt);
  align-items: baseline;
  gap: 4px 18px;
  padding: 7px 0;
  font-size: 11px;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
}
.row-k {
  text-transform: uppercase;
  min-width: 13ch;
}
.row-v {
  color: var(--ts);
  overflow-wrap: anywhere;
  margin-right: auto;
  min-width: 0;
}
.row a {
  color: var(--ts);
  text-decoration: underline;
  text-decoration-color: var(--border-h);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s, color 0.15s;
}
.row a:hover {
  color: var(--tp);
  text-decoration-color: var(--ts);
}
.row-btn {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tt);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
  transition: color 0.15s;
}
.row-btn:hover,
.row-btn[data-state="copied"] {
  color: var(--ac);
}
@media (max-width: 759px) {
  .row-btn {
    min-height: 44px;
  }
}

/* step list: what the command does */
.steps {
  max-width: 880px;
  border: 1px solid var(--border);
  background: var(--bg2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 5ch minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 18px;
  padding: 18px clamp(16px, 2.4vw, 28px);
  transition: background 0.15s;
  display: grid;
}
.step:last-child {
  border-bottom: 0;
}
.step:hover {
  background: var(--sb-hover);
}
.step-n {
  font-family: var(--mono);
  color: var(--tt);
  letter-spacing: 0.04em;
  font-size: 11px;
  transition: color 0.15s;
}
.step:hover .step-n {
  color: var(--ac);
}
.step-t {
  color: var(--tp);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.step-t span {
  color: var(--ts);
}
.step .garage-tag {
  white-space: nowrap;
}
.steps-actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  display: flex;
}
.hdr-cmd--arrow {
  padding-right: 16px;
}
.hdr-cmd-arrow {
  color: var(--tt);
  transition: transform 0.15s, color 0.15s;
  display: inline-block;
}
.hdr-cmd:hover .hdr-cmd-arrow {
  color: var(--tp);
  transform: translate(2px, -2px);
}
@media (max-width: 759px) {
  .step {
    grid-template-columns: 4ch minmax(0, 1fr);
  }
  .step .garage-tag {
    grid-column: 2;
    justify-self: start;
  }
  .steps-actions .hdr-cmd {
    height: 44px;
  }
}

/* features grid: bordered cells like the reference project grid */
.sec--grid {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.sec--grid > .sec-kicker,
.sec--grid > .sec-heading {
  margin-left: var(--lab-content-x);
  margin-right: var(--lab-content-x);
}
.sec--grid .lab-grid {
  grid-template-rows: none;
  border-top: 1px solid var(--border);
}
.garage-cell--static {
  min-height: 320px;
}
.garage-cell--static:hover .garage-arrow {
  color: var(--ac);
  transform: translate(3px);
}
.req-list {
  font-family: var(--mono);
  color: var(--ts);
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.9;
}
.req-list li:before {
  content: "- ";
  color: var(--tt);
}
.req-note {
  color: var(--tt-aa);
  max-width: 420px;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.req-note b {
  color: var(--ts);
  font-weight: 500;
}

/* footer */
.foot.showcase-band {
  margin-top: 0;
}
.foot-links {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tt);
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 18px;
  font-size: 11px;
  display: flex;
}
.foot-links a {
  align-items: center;
  gap: 8px;
  text-decoration: underline;
  text-decoration-color: var(--border-h);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
  display: inline-flex;
}
.foot-links a:hover {
  color: var(--ts);
  text-decoration-color: var(--ts);
}
.foot-links a span {
  transition: transform 0.15s;
  display: inline-block;
}
.foot-links a:hover span {
  transform: translate(2px, -2px);
}
@media (max-width: 759px) {
  .foot-links a {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .foot-links a:hover span,
  .hdr-cmd:hover .hdr-cmd-arrow {
    transform: none;
  }
}

/* reveal on scroll */
.js .rv {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out), filter 0.75s var(--ease-out);
}
.js .rv.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .rv {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* tokens the copied grid components read outside the grid */
.sec {
  --g-mono: var(--mono);
  --g-bg2: var(--bg2);
  --g-border: var(--border);
  --g-tt-aa: var(--tt-aa);
}
.term-line .term-cmd {
  font: inherit;
  color: var(--tp);
  background: none;
  border-radius: 0;
  padding: 0;
}
