/* ═══════════════════════════════════════════════════════════════════════════
   JOB FILE — About page real-vehicle case study
   "Brand at low volume": lime as ink not light, hairlines not glowing panels,
   Chakra Petch set like a technical document. Uses core tokens only.
   Breakpoints: desktop ≥1025 · tablet 769–1024 · mobile ≤768.
   ═══════════════════════════════════════════════════════════════════════════ */

section.jf {
  --jf-bg: #0c0c10;
  --jf-hair: var(--border);                 /* 7% white — structure */
  --jf-faint: rgba(255, 255, 255, 0.04);    /* secondary */
  --jf-ink: rgba(255, 255, 255, 0.92);
  --jf-ink-soft: rgba(255, 255, 255, 0.85);
  /* Secondary mono text. Site --muted-2 (42%) is 4.07:1 on this ground; 56%
     clears WCAG AA (≥4.5:1) for the 10–11px labels used throughout. */
  --jf-muted: rgba(255, 255, 255, 0.56);
  --jf-mono: Consolas, 'SF Mono', 'Roboto Mono', ui-monospace, monospace;
  --jf-gap: clamp(40px, 5vw, 80px);
  /* How far the photograph may run past the container's left edge on wide
     screens, leaving room for the spine. 0 on narrow desktops. */
  --jf-bleed: clamp(0px, calc((100vw - var(--max)) / 2 - 56px), 160px);

  position: relative;
  background: var(--jf-bg);
  border-top: 1px solid var(--jf-hair);
  border-bottom: 1px solid var(--jf-hair);
  padding: clamp(48px, 5.5vw, 80px) 0 clamp(56px, 6vw, 88px);
  /* clip, not hidden: hidden makes the section a scroll container and
     silently disables the sticky photograph on desktop */
  overflow: hidden;
  overflow: clip;
}

/* Drafting grid + one 4% tonal lift behind the photograph. Felt, not seen. */
.jf-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 48% 60% at 18% 30%, rgba(200, 255, 0, 0.04), transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
}

.jf-container { position: relative; }

/* ── File rule + tab ─────────────────────────────────────────────────────── */
.jf-rule {
  position: relative;
  height: 1px;
  background: var(--lime);
  margin-bottom: clamp(36px, 4vw, 56px);
  transform-origin: left center;
}
.jf-rule.reveal { transform: translateY(0) scaleX(0); opacity: 1; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.jf-rule.reveal.is-visible { transform: scaleX(1); }

.jf-tab {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 7px 14px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jf-bg);
  background: var(--lime);
  clip-path: var(--clip-tag);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease 0.4s;
}
.jf-rule.is-visible .jf-tab { opacity: 1; }

/* ── Spine (desktop only) ────────────────────────────────────────────────── */
.jf-spine {
  display: none;
  position: absolute;
  left: calc(-1 * var(--jf-bleed) - 36px);
  top: 50%;
  transform: translateX(-50%) rotate(-90deg) translateX(-50%);
  transform-origin: center;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--jf-muted);
  white-space: nowrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--jf-hair);
}

/* ── Body grid ───────────────────────────────────────────────────────────── */
/* .jf-body is a plain stack; .jf-upper is the two-column grid. A sticky
   element is bounded by its containing block, so keeping the photo's grid
   separate from the full-width rows below means it releases at the end of
   the first column instead of riding over the legend and process. */
.jf-body { display: block; }
.jf-upper {
  display: grid;
  grid-template-columns: minmax(360px, 42%) minmax(0, 1fr);
  column-gap: var(--jf-gap);
  row-gap: 0;
  grid-template-areas:
    "media head"
    "media action"
    "media record"
    "media quote";
  align-items: start;
}

/* ── Media: the photograph as a mounted print ────────────────────────────── */
.jf-media {
  grid-area: media;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  margin: 0 0 0 calc(-1 * var(--jf-bleed));
  width: calc(100% + var(--jf-bleed));
  z-index: 1;
}

.jf-frame {
  position: relative;
  border: 1px solid var(--jf-hair);
  outline: 1px solid var(--jf-faint);
  outline-offset: 6px;
  background: #000;
  transition: border-color 0.2s ease;
}
.jf-frame:hover { border-color: rgba(255, 255, 255, 0.14); }

.jf-frame picture,
.jf-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.jf-frame img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.96);
}

/* Registration ticks outside the mount corners */
.jf-tick {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--jf-muted);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}
.jf-tick--tl { top: -14px; left: -14px; border-top-width: 1px; border-left-width: 1px; }
.jf-tick--tr { top: -14px; right: -14px; border-top-width: 1px; border-right-width: 1px; }
.jf-tick--bl { bottom: -14px; left: -14px; border-bottom-width: 1px; border-left-width: 1px; }
.jf-tick--br { bottom: -14px; right: -14px; border-bottom-width: 1px; border-right-width: 1px; }

/* Evidence markers — square drawing callouts, not UI dots */
.jf-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--lime);
  background: var(--jf-bg);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.9s ease;
}
.jf-marker:hover,
.jf-marker:focus-visible,
.jf-marker.is-hot,
.jf-marker[aria-expanded="true"] {
  background: var(--lime);
  color: var(--jf-bg);
}
.jf-marker:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Metadata strip — the print's caption */
.jf-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 14px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--jf-hair);
  font-family: var(--jf-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jf-muted);
}
.jf-meta > span + span::before {
  content: '·';
  margin: 0 10px;
  opacity: 0.6;
}
.jf-meta-ref { color: var(--jf-ink-soft); }

.jf-inspect {
  margin: -6px 0 -6px auto; /* ≥24px target without moving the baseline */
  padding: 6px 0 6px 16px;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: rgba(200, 255, 0, 0.7);
  cursor: zoom-in;
  transition: color 0.2s ease;
}
.jf-inspect:hover,
.jf-frame:hover ~ .jf-meta .jf-inspect { color: var(--lime); }
.jf-inspect:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ── Head ────────────────────────────────────────────────────────────────── */
.jf-head { grid-area: head; position: relative; z-index: 2; }

.jf .section-label--mono {
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  border-color: var(--jf-hair);
  margin-bottom: 20px;
}
.jf .section-label--mono::before { color: var(--jf-muted); }

.jf-head h2 {
  margin: 0 0 22px calc(-1 * var(--jf-gap) + 24px);
  padding: 8px 0 8px 24px;
  background: var(--jf-bg);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  font-style: italic;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: none;
}
.jf-accent { color: var(--lime); display: block; }

.jf-intro {
  margin: 0 0 22px;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.jf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jf-chip {
  padding: 7px 12px 7px 11px;
  border: 1px solid var(--jf-hair);
  border-left: 1px solid var(--lime);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jf-ink-soft);
  white-space: nowrap;
}

/* ── Record: two ledger blocks + tie ─────────────────────────────────────── */
.jf-record {
  grid-area: record;
  max-width: 560px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--jf-hair);
}

/* Who is in the photograph — the strongest trust line in the section */
.jf-who {
  position: relative;
  margin: 0 0 22px;
  padding-left: 18px;
  max-width: 50ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--jf-ink-soft);
}
.jf-who strong { color: var(--jf-ink); font-weight: 600; }
.jf-who-mark { position: absolute; left: 0; top: 7px; width: 8px; height: 8px; background: var(--lime); }

.jf-ledger {
  position: relative;
  padding: 2px 0 0 20px;
  transition: background-color 0.2s ease;
}
.jf-ledger::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--lime);
}
.jf-ledger--tcu::before {
  background: repeating-linear-gradient(180deg, var(--lime) 0 4px, transparent 4px 7px);
}
.jf-ledger:hover { background: rgba(255, 255, 255, 0.02); }

.jf-ledger-title {
  display: inline-block;
  margin: 0 0 6px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--lime);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jf-muted);
}

.jf-rows { margin: 0; }
.jf-row {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
}
.jf-row::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--jf-hair);
  transform-origin: left center;
}
.jf-row dt {
  margin: 0;
  padding-top: 3px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jf-muted);
}
.jf-row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--jf-ink);
}

/* Ruling-in on reveal: hairlines draw, then values appear */
.jf-record.reveal .jf-row::after { transform: scaleX(0); transition: transform 0.5s ease; }
.jf-record.reveal .jf-row dd,
.jf-record.reveal .jf-row dt { opacity: 0; transition: opacity 0.4s ease; }
.jf-record.reveal.is-visible .jf-row::after { transform: scaleX(1); }
.jf-record.reveal.is-visible .jf-row dd,
.jf-record.reveal.is-visible .jf-row dt { opacity: 1; }
.jf-record.reveal.is-visible .jf-row:nth-child(1)::after { transition-delay: 0.10s; }
.jf-record.reveal.is-visible .jf-row:nth-child(2)::after { transition-delay: 0.16s; }
.jf-record.reveal.is-visible .jf-row:nth-child(3)::after { transition-delay: 0.22s; }
.jf-record.reveal.is-visible .jf-row:nth-child(1) dt,
.jf-record.reveal.is-visible .jf-row:nth-child(1) dd { transition-delay: 0.30s; }
.jf-record.reveal.is-visible .jf-row:nth-child(2) dt,
.jf-record.reveal.is-visible .jf-row:nth-child(2) dd { transition-delay: 0.36s; }
.jf-record.reveal.is-visible .jf-row:nth-child(3) dt,
.jf-record.reveal.is-visible .jf-row:nth-child(3) dd { transition-delay: 0.42s; }

.jf-swatch {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  padding: 0;
  vertical-align: 1px;
  border: 1px solid rgba(200, 255, 0, 0.6);
  background: transparent;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.jf-swatch:hover,
.jf-swatch:focus-visible,
.jf-swatch.is-hot,
.jf-swatch[aria-expanded="true"] { background: var(--lime); color: var(--jf-bg); }
.jf-swatch:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.jf-ledger-foot {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.jf-tie {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 22px 20px;
}
.jf-tie::before,
.jf-tie::after { content: ''; flex: 1; height: 1px; background: var(--jf-hair); }
.jf-tie span {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jf-muted);
  white-space: nowrap;
}

/* ── Philosophy pull-quote ───────────────────────────────────────────────── */
.jf-quote {
  grid-area: quote;
  max-width: 560px;
  margin: 34px 0 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--lime);
}
.jf-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  color: var(--jf-ink-soft);
}

/* ── Action: reg field is the one lit element ────────────────────────────── */
.jf-action { grid-area: action; max-width: 620px; margin-top: 30px; }

.jf-action-label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jf-ink-soft);
}

/* Reuses the hero plate styling via .reg-check; tightened for the record. */
.jf-reg.reg-check {
  --reg-field-h: 64px;
  margin: 0;
  max-width: none;
}
.jf-reg .reg-check-form { justify-content: flex-start; gap: 12px; }
.jf-reg .vrn-plate { max-width: 300px; }
.jf-reg .vrn-input { font-size: clamp(24px, 2.2vw, 32px); }
.jf-reg .reg-check-btn { font-size: 15px; }

.jf .btn-primary {
  box-shadow: 0 6px 20px rgba(225, 6, 0, 0.25), inset 0 0 0 1px rgba(255, 90, 90, 0.35);
}
.jf .btn-primary:hover {
  box-shadow: 0 8px 26px rgba(225, 6, 0, 0.3), inset 0 0 0 1px rgba(255, 110, 110, 0.5);
}

.jf-micro {
  margin: 12px 0 0;
  max-width: 54ch;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.jf-action-alt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 22px;
}

.jf .btn--mono {
  background: transparent;
  color: var(--jf-ink-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  padding: 13px 24px;
  font-size: 13px;
}
.jf .btn--mono:hover,
.jf .btn--mono:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.jf .btn--mono svg { color: #25d366; opacity: 0.85; flex: 0 0 auto; }

.jf-link {
  display: inline-block;
  padding: 5px 0 3px;
  margin: -5px 0 0; /* 24px+ target, same visual position */
  border-bottom: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jf-ink-soft);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.jf-link:hover,
.jf-link:focus-visible { color: #fff; border-color: var(--lime); }

/* ── Legend: the four marker notes ───────────────────────────────────────── */
.jf-legend {
  grid-area: legend;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(44px, 5vw, 64px);
  border-top: 1px solid var(--jf-hair);
  border-bottom: 1px solid var(--jf-hair);
}
.jf-legend-item {
  position: relative;
  padding: 16px 20px 18px 0;
  transition: background-color 0.2s ease;
}
.jf-legend-item + .jf-legend-item { padding-left: 20px; border-left: 1px solid var(--jf-faint); }
.jf-legend-item:hover,
.jf-legend-item.is-open { background: rgba(255, 255, 255, 0.02); }

.jf-legend-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 4px 0;
  margin: -4px 0; /* 30px target, layout unchanged */
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--jf-ink-soft);
}
.jf-legend-num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid var(--lime);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.jf-legend-item.is-hot .jf-legend-num,
.jf-legend-item.is-open .jf-legend-num,
.jf-legend-btn:hover .jf-legend-num { background: var(--lime); color: var(--jf-bg); }
.jf-legend-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.jf-legend-btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

.jf-note { margin-top: 12px; padding-left: 34px; }
/* Above the phone breakpoint the notes are captions, always readable; the
   buttons and markers only highlight their pair (JS mirrors this). */
@media (min-width: 769px) {
  .jf-note[hidden] { display: block; }
}
.jf-note p {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.jf-note code {
  display: block;
  font-family: var(--jf-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--jf-muted);
}

/* ── Why both control units ──────────────────────────────────────────────── */
.jf-why {
  grid-area: why;
  margin-top: clamp(40px, 4.5vw, 56px);
  max-width: 760px;
}
.jf-why summary {
  list-style: none;
  cursor: default;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jf-muted);
  margin-bottom: 16px;
  padding: 4px 0; /* ≥24px target */
  margin-top: -4px;
}
.jf-why summary::-webkit-details-marker { display: none; }
.jf-why summary::marker { content: ''; }
.jf-why-mobile { display: none; }
.jf-why-body p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.jf-why-body p:last-child { margin-bottom: 0; }

/* ── Process rail ────────────────────────────────────────────────────────── */
.jf-process { grid-area: process; margin-top: clamp(40px, 4.5vw, 56px); }
.jf-process-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jf-muted);
}
.jf-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--jf-hair);
}
.jf-step {
  position: relative;
  padding: 18px 20px 4px 0;
  display: grid;
  gap: 6px;
}
.jf-step + .jf-step { padding-left: 20px; border-left: 1px solid var(--jf-faint); }
.jf-step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--lime);
}
.jf-step + .jf-step::before { left: 20px; }
.jf-step-num {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--lime);
}
.jf-step strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--jf-ink);
}
.jf-step > span:last-child {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Trust strip ─────────────────────────────────────────────────────────── */
.jf-trust {
  grid-area: trust;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: clamp(36px, 4vw, 52px) 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--jf-hair);
  border-bottom: 1px solid var(--jf-hair);
  list-style: none;
}
.jf-trust li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jf-ink-soft);
}
.jf-trust li::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--lime);
}

/* ── Handshake into the credentials section ─────────────────────────────── */
.jf-handshake {
  grid-area: handshake;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 18px 0 2px;
  text-decoration: none;
  color: var(--jf-ink-soft);
}
.jf-handshake-text {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
}
.jf-handshake-text strong { color: #fff; font-weight: 700; }
.jf-handshake-cta {
  flex: 0 0 auto;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--lime);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  white-space: nowrap;
  transition: border-width 0.15s ease;
}
.jf-handshake-cta span { display: inline-block; transition: transform 0.2s ease; }
.jf-handshake:hover .jf-handshake-cta { border-bottom-width: 2px; }
.jf-handshake:hover .jf-handshake-cta span { transform: translateY(2px); }
.jf-handshake:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; }

/* ── Desktop-only refinements (≥1025) ────────────────────────────────────── */
@media (min-width: 1025px) {
  .jf-spine { display: block; }
}

/* ── Tablet (769–1024): photo inside container, action moves up ─────────── */
@media (max-width: 1024px) and (min-width: 769px) {
  section.jf { --jf-bleed: 0px; --jf-gap: 36px; }
  .jf-upper {
    grid-template-columns: minmax(300px, 45%) minmax(0, 1fr);
    grid-template-areas:
      "media head"
      "media action"
      "record record"
      "quote quote";
  }
  .jf-media { position: static; margin: 0; width: 100%; }
  .jf-head h2 { margin-left: 0; padding: 0; font-size: clamp(30px, 4.2vw, 40px); }
  .jf-action { margin-top: 28px; }
  .jf-reg .vrn-plate { max-width: 260px; }
  .jf-record { max-width: none; margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .jf-record .jf-tie { grid-column: 1 / -1; order: 3; margin: 20px 0 0; }
  .jf-record .jf-ledger--tcu { order: 2; }
  .jf-record .jf-customer { grid-column: 1 / -1; order: 4; }
  .jf-legend { grid-template-columns: 1fr 1fr; }
  .jf-legend-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .jf-legend-item:nth-child(n+3) { border-top: 1px solid var(--jf-faint); }
  .jf-steps { grid-template-columns: 1fr 1fr; }
  .jf-step:nth-child(3) { padding-left: 0; border-left: 0; }
  .jf-step:nth-child(3)::before { left: 0; }
  .jf-step:nth-child(n+3) { border-top: 1px solid var(--jf-faint); margin-top: 8px; }
}

/* Mobile/desktop copy variants (see about.html). One DOM; the short form
   shows ≤768, the long form above. Tap hint is a mobile-only overlay. */
.jf-m { display: none; }
.jf-tap-hint { display: none; }

/* ── Mobile (≤768): a designed sequence, not a stack ────────────────────── */
@media (max-width: 768px) {
  section.jf { --jf-bleed: 0px; padding: 28px 0 48px; }
  .jf-bg { background-image: none; }

  /* The decorative rule + tab duplicated the eyebrow and cost ~70px of the
     first viewport. Mobile gets one label, the eyebrow, and it says what
     this is in plain words. */
  .jf-rule { display: none; }
  .jf-d { display: none; }
  .jf-m { display: inline; }

  /* Reveal timing: a fast thumb must never meet an empty area. */
  .jf .reveal { transition-duration: 0.35s; transform: translateY(14px); }
  .jf .reveal.is-visible { transform: none; }
  .jf-record.reveal .jf-row::after { transition-duration: 0.3s; }
  .jf-record.reveal .jf-row dd,
  .jf-record.reveal .jf-row dt { transition-duration: 0.25s; }
  .jf-record.reveal.is-visible .jf-row::after,
  .jf-record.reveal.is-visible .jf-row dt,
  .jf-record.reveal.is-visible .jf-row dd { transition-delay: 0s; }

  .jf-body {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* desktop grid uses start; column items must fill */
    gap: 0;
    min-width: 0;
  }
  .jf-upper { display: contents; } /* its children join the column below */
  .jf-body > *, .jf-upper > * { grid-area: auto; min-width: 0; }

  /* 1. understand — eyebrow, 3–4 line headline, one plain sentence.
     Target: the photograph enters the first viewport on a 375×667 phone. */
  .jf-head { order: 1; }
  .jf .section-label--mono { margin-bottom: 12px; padding: 6px 10px; font-size: 10.5px; letter-spacing: 0.14em; }
  .jf-head h2 {
    margin: 0 0 12px;
    padding: 0;
    font-size: clamp(27px, 7.4vw, 32px);
    line-height: 1.02;
    letter-spacing: -0.005em;
  }
  .jf-intro {
    margin: 0;
    max-width: none;
    font-size: 16px;
    line-height: 1.5;
    color: var(--jf-ink-soft);
  }
  .jf-who { margin: 12px 0 0; max-width: none; font-size: 13.5px; line-height: 1.5; }
  .jf-who-mark { top: 6px; }
  .jf-chips { display: none; }

  /* 2. see — full-bleed 4:5. Taller than 16:9 so the car, the seat, the
     wheel, the laptop and the tool all read at a glance. */
  .jf-media {
    order: 2;
    position: static;
    margin: 18px calc(-1 * var(--jf-edge, 16px)) 0;
    width: auto;
  }
  .jf-frame { border-left: 0; border-right: 0; outline: 0; }
  .jf-frame img { aspect-ratio: 4 / 5; }
  .jf-tick { display: none; }
  .jf-marker { left: var(--xm, var(--x)); top: var(--ym, var(--y)); width: 30px; height: 30px; font-size: 11.5px; }
  .jf-marker--04 { display: none; }
  /* 44px hit area without growing the visual square */
  .jf-marker::after { content: ''; position: absolute; inset: -8px; }
  .jf-tap-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    left: var(--jf-edge, 16px);
    top: 12px; /* over the headrest, clear of the jacket logo and the markers */
    padding: 6px 9px;
    border: 1px solid var(--jf-hair);
    background: rgba(5, 5, 7, 0.78);
    font-family: var(--jf-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--jf-ink-soft);
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .jf-tap-hint::before { content: ''; width: 8px; height: 8px; border: 1px solid var(--lime); }
  .jf-frame.has-opened .jf-tap-hint { opacity: 0; }
  .jf-meta {
    gap: 4px 0;
    margin: 0 var(--jf-edge, 16px);
    padding: 10px 0;
    border-top: 0;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 0.1em;
  }
  .jf-meta-ref,
  .jf-meta-tool { display: none; } /* ref is desktop furniture; tool is legend tab 01 */
  .jf-meta > span + span::before { margin: 0 7px; }
  .jf-meta > .jf-meta-ref + span::before { content: none; }
  /* Two deliberate lines: "vehicle · year …… Inspect" / "service" */
  .jf-meta > span:nth-of-type(4) { flex-basis: 100%; order: 2; }
  .jf-meta > span:nth-of-type(4)::before { content: none; }
  .jf-inspect { order: 1; }
  .jf-inspect { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0 -10px auto; padding-left: 14px; }

  /* 3. proof notes — three tabs under the photo. Items use display:contents
     so the buttons sit in one row and the open note wraps beneath them. */
  .jf-legend {
    order: 3;
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--jf-edge, 16px)) 0;
    border-top: 1px solid var(--jf-hair);
    border-bottom: 1px solid var(--jf-hair);
  }
  .jf-legend-item { display: contents; }
  .jf-legend-item--04 { display: none; }
  .jf-legend-btn {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 12px 10px 12px 12px;
    border-bottom: 2px solid transparent;
    border-left: 1px solid var(--jf-faint);
    min-height: 44px;
  }
  .jf-legend-item:first-child .jf-legend-btn { border-left: 0; }
  .jf-legend-item.is-open .jf-legend-btn { border-bottom-color: var(--lime); }
  .jf-legend-name { font-size: 11.5px; letter-spacing: 0.05em; line-height: 1.3; }
  .jf-note {
    order: 10;
    flex: 1 1 100%;
    margin: 0;
    padding: 14px var(--jf-edge, 16px) 16px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--jf-faint);
  }
  .jf-note p { font-size: 15px; }

  /* 4. trust — moved up from the foot of the section. A visitor comparing
     tuners sees reversible / insurer spec sheet / IMI Level 3 / health
     check before they are asked for a reg. */
  .jf-trust {
    order: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin: 18px 0 0;
    padding: 0 0 18px;
    border-top: 0;
    border-bottom: 1px solid var(--jf-hair);
  }
  .jf-trust li { align-items: flex-start; gap: 9px; font-size: 11.5px; line-height: 1.35; letter-spacing: 0.06em; }
  .jf-trust li::before { margin-top: 4px; }
  .jf-trust li:nth-child(5) { grid-column: 1 / -1; }

  /* 5. act — directly after the proof and the trust points */
  .jf-action { order: 5; margin-top: 22px; max-width: none; }
  .jf-action-label { margin-bottom: 12px; font-size: 12px; color: var(--jf-ink); }
  .jf-reg.reg-check { --reg-field-h: 62px; }
  .jf-reg .reg-check-form { flex-direction: column; align-items: stretch; gap: 10px; }
  /* site.css gives the plate flex: 1 1 280px for the hero's row layout; in
     this column form that basis would become its height (601–768px). */
  .jf-reg .vrn-plate { max-width: none; width: 100%; flex: 0 0 auto; height: var(--reg-field-h); }
  .jf-reg .vrn-input { font-size: 28px; width: 100%; min-width: 0; }
  .jf-reg .reg-check-btn { width: 100%; max-width: none; justify-content: center; }
  .jf-micro { margin-top: 10px; font-size: 13px; }
  .jf-action-alt { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 14px; }
  .jf .btn--mono { justify-content: center; min-height: 48px; }
  .jf-link { display: flex; align-items: center; gap: 6px; align-self: stretch; min-height: 44px; margin: 0; padding: 0; border-bottom: 0; font-size: 12px; }

  /* 6. verify — compact ledger, key beside value, half the height */
  .jf-record { order: 6; max-width: none; margin-top: 30px; padding-top: 0; border-top: 0; }
  .jf-ledger-title { font-size: 11px; }
  .jf-row { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
  .jf-row dt { padding-top: 2px; font-size: 11px; }
  .jf-row dd { font-size: 14px; line-height: 1.45; }
  .jf-swatch { position: relative; width: 20px; height: 20px; font-size: 9.5px; }
  .jf-swatch::after { content: ''; position: absolute; inset: -13px; } /* 46px hit area */
  .jf-ledger-foot { font-size: 12.5px; }
  /* "Original file — read first, archived" already appears in the ECU ledger
     and as a trust point; the TCU repeat is desktop rhythm, not information. */
  .jf-ledger--tcu .jf-row:nth-child(3) { display: none; }
  .jf-tie { margin: 14px 0 14px 20px; }

  /* 7. learn — collapsed by default (JS removes [open] on small screens) */
  .jf-why { order: 7; margin-top: 26px; }
  .jf-why summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    min-height: 48px;
    padding: 14px 0;
    font-size: 11.5px;
    border-top: 1px solid var(--jf-hair);
    border-bottom: 1px solid var(--jf-hair);
    color: var(--jf-ink-soft);
    letter-spacing: 0.12em;
  }
  .jf-why summary::after {
    content: '+';
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1;
    color: var(--lime);
  }
  .jf-why[open] summary::after { content: '−'; }
  .jf-why-label { display: none; }
  .jf-why-mobile { display: inline; }
  .jf-why-body { padding-top: 16px; }
  .jf-why-body p { font-size: 15px; }

  /* 8. process — snap slider (site pattern ≤768) */
  .jf-process { order: 8; margin-top: 26px; }
  .jf-steps {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-top: 0;
    margin: 0 calc(-1 * var(--jf-edge, 16px));
    padding: 0 var(--jf-edge, 16px) 4px;
  }
  .jf-steps::-webkit-scrollbar { display: none; }
  .jf-step {
    flex: 0 0 72%;
    scroll-snap-align: start;
    padding: 16px 16px 14px;
    border: 1px solid var(--jf-hair);
    border-left: 1px solid var(--jf-hair) !important;
  }
  .jf-step::before { left: 16px !important; top: -1px; }

  /* 9. quote */
  .jf-quote { order: 9; margin-top: 26px; max-width: none; }
  .jf-quote p { font-size: 16px; }

  /* 10. handshake — named, qualified person; 44px link into the certificates */
  .jf-handshake { order: 10; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--jf-hair); }
  .jf-handshake-text { font-size: 12px; line-height: 1.55; }
  .jf-handshake-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-bottom: 0;
    border-bottom: 0;
    text-decoration: underline;
    text-decoration-color: var(--lime);
    text-underline-offset: 5px;
  }
}

/* Large phones / small tablets in portrait (600–768): the phone layout
   applies, but a full-bleed 4:5 photo would be ~960px tall. Mount it as a
   centred print instead and let the proof tabs stay full width. */
@media (min-width: 600px) and (max-width: 768px) {
  .jf-media { max-width: 520px; margin-left: auto; margin-right: auto; }
  .jf-frame { border-left: 1px solid var(--jf-hair); border-right: 1px solid var(--jf-hair); }
  .jf-meta { margin-left: 0; margin-right: 0; }
  .jf-tap-hint { left: 12px; }
  .jf-intro, .jf-who { max-width: 60ch; }
  .jf-trust { grid-template-columns: 1fr 1fr 1fr; }
  .jf-trust li:nth-child(5) { grid-column: auto; }
  .jf-step { flex-basis: 46%; }
}

/* Container gutter as a variable so full-bleed elements can match it. */
section.jf { --jf-edge: 16px; }
@media (min-width: 768px) { section.jf { --jf-edge: 24px; } }

/* ── Reduced motion: everything instant, nothing hidden ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  .jf-rule.reveal { transform: scaleX(1); transition: none; }
  .jf-tab { opacity: 1; transition: none; }
  .jf-record.reveal .jf-row::after { transform: scaleX(1); transition: none; }
  .jf-record.reveal .jf-row dd,
  .jf-record.reveal .jf-row dt { opacity: 1; transition: none; }
  .jf-marker,
  .jf-swatch,
  .jf-legend-num,
  .jf-handshake-cta span { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   JF-01 CALIBRATION SHEET (#jf-01-sheet, .jfs)
   The quoted Stage 1+ target for the S3 presented as a certificate: stock vs
   target gauges, a mode toggle, and the four TCU changes as icon chips.
   Every number is either the factory figure or the quoted target — labelled
   TARGET, never presented as a dyno result.
   ═══════════════════════════════════════════════════════════════════════════ */

section.jfs {
  --jfs-bg: #0c0c10;
  --jfs-hair: var(--border);
  --jfs-faint: rgba(255, 255, 255, 0.04);
  --jfs-ink: rgba(255, 255, 255, 0.92);
  --jfs-ink-soft: rgba(255, 255, 255, 0.85);
  --jfs-muted: rgba(255, 255, 255, 0.56); /* ≥4.5:1 on the ground, as in .jf */
  --jfs-mono: Consolas, 'SF Mono', 'Roboto Mono', ui-monospace, monospace;
  position: relative;
  background: var(--jfs-bg);
  border-top: 1px solid var(--jfs-hair);
  padding: clamp(56px, 7vw, 96px) 0;
  /* Tooltips are absolutely positioned; clip so an edge-case popover can
     never widen the page. */
  overflow: hidden;
  overflow: clip;
}

.jfs-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.jfs-head h2 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  color: var(--jfs-ink);
}
.jfs-intro {
  margin: 0;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--jfs-ink-soft);
}

/* ── Certificate card ────────────────────────────────────────────────────── */
.jfs-card {
  position: relative;
  border: 1px solid var(--jfs-hair);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 36%);
  padding: clamp(20px, 3.4vw, 44px);
}
/* Four lime corner ticks: card::before/::after take the top pair, the
   .jfs-corners span's pseudos take the bottom pair. */
.jfs-card::before,
.jfs-card::after,
.jfs-corners::before,
.jfs-corners::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--lime);
  pointer-events: none;
}
.jfs-card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.jfs-card::after { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.jfs-corners::before { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.jfs-corners::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* ── Header strip ────────────────────────────────────────────────────────── */
.jfs-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--jfs-hair);
  font-family: var(--jfs-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.jfs-ref { color: var(--jfs-ink); font-weight: 700; }
.jfs-vehicle { color: var(--jfs-muted); min-width: 0; }
.jfs-status { margin-left: auto; }
.jfs-status-chip {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--lime);
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* ── Tooltips (info marks, units). Hover/focus previews; click pins. ─────── */
.jfs-tip-wrap { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.jfs-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--jfs-hair);
  border-radius: 50%;
  background: transparent;
  color: var(--jfs-muted);
  font-family: var(--jfs-mono);
  font-size: 10px;
  font-style: italic;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.jfs-info::after { content: ''; position: absolute; inset: -8px; } /* tap area */
.jfs-info:hover,
.jfs-info[aria-expanded='true'] { color: var(--lime); border-color: var(--lime); }
.jfs-unit {
  padding: 0 0 1px;
  border: 0;
  background: transparent;
  color: var(--jfs-muted);
  font-family: var(--jfs-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: none; /* keep unit symbols correct: bhp, Nm */
  text-decoration: underline dotted var(--lime);
  text-underline-offset: 4px;
  cursor: help;
}
.jfs-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: min(280px, 74vw);
  padding: 10px 14px;
  background: #0a0a0a;
  border: 1px solid var(--jfs-hair);
  border-left: 2px solid var(--lime);
  font-family: var(--font-body, inherit);
  font-size: 12.5px;
  font-style: normal;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--jfs-ink-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 30;
}
.jfs-tip--right { left: auto; right: -6px; transform: none; }
.jfs-tip-wrap:hover .jfs-tip,
.jfs-tip-wrap.is-open .jfs-tip,
.jfs-info:focus-visible ~ .jfs-tip,
.jfs-unit:focus-visible ~ .jfs-tip { opacity: 1; visibility: visible; }

/* ── Stock / Stage 1+ toggle ─────────────────────────────────────────────── */
.jfs-toggle {
  display: flex;
  width: max-content;
  margin: clamp(22px, 3vw, 30px) auto 0;
  border: 1px solid var(--jfs-hair);
}
.jfs-toggle [role='radio'] {
  min-height: 42px;
  padding: 10px 26px;
  border: 0;
  background: transparent;
  color: var(--jfs-muted);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
.jfs-toggle [role='radio'] + [role='radio'] { border-left: 1px solid var(--jfs-hair); }
.jfs-toggle [role='radio']:hover { color: var(--jfs-ink); }
.jfs-toggle [role='radio'][aria-checked='true'] { background: var(--lime); color: #0b0b0b; }

/* ── Gauges ──────────────────────────────────────────────────────────────── */
.jfs-gauges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  max-width: 820px;
  margin: clamp(22px, 3vw, 34px) auto 0;
}
.jfs-gauge { margin: 0; }
.jfs-dial-box { position: relative; max-width: 300px; margin: 0 auto; }
.jfs-dial { display: block; width: 100%; height: auto; }
.jfs-dial-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 10; stroke-linecap: round; }
.jfs-dial-ticks { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 15; stroke-dasharray: 0.6 26.34; }
.jfs-dial-value {
  fill: none;
  stroke: var(--lime);
  stroke-width: 10;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(200, 255, 0, 0.35));
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.jfs-gauge--torque .jfs-dial-value {
  stroke: var(--red);
  filter: drop-shadow(0 0 6px rgba(225, 6, 0, 0.4));
}
.jfs-dial-ghost,
.jfs-dial-needle { transform-box: view-box; transform-origin: 100px 100px; }
.jfs-dial-ghost { transform: rotate(var(--jfs-ghost, 0deg)); }
.jfs-dial-ghost line { stroke: rgba(255, 255, 255, 0.35); stroke-width: 2; }
.jfs-dial-needle {
  transform: rotate(var(--jfs-rot, -135deg));
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.jfs-dial-needle line { stroke: var(--jfs-ink); stroke-width: 2.5; stroke-linecap: round; }
.jfs-dial-needle circle { fill: #0c0c10; stroke: var(--lime); stroke-width: 2; }
.jfs-gauge--torque .jfs-dial-needle circle { stroke: var(--red); }
.jfs-dial-end {
  fill: rgba(255, 255, 255, 0.4);
  font-family: var(--jfs-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-anchor: middle;
}
.jfs-gauge-read {
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none; /* let only the unit button take the pointer */
}
.jfs-gauge-read .jfs-tip-wrap { pointer-events: auto; }
.jfs-gauge-num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: var(--jfs-ink);
  font-variant-numeric: tabular-nums;
}
.jfs-gauge-caption { margin-top: 12px; text-align: center; }
.jfs-gauge-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jfs-muted);
}
.jfs-gauge-label::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--lime);
  vertical-align: 1px;
}
.jfs-gauge--torque .jfs-gauge-label::before { background: var(--red); }
.jfs-gauge-range {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--jfs-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jfs-muted);
}
.jfs-gauge-range strong { color: var(--jfs-ink); font-weight: 700; }
.jfs-range-stock,
.jfs-range-target { transition: opacity 0.3s; }
.jfs-card.is-stock .jfs-range-target { opacity: 0.45; }
.jfs-card:not(.is-stock) .jfs-range-stock { opacity: 0.6; }
.jfs-delta {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  background: var(--lime);
  color: #0b0b0b;
  font-family: var(--jfs-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: opacity 0.3s, filter 0.3s;
}
.jfs-gauge--torque .jfs-delta { background: var(--red); color: #fff; }
.jfs-card.is-stock .jfs-delta { opacity: 0.3; filter: grayscale(1); }

/* ── S-tronic TCU panel ──────────────────────────────────────────────────── */
.jfs-tcu {
  margin-top: clamp(30px, 4vw, 46px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--jfs-hair);
}
.jfs-tcu-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jfs-ink-soft);
}
.jfs-tcu-stocknote {
  margin: 10px 0 0;
  font-family: var(--jfs-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--jfs-muted);
}
.jfs-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  transition: opacity 0.3s;
}
.jfs-card.is-stock .jfs-chips { opacity: 0.4; }
.jfs-chip-item { position: relative; }
.jfs-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--jfs-faint);
  border: 1px solid var(--jfs-hair);
  color: var(--jfs-ink-soft);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.jfs-chip svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--lime); }
.jfs-chip:hover,
.jfs-chip[aria-expanded='true'] { border-color: rgba(200, 255, 0, 0.5); color: var(--jfs-ink); }
.jfs-chip-note {
  background: #0a0a0a;
  border: 1px solid var(--jfs-hair);
  border-left: 2px solid var(--lime);
  padding: 12px 14px;
  z-index: 25;
}
.jfs-chip-note p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--jfs-ink-soft); }
/* Desktop: the note floats above its chip; hover previews it (the [hidden]
   attribute is only honoured as the pinned state on touch layouts). */
@media (min-width: 769px) {
  .jfs-chip-note {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    width: min(280px, 100%);
    min-width: 220px;
  }
  .jfs-chip-item:last-child .jfs-chip-note { left: auto; right: 0; }
  @media (hover: hover) {
    .jfs-chip-item:hover .jfs-chip-note { display: block; }
  }
}

/* ── Footer: provenance line + CTA pair ──────────────────────────────────── */
.jfs-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(26px, 4vw, 40px);
  padding-top: clamp(18px, 3vw, 24px);
  border-top: 1px solid var(--jfs-hair);
}
.jfs-foot-note {
  margin: 0;
  font-family: var(--jfs-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jfs-muted);
}
.jfs-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.jfs-cta-main { display: inline-flex; align-items: center; gap: 10px; }
.jfs-wa { display: inline-flex; align-items: center; gap: 10px; }

/* Screen-reader only (local copy; keeps the module self-contained). */
.jfs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.jfs button:focus-visible,
.jfs a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ── Mobile (≤768) ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  section.jfs { padding: 44px 0 56px; }
  .jfs-head h2 { font-size: clamp(26px, 7vw, 31px); }
  .jfs-intro { font-size: 15px; }
  .jfs-strip { gap: 8px 14px; font-size: 10.5px; }
  .jfs-vehicle { flex-basis: 100%; order: 3; }
  .jfs-toggle { width: 100%; }
  .jfs-toggle [role='radio'] { flex: 1; min-height: 48px; }
  .jfs-gauges { grid-template-columns: 1fr; gap: 30px; }
  .jfs-dial-box { max-width: 280px; }
  /* Chips: 2×2; an opened note drops below the grid at full width, same
     pattern as the Job File legend tabs. */
  .jfs-chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .jfs-chip-item { display: contents; }
  .jfs-chip { flex: 1 1 46%; min-width: 0; min-height: 52px; }
  .jfs-chip-note { order: 10; flex: 1 1 100%; }
  .jfs-foot { flex-direction: column; align-items: stretch; }
  .jfs-cta { flex-direction: column; }
  .jfs-cta .btn { width: 100%; justify-content: center; min-height: 48px; }
}

/* ── Reduced motion: gauges render at their value instantly ──────────────── */
@media (prefers-reduced-motion: reduce) {
  .jfs-dial-value,
  .jfs-dial-needle,
  .jfs-range-stock,
  .jfs-range-target,
  .jfs-delta,
  .jfs-chips,
  .jfs-tip { transition: none; }
}
