/* Rocket fin can (project 06). Scoped to fc- classes; reuses the site's shared pieces
   (.viewer, .v-tools, .v-hud, .parts-list, .kpis, .panel, .seg, .chart, .tip, .steps, .code, .renders). */

.fc { --fc-hot: #f05252; --fc-warn: #e9a23b; --fc-ok: #22c55e; }

/* ---------- viewer ---------- */
#fc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
#fc-canvas.hovering { cursor: pointer; }
#fc-canvas:active { cursor: grabbing; }

/* the flutter lab sits where the V8's engine HUD does */
.fc-lab { gap: 10px 16px; }
.fc-lab-k { color: var(--ink); font-weight: 600; font-size: 12.5px; letter-spacing: -0.01em; }
.fc-lab input[type="range"] { width: 120px; accent-color: #fff; }
.fc-mats { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.fc-mats button { height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: none; font: 500 12px/1 var(--font); color: var(--muted); cursor: pointer; transition: all var(--dur-1); }
.fc-mats button:hover { color: var(--ink); background: var(--hover); }
.fc-mats button[aria-pressed="true"] { background: #fff; color: #000; }
.fc-verdict { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 8px; border-radius: 999px; border: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.fc-verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fc-ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); transition: background var(--dur-2), box-shadow var(--dur-2); }
.fc-verdict b { color: var(--ink); font-weight: 600; min-width: 40px; }
.fc-verdict span { color: var(--ink-2); }
.fc-verdict.warn::before { background: var(--fc-warn); box-shadow: 0 0 0 3px rgba(233, 162, 59, 0.2); }
.fc-verdict.bad { border-color: rgba(240, 82, 82, 0.55); }
.fc-verdict.bad::before { background: var(--fc-hot); box-shadow: 0 0 0 3px rgba(240, 82, 82, 0.25); animation: fc-pulse 0.5s ease-in-out infinite alternate; }
@keyframes fc-pulse { to { box-shadow: 0 0 0 6px rgba(240, 82, 82, 0.05); } }
.reduce-motion .fc-verdict.bad::before { animation: none; }
@media (max-width: 760px) {
  .fc-lab { right: 10px; }
  .fc-lab input[type="range"] { width: 90px; }
  .fc-lab-k { display: none; }
}

/* ---------- section heads + layout ---------- */
.fc-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin: 72px 0 18px; }
.fc-h h4 { margin: 0; font: 600 clamp(24px, 2.6vw, 30px)/1.1 var(--font); letter-spacing: -0.04em; }
.fc-h p { margin: 8px 0 0; font-size: 15px; color: var(--muted); max-width: 640px; }
.fc-why { max-width: 860px; margin: 30px 0 0; }
.fc-why blockquote { margin: 12px 0 0; padding: 2px 0 2px 22px; border-left: 2px solid var(--ink); }
.fc-why blockquote p { margin: 0; font: 500 clamp(19px, 2.1vw, 24px)/1.45 var(--font); letter-spacing: -0.02em; color: var(--ink); }

/* ---------- flight chart ---------- */
.fc-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.fc-stats > div { padding: 14px 0; border-top: 1px solid var(--line); }
.fc-stats > div:nth-child(odd) { padding-right: 14px; }
.fc-stats dt { font: 500 12.5px/1.35 var(--font); color: var(--muted); }
.fc-stats dd { margin: 6px 0 0; font: 600 20px/1.1 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fc-stats dd small { font: 400 13px/1 var(--font); color: var(--muted); letter-spacing: 0; }
.fc-event { font: 500 11px var(--font); fill: var(--muted); }
.fc-event-line { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; stroke-dasharray: 2 4; }
.fc-area { fill: url(#fc-grad); }
.fc-band { fill: rgba(34, 197, 94, 0.08); }
.fc-band-label { font: 500 11px var(--font); fill: rgba(34, 197, 94, 0.85); }
.fc-target { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1; stroke-dasharray: 5 5; }

/* ---------- design space ---------- */
.fc-pt { cursor: pointer; transition: r var(--dur-1); }
.fc-pt.t40 { fill: #fafafa; }
.fc-pt.t48 { fill: #6b6b6b; }
.fc-pt.iter { fill: none; stroke: var(--c-gbpjpy); stroke-width: 2; }
.fc-pt.on { stroke: #fff; stroke-width: 2; }
.fc-chosen-ring { fill: none; stroke: #fff; stroke-width: 1.5; }
.fc-iter-path { fill: none; stroke: var(--c-gbpjpy); stroke-width: 1.4; stroke-dasharray: 4 4; marker-end: url(#fc-arrow); }
.fc-iter-label { font: 500 11.5px var(--font); fill: var(--c-gbpjpy); }
.fc-plan { display: grid; gap: 14px; }
.fc-plan svg { width: 100%; height: auto; }
.fc-plan .body { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.2; }
.fc-plan .fin { fill: rgba(255, 255, 255, 0.9); }
.fc-plan .fin.prev { fill: none; stroke: var(--c-gbpjpy); stroke-width: 1.4; stroke-dasharray: 4 3; }
.fc-plan .dim { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.fc-plan .dim-t { font: 500 11px var(--font); fill: var(--muted); }
.fc-plan-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fc-plan-title b { font: 600 16px/1.3 var(--font); letter-spacing: -0.015em; }
.fc-plan-title span { font-size: 12.5px; color: var(--muted); }
.fc-iters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.fc-iter { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.fc-iter .label { display: block; margin-bottom: 8px; }
.fc-iter h5 { margin: 0 0 6px; font: 600 16px/1.3 var(--font); letter-spacing: -0.015em; }
.fc-iter p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.fc-iter p b { color: var(--ink-2); font-weight: 500; }
.fc-iter.win { border-color: var(--line-3); }
@media (max-width: 860px) { .fc-iters { grid-template-columns: minmax(0, 1fr); } }

/* ---------- flutter ---------- */
.fc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.fc-table th { padding: 8px 6px; white-space: nowrap; text-align: right; font: 500 12.5px/1.3 var(--font); color: var(--muted); border-bottom: 1px solid var(--line-2); }
.fc-table th:first-child, .fc-table td:first-child { text-align: left; }
.fc-table td { padding: 10px 6px; white-space: nowrap; text-align: right; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.fc-table tr.on td { color: var(--ink); background: var(--hover); }
.fc-table .sw { display: inline-block; width: 10px; height: 3px; margin-right: 8px; border-radius: 2px; vertical-align: middle; }
.fc-lab-mark { fill: #000; stroke: #fff; stroke-width: 2; }
.fc-lab-mark-label { font: 600 12px var(--font); fill: var(--ink); }

/* ---------- load cases ---------- */
.fc-bar { fill: #fafafa; }
.fc-bar.fail { fill: #5c5c5c; }
.fc-bar.hot { fill: #fff; }
.fc-need { stroke: var(--fc-hot); stroke-width: 2; }
.fc-unity { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; stroke-dasharray: 2 3; }
.fc-bar-label { font: 500 12px var(--font); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.fc-case-label { font: 400 12.5px var(--font); fill: var(--ink-2); }
.fc-case-label.fail { fill: var(--muted); }
.fc-group-label { font: 600 12px var(--font); fill: var(--ink); }
.fc-says { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.fc-says li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.fc-says li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.fc-says b { color: var(--ink); font-weight: 600; }

/* ---------- renders on black, report ---------- */
.fc .renders figure { background: #0a0a0a; }
.fc .renders img { object-fit: contain; }
.fc-report { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 14px; }
.fc-report h4 { font-size: 20px; }
.fc-report p { margin: 6px 0 0; font-size: 15px; color: var(--muted); max-width: 620px; }
.fc-report .btn svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .fc-report { grid-template-columns: minmax(0, 1fr); } }

/* ---------- tile + launcher art (outside the panel) ---------- */
/* (the tile's size and position come from the shared project grid in site.css) */

.fc-tile-art .o { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.fc-tile-art .fin { fill: rgba(255, 255, 255, 0.92); stroke: none; }
.fc-tile-art .h { fill: none; stroke: rgba(255, 255, 255, 0.38); stroke-width: 1; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.fc-tile-art .c { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; stroke-dasharray: 18 4 3 4; vector-effect: non-scaling-stroke; }
.fc-tile-art .d { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fc-tile-art text { font: 500 15px var(--font); fill: rgba(255, 255, 255, 0.5); letter-spacing: 0.04em; }
.fc-launch-svg { width: 100%; height: 100%; }
.fc-launch-svg .o { fill: none; stroke: #fff; stroke-width: 1.6; }
.fc-launch-svg .fin { fill: #fff; }
.fc-launch-svg .h { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 1; stroke-dasharray: 3 2; }

/* the About page launcher: seven projects + "All projects", two full rows of four */
@media (min-width: 1021px) { .launcher { grid-template-columns: repeat(4, 1fr); } }
