/* ============================================================
 * LLM Blueprint — per-scene layout & elements
 * ============================================================ */

/* ================= S00 · intro ================= */

#sc-intro { z-index: 2; }
.intro__wrap {
  position: relative; z-index: 2;
  max-width: 1080px; margin: 0 auto;
  padding: clamp(70px, 12vh, 130px) 24px 120px;
}

.title-block {
  border: 1px solid var(--line-soft);
  margin-bottom: clamp(36px, 6vh, 64px);
  background: linear-gradient(180deg, rgba(12, 36, 58, 0.5), rgba(7, 24, 41, 0.25));
  box-shadow: var(--panel-shadow);
}
.title-block__head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line-faint);
  padding: 10px 18px;
}
.title-block__main { padding: clamp(28px, 5vh, 52px) 18px; text-align: center; }
.title-block__main h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 5.8vw, 66px); letter-spacing: 0.04em;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(127, 219, 255, 0.25);
}
.title-block__main h1 .thin {
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
  text-shadow: 0 0 28px rgba(127, 219, 255, 0.35);
}
.title-block__sub { margin-top: 14px; color: var(--ink-dim); font-size: clamp(14px, 1.6vw, 16.5px); }
.title-block__foot {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-faint);
}
.title-block__foot div { padding: 8px 18px; border-right: 1px solid var(--line-faint); }
.title-block__foot div:last-child { border-right: none; }
.title-block__foot .label { display: block; margin-bottom: 1px; font-size: 9.5px; }
.title-block__foot .val { font-family: var(--mono); font-size: 12px; color: var(--ink); }

.q-section-label { margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.q-section-label::after { content: ""; flex: 1; height: 1px; background: var(--line-faint); }

.q-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 40px;
}
.q-col { display: flex; flex-direction: column; gap: 14px; }
.q-col > .label { padding-left: 2px; }

.q-card {
  position: relative; text-align: left;
  background: linear-gradient(180deg, rgba(16, 44, 70, 0.55), rgba(10, 32, 53, 0.4));
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(234, 246, 255, 0.06), 0 10px 26px -18px rgba(0, 0, 0, 0.9);
  padding: 16px 16px 14px; cursor: pointer;
  color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.q-card .q-card__id {
  display: block; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.16em; color: var(--ink-faint); margin-bottom: 8px;
  text-transform: uppercase; transition: color 0.25s;
}
.q-card:hover {
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(127, 219, 255, 0.1), rgba(127, 219, 255, 0.04));
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(234, 246, 255, 0.08), 0 16px 34px -18px rgba(127, 219, 255, 0.35);
}
.q-card:hover .q-card__id { color: var(--cyan); }
.q-card.selected { border-color: var(--cyan); background: var(--cyan-soft); box-shadow: 0 0 0 1px var(--cyan), 0 8px 30px -12px rgba(127, 219, 255, 0.45); }
.q-card.selected .q-card__id { color: var(--cyan); }
.q-card.selected::after {
  content: "▸"; position: absolute; right: 14px; bottom: 10px; color: var(--cyan);
}

/* custom input */
.q-custom { border-style: dashed; }
.custom-form {
  display: none; flex-direction: column; gap: 10px;
  margin: 8px 0 40px; padding: 18px;
  border: 1px dashed var(--line);
  background: var(--panel-bg); box-shadow: var(--panel-shadow);
}
.custom-form.open { display: flex; }
.custom-form textarea, .custom-form select {
  width: 100%; background: rgba(7, 24, 41, 0.7); border: 1px solid var(--line-soft);
  color: var(--ink); font-family: var(--sans); font-size: 14.5px;
  padding: 10px 12px; resize: vertical; min-height: 44px;
}
.custom-form textarea:focus, .custom-form select:focus { outline: none; border-color: var(--cyan); }
.custom-form .row { display: flex; gap: 10px; align-items: center; }

/* chat mock */
.chat-mock { max-width: 640px; margin: 0 auto; }
.chat-mock__label { margin-bottom: 12px; }
.chat-input {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
  padding: 16px 18px;
}
.chat-input__text { flex: 1; font-size: 16.5px; min-height: 1.6em; }
.chat-input__text .caret {
  display: inline-block; width: 2px; height: 1.15em; background: var(--cyan);
  vertical-align: text-bottom; margin-left: 2px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.chat-input__send {
  width: 40px; height: 40px; flex: none; border: 1px solid var(--cyan);
  color: var(--cyan); background: var(--cyan-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

/* ================= generic strip of tokens ================= */

.strip {
  position: relative; display: flex; align-items: center;
  flex-wrap: wrap; justify-content: center; row-gap: 30px;
  max-width: min(1100px, 88vw);
}

/* ================= S01 · send ================= */

.send-bubble {
  position: absolute; font-size: 17px;
  border: 1px solid var(--cyan); background: var(--cyan-soft);
  padding: 14px 22px; border-radius: 18px 18px 4px 18px;
  white-space: nowrap;
}
.send-strip-wrap { position: relative; }
.send-anno { position: absolute; white-space: nowrap; }

/* ================= S02 · tokenize ================= */

.cutline {
  position: absolute; top: -16px; bottom: -16px; width: 0;
  border-left: 1.5px dashed var(--amber); opacity: 0;
}
.cutline::before {
  content: "✂"; position: absolute; top: -20px; left: -8px;
  font-size: 13px; color: var(--amber);
}
.tok-count-badge {
  position: absolute; top: clamp(70px, 16vh, 140px); left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; align-items: baseline;
}
.tok-count-badge b {
  font-family: var(--display); font-size: 38px; color: var(--cyan); font-weight: 700;
  text-shadow: 0 0 24px rgba(127, 219, 255, 0.4);
}

.lang-compare {
  position: absolute; right: clamp(16px, 4vw, 60px); top: 50%;
  transform: translateY(-50%);
  width: min(330px, 40vw);
  border: 1px solid var(--line-soft); background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(10px); padding: 14px 16px;
}
.lang-compare h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--cyan); margin-bottom: 10px; text-transform: uppercase; }
.lang-compare .row { margin-bottom: 10px; }
.lang-compare .row .label { margin-bottom: 4px; display: flex; justify-content: space-between; }
.lang-compare .cells { display: flex; gap: 2px; flex-wrap: wrap; }
.lang-compare .cells i {
  display: block; height: 10px; border-radius: 1px;
  background: var(--cyan); opacity: 0.55; min-width: 10px;
}

/* ================= S03 · embedding ================= */

.emb-flip { perspective: 900px; }
.emb-flip .tok { transform-style: preserve-3d; }

.emb-matrix {
  display: grid; gap: 4px 10px; align-items: center;
  grid-template-columns: auto 1fr;
}
.emb-matrix .rowlab {
  font-family: var(--mono); font-size: 12px; color: var(--ink-dim);
  text-align: right; white-space: pre;
}

.sem-space {
  position: absolute; right: clamp(16px, 4vw, 70px); top: 50%;
  transform: translateY(-50%);
  width: min(300px, 36vw);
}

/* ================= S04 · position ================= */

.pos-stamp {
  position: absolute; left: -34px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 10px; color: var(--amber);
  border: 1px solid var(--amber); padding: 1px 5px; opacity: 0;
}

/* ================= S05 · attention ================= */

.attn-stage { position: relative; width: min(980px, 90vw); height: min(560px, 72vh); }
.attn-col { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-around; }
.attn-col--l { left: 0; align-items: flex-end; }
.attn-col--r { right: 0; align-items: flex-start; }
.attn-col .tok { font-size: 14px; padding: 4px 10px; }
.attn-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.attn-flag {
  position: absolute; font-family: var(--mono); font-size: 10.5px;
  color: var(--amber); border: 1px solid var(--amber); background: rgba(7,24,41,.85);
  padding: 3px 8px; white-space: nowrap; opacity: 0;
}
.head-legend { position: absolute; top: -44px; left: 50%; transform: translateX(-50%); display: flex; gap: 16px; }
.head-legend span { display: flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-dim); }
.head-legend i { width: 14px; height: 2px; display: block; }

/* ================= S06 · ffn ================= */

.ffn-stage { position: relative; width: min(900px, 90vw); height: min(480px, 62vh); }
.ffn-rows { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.ffn-out { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }

/* ================= S07 · layer stack ================= */

.stack-stage {
  position: relative; width: 100%; height: 100%;
  perspective: 1200px; perspective-origin: 50% 38%;
  display: flex; align-items: center; justify-content: center;
}
.stack-world { position: relative; transform-style: preserve-3d; width: min(560px, 76vw); height: min(560px, 76vw); }
.plate {
  position: absolute; inset: 0; transform-style: preserve-3d;
  border: 1px solid rgba(127, 219, 255, 0.6);
  background:
    linear-gradient(135deg, rgba(127, 219, 255, 0.10), transparent 32%),
    linear-gradient(rgba(127, 219, 255, 0.05) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, rgba(127, 219, 255, 0.05) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(180deg, rgba(16, 48, 76, 0.6), rgba(10, 32, 53, 0.45));
  box-shadow:
    0 0 54px -16px rgba(127, 219, 255, 0.55),
    inset 0 0 34px -20px rgba(127, 219, 255, 0.55),
    inset 0 1px 0 rgba(234, 246, 255, 0.12);
}
.plate__lab {
  position: absolute; top: 14px; left: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--cyan);
}
.plate__units { position: absolute; inset: 52px 16px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plate__units div {
  border: 1px dashed rgba(127, 219, 255, 0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--ink-dim);
}
.stack-counter {
  position: absolute; top: clamp(70px, 14vh, 120px); left: 50%; transform: translateX(-50%);
  text-align: center; z-index: 5;
}
.stack-counter b {
  font-family: var(--display); font-size: 46px; font-weight: 700; color: var(--cyan);
  display: block; line-height: 1.1;
  text-shadow: 0 0 30px rgba(127, 219, 255, 0.45);
}

/* ================= S08 · output ================= */

.gauge {
  width: min(620px, 88vw); border: 1px solid var(--line-soft);
  background: var(--panel-bg); backdrop-filter: blur(10px);
  box-shadow: var(--panel-shadow);
  padding: 22px 26px 18px; position: relative;
}
.gauge::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 20px; height: 20px;
  border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan);
}
.gauge__title { display: flex; justify-content: space-between; margin-bottom: 18px; }
.gauge__row { display: grid; grid-template-columns: minmax(72px, auto) 1fr 58px; gap: 14px; align-items: center; margin-bottom: 12px; }
.gauge__tok { font-family: var(--mono); font-size: 14.5px; white-space: pre; text-align: right; }
.gauge__track {
  position: relative; height: 16px; border: 1px solid var(--line-faint);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}
.gauge__bar {
  position: absolute; inset: 2px auto 2px 2px; width: 0%;
  background: linear-gradient(180deg, #9fe5ff, var(--cyan) 55%, #59b8dd);
  box-shadow: 0 0 10px -2px rgba(127, 219, 255, 0.6);
  opacity: 0.85;
}
.gauge__row.win .gauge__bar { background: var(--amber); opacity: 0.95; }
.gauge__row.win .gauge__tok { color: var(--amber); }
.gauge__pct { font-family: var(--mono); font-size: 12.5px; color: var(--ink-dim); text-align: right; }
.gauge__sum { border-top: 1px dashed var(--line-soft); margin-top: 14px; padding-top: 10px; display: flex; justify-content: space-between; }

/* ================= S09 · loop ================= */

.loop-stage { position: relative; width: min(1160px, 94vw); height: min(600px, 76vh); }
.loop-strip-zone {
  position: absolute; left: 0; right: 0; top: 6%;
  display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start;
  gap: 6px; row-gap: 10px; padding: 0 3%;
}
.loop-strip-zone .tok { font-size: 13px; padding: 4px 7px; }
.loop-strip-zone .tok.ans { border-color: rgba(255, 180, 84, 0.65); color: var(--amber); background: var(--amber-soft); }
.loop-gauge-zone { position: absolute; right: 2%; bottom: 4%; width: min(400px, 60vw); }
.loop-gauge-zone .gauge { width: 100%; padding: 16px 18px 12px; }
.loop-map {
  position: absolute; left: 2%; bottom: 6%;
  display: flex; flex-direction: column; gap: 8px;
}
.loop-map__node {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--ink-faint); text-transform: uppercase;
}
.loop-map__node i {
  width: 9px; height: 9px; border: 1px solid var(--ink-faint);
  transform: rotate(45deg); transition: all 0.15s;
}
.loop-map__node.lit { color: var(--cyan); }
.loop-map__node.lit i { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 8px rgba(127, 219, 255, 0.8); }
.loop-flyer {
  position: absolute; z-index: 30;
  font-family: var(--mono); font-size: 14px; white-space: pre;
  color: var(--amber); border: 1px solid var(--amber); background: rgba(7,24,41,.9);
  padding: 5px 9px; opacity: 0; pointer-events: none;
  box-shadow: 0 0 18px -4px rgba(255, 180, 84, 0.7);
}
.loop-progress { position: absolute; top: 0; right: 2%; }
.loop-progress b {
  font-family: var(--display); font-size: 24px; color: var(--amber); font-weight: 700;
  text-shadow: 0 0 18px rgba(255, 180, 84, 0.4);
}

/* ================= S10 · assemble ================= */

.chat-final { width: min(680px, 90vw); display: flex; flex-direction: column; gap: 26px; }
.chat-final__q {
  align-self: flex-end; font-size: 16px;
  border: 1px solid var(--cyan);
  background: linear-gradient(180deg, rgba(127, 219, 255, 0.2), rgba(127, 219, 255, 0.09));
  box-shadow: 0 14px 34px -18px rgba(127, 219, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 13px 20px; border-radius: 16px 16px 4px 16px;
}
.chat-final__a-wrap { position: relative; align-self: flex-start; max-width: 92%; }
.chat-final__a-toks { display: flex; flex-wrap: wrap; gap: 4px; row-gap: 7px; }
.chat-final__a-toks .tok { font-size: 14px; padding: 5px 7px; border-color: rgba(255, 180, 84, 0.5); }
.chat-final__a {
  position: absolute; inset: 0; opacity: 0;
  font-size: 16px; line-height: 1.75;
  border: 1px solid var(--line-soft);
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(10px);
  padding: 16px 22px; border-radius: 16px 16px 16px 4px;
}
.chat-final__a-wrap.done { display: flex; }
.chat-final__a-wrap.done .chat-final__a { position: relative; }
.eos-tok {
  border: 1.5px dashed var(--amber) !important; color: var(--amber) !important;
  letter-spacing: 0.04em;
}

/* ================= S11 · recap + footer ================= */

#sc-recap { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding: 90px 0 0; }
.recap__wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; width: 100%; }
.recap__map { margin: 34px 0 44px; overflow-x: auto; padding-bottom: 8px; }
.recap__map svg { min-width: 900px; width: 100%; height: auto; display: block; }
.recap-node { cursor: pointer; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)); }
.recap-node rect { fill: rgba(15, 46, 73, 0.85); stroke: var(--line-soft); transition: stroke 0.2s, fill 0.2s; }
.recap-node:hover rect { stroke: var(--cyan); fill: rgba(127, 219, 255, 0.1); }
.recap-node text { fill: var(--ink-dim); font-size: 10.5px; letter-spacing: 0.1em; }
.recap-node:hover text { fill: var(--cyan); }
.recap__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }

.disclaimer {
  font-size: 12.5px; color: var(--ink-faint);
  border-left: 2px solid var(--line-soft); padding-left: 14px;
  max-width: 640px; margin-bottom: 70px;
}

.footer {
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
  padding: 26px clamp(24px, 5vw, 70px) calc(26px + var(--frame-inset));
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--ink-dim); text-transform: uppercase;
}
.footer__links a:hover { color: var(--cyan); text-decoration: none; }
.footer__links svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.footer__meta { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.08em; }

/* ============================================================
 * Continuous pipeline stage (single pin, persistent chips)
 * ============================================================ */

#sc-pipeline .scene__stage {
  perspective: 1300px;
  perspective-origin: 50% 40%;
  display: block;
}
.pipe-world {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
}
.pipe-svg { position: absolute; inset: 0; overflow: visible; }
.chip-layer { position: absolute; inset: 0; transform-style: preserve-3d; }

/* absolutely-positioned helpers inside the pipeline stage:
   neutralise legacy positioning so gsap x/y is the only source of truth */
.chip-layer > * { position: absolute; top: 0; left: 0; }
.chip-layer .lang-compare,
.chip-layer .sem-space,
.chip-layer .tok-count-badge,
.chip-layer .head-legend,
.chip-layer .loop-map,
.chip-layer .loop-progress,
.chip-layer .chat-final__q,
.chip-layer .chat-final__a,
.chip-layer .attn-flag { right: auto; bottom: auto; inset: auto; transform: none; }
.chip-layer .chat-final__a { position: absolute; }

/* ---- the persistent token chip ---- */
.chip {
  height: 38px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; /* visual padding comes from width slack, so the flush
                 strip in P01 reads as one continuous sentence */
  font-family: var(--mono); font-size: 17px; color: var(--ink);
  white-space: pre;
  border: 1px solid transparent;
  transform-style: preserve-3d;
  will-change: transform;
}
.chip::after {
  /* glass sheen on the boxed state */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}
.chip[style*="border-color"]::after { opacity: 1; }
.chip__text { position: relative; }
.chip__vec {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.chip--ans {
  border-color: rgba(255, 180, 84, 0.55);
  color: var(--amber);
  background: var(--amber-soft);
}
.eos-chip {
  height: 30px; padding: 0 8px;
  display: flex; align-items: center;
  font-family: var(--mono); letter-spacing: 0.04em;
  border: 1.5px dashed var(--amber); color: var(--amber);
}

.strip-frame {
  border: 1px solid rgba(127, 219, 255, 0.9);
  background: rgba(127, 219, 255, 0.1);
  box-shadow: 0 18px 44px -20px rgba(127, 219, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pipe-clamp { color: var(--amber); font-size: 18px; }
.pipe-cut {
  width: 0; height: 72px;
  border-left: 1.5px dashed var(--amber);
  color: var(--amber); font-size: 12px; line-height: 1;
  text-indent: -7px;
}
.pipe-note {
  width: 520px; max-width: 80vw; text-align: center;
  font-family: var(--sans); font-size: 12.5px; line-height: 1.7;
  color: var(--ink-dim);
}
.row-lab {
  width: 96px; text-align: right;
  font-family: var(--mono); font-size: 12px; color: var(--ink-dim);
  white-space: pre; overflow: hidden; text-overflow: ellipsis;
  background: rgba(7, 24, 41, 0.85); padding: 2px 6px;
  z-index: 5;
}
.pos-tag {
  font-family: var(--mono); font-size: 10px; color: var(--amber);
  border: 1px solid var(--amber); padding: 1px 5px;
}
.pos-stripes {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 180, 84, 0.35) 0 8px, transparent 8px 17px);
}
.ffn-exp {
  display: flex; gap: 2px; align-items: center; height: 20px;
  padding: 3px 4px;
  border: 1px solid rgba(127, 219, 255, 0.45);
  background: rgba(127, 219, 255, 0.05);
}
.ffn-exp i {
  display: block; flex: 1 0 9px; height: 14px;
  background: var(--cyan); border-radius: 1px;
}
.ffn-steps {
  display: flex; gap: 22px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: rgba(234, 246, 255, 0.35); white-space: nowrap;
}
.ffn-steps span { transition: none; }
.pipe-gauge { backface-visibility: hidden; }
.gauge__row.dim { opacity: 0.55; }
.pipe-bubble { max-width: 620px; }

/* plates: gsap sets box + z, class provides the look */
.plate { position: absolute; inset: auto; }

/* caption cards inside the pinned section stack on one spot */
.phase-card { z-index: 30; }

/* reduced motion: pipeline shows its final state, captions stack */
body.reduced .phase-card {
  position: static; width: auto; margin: 18px auto; max-width: 560px;
  opacity: 1 !important; visibility: visible !important; transform: none !important;
}
body.reduced #sc-pipeline { padding-bottom: 60px; }

/* ================= responsive ================= */

@media (max-width: 900px) {
  .q-grid { grid-template-columns: 1fr; }
  .lang-compare { width: min(300px, 78vw); }
  .sem-space { display: none; }
  .title-block__foot { grid-template-columns: repeat(2, 1fr); }
  .chip { font-size: 14px; height: 34px; }
  .pipe-note { font-size: 11.5px; }
}
