/* ============================================================
   /feature/<slug>/ — one page per feature, generated by art/build_features.py.
   Heading and subtitle, the feature's film, then drawn graphics and detail.
   Builds on /home/home.css (nx- classes, .nx-art) and the player in
   /watch/watch.css. No screenshots here: the film is the product footage.
   Class prefix: fx-
   ============================================================ */

.fx-hero { padding-bottom: clamp(40px, 5vw, 72px); }
.fx-hero h1 { font-size: clamp(34px, 5.2vw, 66px); }
.fx-hero .nx-eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.fx-hero .nx-eyebrow a:hover { border-bottom-color: currentColor; }
.fx-film { max-width: 1060px; margin: clamp(32px, 4.5vw, 56px) auto 0; }
.fx-film .vp-stage { border-radius: 18px; box-shadow: 0 34px 80px oklch(0.15 0.02 274 / 0.22); }
.fx-film .vp-cap { justify-content: space-between; }

/* ---------- steps ---------- */
.fx-how { border-top: 1px solid var(--rule); }
.fx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: fx; position: relative; }
.fx-steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fx-steps li { position: relative; padding: 0 16px 0 0; counter-increment: fx; }
.fx-steps li::before {
  content: counter(fx); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); color: var(--accent); font-family: var(--font-mono); font-size: 14px; font-weight: 600; position: relative; z-index: 1;
}
.fx-steps li::after { content: ''; position: absolute; top: 18px; left: 38px; right: 0; height: 2px; background: var(--rule-strong); }
.fx-steps li:last-child::after { display: none; }
.fx-steps li:last-child::before { background: var(--violet-500); border-color: var(--violet-500); color: #fff; }
.fx-steps h3 { margin: 16px 0 0; font-size: 18.5px; letter-spacing: -.014em; font-weight: 600; }
.fx-steps p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 960px) {
  .fx-steps, .fx-steps-5 { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin: 0 auto; }
  .fx-steps li { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 18px; padding: 0 0 26px; }
  .fx-steps li::before { grid-row: 1 / span 2; }
  .fx-steps li::after { top: 38px; bottom: 0; left: 18px; right: auto; width: 2px; height: auto; }
  .fx-steps h3 { margin: 6px 0 0; }
}

/* ---------- detail rows ---------- */
.fx-detail { border-top: 1px solid var(--rule); }
.fx-stop { background: var(--bg-2); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(22px, 3vw, 34px); }
.fx-stop-h { margin: 0 0 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--err); font-weight: 600; }
.fx-stop ul { list-style: none; margin: 0; padding: 0; }
.fx-stop li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; font-weight: 500; }
.fx-stop li svg { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: var(--err); color: #fff; flex: none; }
.fx-stop-f { margin: 18px 0 0; font-size: 15px; color: var(--ink-2); }

/* ---------- tiles ---------- */
.fx-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fx-tiles li { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 20px 18px; min-width: 0; }
.fx-tiles h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; font-weight: 600; }
.fx-tiles p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.fx-tiles:has(li:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .fx-tiles, .fx-tiles:has(li:nth-child(6):last-child) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fx-tiles, .fx-tiles:has(li:nth-child(6):last-child) { grid-template-columns: 1fr; } }
.fx-note { margin: 26px auto 0; max-width: 78ch; text-align: center; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.fx-note b { color: var(--ink); font-weight: 600; }

/* ---------- who decides ---------- */
.fx-decides-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.fx-decides .nx-gate ul { margin-top: 14px; }
@media (max-width: 860px) { .fx-decides-in { grid-template-columns: 1fr; } }

/* ---------- transcript ---------- */
.fx-transcript { padding: clamp(36px, 5vw, 60px) 0; }
.fx-transcript details { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.fx-transcript summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 500; }
.fx-transcript summary::-webkit-details-marker { display: none; }
.fx-transcript .sign { font-family: var(--font-mono); color: var(--ink-2); }
.fx-transcript details[open] .sign { color: var(--accent); }
.fx-transcript .t { padding: 0 0 22px; display: grid; gap: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 70ch; }
.fx-transcript .t p { margin: 0; }

/* ---------- the other features ---------- */
.fx-others { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fx-others a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 20px; transition: border-color .15s, transform .15s; }
.fx-others a:hover { border-color: var(--accent); transform: translateY(-2px); }
.fx-others b { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hover); font-weight: 600; }
.fx-others span { margin-top: 10px; font-size: 18px; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; }
.fx-others i { margin-top: auto; padding-top: 16px; font-style: normal; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 960px) { .fx-others { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fx-others { grid-template-columns: 1fr; } }

/* ---------- closing band ---------- */
.fx-closer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.fx-closer p { color: var(--panel-ink-2); margin-top: 14px; max-width: 52ch; font-size: 16.5px; }
@media (max-width: 760px) { .fx-closer-in { grid-template-columns: 1fr; } }
