.project-detail-page { background:#0a0d10; }
.project-detail-page .site-header { background:rgba(9,12,15,.9); }
.project-detail-nav a { font-size:12px; }

.fc-hero { padding:150px 0 80px; background:radial-gradient(circle at 78% 16%,rgba(85,184,255,.07),transparent 27%),#0a0d10; }
.fc-back { display:inline-flex; align-items:center; gap:9px; color:#7f919d; font-size:12px; text-decoration:none; }
.fc-back:hover { color:var(--accent); }
.fc-hero-heading { display:grid; grid-template-columns:1.22fr .78fr; gap:60px; align-items:end; margin-top:38px; }
.fc-hero h1 { margin:0; max-width:980px; font-size:clamp(52px,6.2vw,90px); line-height:.99; letter-spacing:-.055em; }
.fc-hero-heading>p { margin:0 0 3px; color:#9aa8b2; font-size:14px; line-height:1.82; }
.fc-method-strip,.fc-sealing-flow { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:34px; }
.fc-method-strip span,.fc-sealing-flow span { padding:8px 10px; border:1px solid rgba(255,255,255,.075); border-radius:8px; background:rgba(255,255,255,.018); color:#dbe3e8; font-size:11px; }
.fc-method-strip b,.fc-sealing-flow b { color:#4f626f; font-weight:400; }

.fc-white-stage { background:#f7f7f4 !important; }
.fc-hero-visual { overflow:hidden; margin:46px 0 0; padding:14px; border:1px solid rgba(255,255,255,.08); border-radius:18px; background:#f7f7f4; }
.fc-hero-visual img { display:block; width:100%; height:auto; }

.fc-section { padding:104px 0; }
.fc-section-alt { background:#0d1115; border-top:1px solid rgba(255,255,255,.045); border-bottom:1px solid rgba(255,255,255,.045); }
.fc-section-heading { display:grid; grid-template-columns:.84fr 1.16fr; gap:68px; align-items:start; margin-bottom:42px; }
.fc-section-heading h2 { margin:0; font-size:clamp(34px,3.8vw,52px); line-height:1.08; letter-spacing:-.04em; }
.fc-section-heading p { margin:4px 0 0; color:#98a6b0; font-size:14px; line-height:1.86; }

.fc-media-card,.fc-real-part-card,.fc-framework-figure,.fc-placeholder { overflow:hidden; margin:0; border:1px solid rgba(255,255,255,.075); border-radius:16px; background:#11161a; }
.fc-media-card img,.fc-media-card video,.fc-real-part-card img,.fc-framework-figure img { display:block; width:100%; height:auto; }
.fc-media-card figcaption { display:flex; flex-direction:column; gap:5px; padding:16px 18px 18px; background:#11161a; }
.fc-media-card figcaption strong { color:#e5ecef; font-size:14px; }
.fc-media-card figcaption span { color:#7f8e98; font-size:11px; line-height:1.55; }

.fc-problem-grid { display:grid; grid-template-columns:1.16fr .84fr; gap:18px; }
.fc-video-card video { aspect-ratio:16/10; object-fit:cover; }
.fc-real-part-card { display:flex; flex-direction:column; }
.fc-real-part-card img { aspect-ratio:16/9; object-fit:cover; }
.fc-real-part-card>div { padding:22px 23px 24px; }
.fc-real-part-card strong { font-size:18px; color:#e8eef2; }
.fc-real-part-card p { margin:8px 0 0; color:#8d9ca7; font-size:12px; line-height:1.7; }

.fc-process-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:18px; }
.fc-placeholder { min-height:210px; display:flex; flex-direction:column; justify-content:center; align-items:center; padding:28px; text-align:center; border-style:dashed; background:linear-gradient(145deg,rgba(85,184,255,.025),transparent 55%),rgba(14,19,23,.7); }
.fc-placeholder.compact { min-height:150px; }
.fc-placeholder.large { min-height:270px; }
.fc-placeholder span { color:#a9cde2; font-size:14px; font-weight:650; }
.fc-placeholder small { max-width:500px; margin-top:9px; color:#657985; font-size:11px; line-height:1.6; }
.fc-transition-callout { margin-top:20px; padding:18px 20px; border-left:2px solid var(--accent); background:rgba(85,184,255,.035); color:#cbd8e0; font-size:13px; line-height:1.7; }

.fc-map-strip,.fc-scale-chain { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; gap:12px; align-items:center; margin-bottom:26px; }
.fc-map-strip>div,.fc-scale-chain>div { min-height:105px; display:flex; flex-direction:column; justify-content:center; padding:17px 18px; border:1px solid rgba(255,255,255,.07); border-radius:12px; background:rgba(255,255,255,.017); }
.fc-map-strip strong,.fc-scale-chain strong { color:var(--accent); font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
.fc-map-strip span,.fc-scale-chain span { margin-top:7px; color:#cdd7dd; font-size:12px; line-height:1.5; }
.fc-map-strip>b,.fc-scale-chain>b { color:#526571; font-weight:400; }

.fc-framework-figure { max-width:940px; margin:0 auto; padding:22px; background:#f7f7f4; }
.fc-framework-figure img { max-height:790px; object-fit:contain; }
.fc-framework-figure figcaption { padding:15px 4px 1px; color:#667781; font-size:11px; line-height:1.55; }
.fc-path-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:18px; margin-top:20px; }
.fc-inlet-card { padding-top:12px; }
.fc-inlet-card img { max-height:560px; object-fit:contain; }

.fc-sealing-flow { margin-top:-6px; margin-bottom:24px; }
.fc-two-visuals { display:grid; grid-template-columns:.92fr 1.08fr; gap:18px; }
.fc-media-dark { background:#0f1418; }
.fc-media-dark img { aspect-ratio:1.64/1; object-fit:cover; }
.fc-media-light { background:#f5f5f2; }
.fc-media-light img { aspect-ratio:1.95/1; object-fit:contain; }
.fc-convergence-line { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px; margin-top:22px; padding:18px; border:1px solid rgba(255,255,255,.07); border-radius:12px; color:#8fa1ac; font-size:12px; }
.fc-convergence-line b { color:#546773; font-weight:400; }
.fc-convergence-line strong { color:#dce8ee; }

.fc-placeholder-grid,.fc-optimization-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:24px; }
.fc-closing-statement { display:grid; grid-template-columns:.7fr 1.3fr; gap:30px; margin-top:28px; padding:26px 28px; border:1px solid rgba(85,184,255,.13); border-radius:14px; background:rgba(85,184,255,.025); }
.fc-closing-statement strong { color:#eef4f6; font-size:24px; letter-spacing:-.02em; }
.fc-closing-statement span { color:#8fa0aa; font-size:13px; line-height:1.7; }
.fc-tool-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.fc-tool-row span { padding:7px 9px; border:1px solid rgba(255,255,255,.075); border-radius:7px; color:#8899a4; font-size:10px; }
.fc-next-link { display:inline-flex; align-items:center; gap:10px; margin-top:46px; color:var(--accent); font-size:14px; font-weight:650; text-decoration:none; }

@media (max-width:900px){
  .project-detail-nav{display:none}.fc-hero-heading,.fc-section-heading,.fc-problem-grid,.fc-path-grid,.fc-two-visuals,.fc-closing-statement{grid-template-columns:1fr;gap:24px}
  .fc-map-strip,.fc-scale-chain{grid-template-columns:1fr}.fc-map-strip>b,.fc-scale-chain>b{transform:rotate(90deg);justify-self:center}.fc-process-row,.fc-placeholder-grid,.fc-optimization-grid{grid-template-columns:1fr}
}
@media (max-width:560px){
  .fc-hero{padding-top:120px}.fc-hero h1{font-size:47px}.fc-section{padding:74px 0}.fc-section-heading h2{font-size:34px}.fc-framework-figure{padding:10px}
}


/* ==========================================================
   v0.6.3 — fixed information hierarchy / typography system
   ========================================================== */

/* Project title: one full-width line on desktop */
.fc-hero-heading {
  display: block !important;
  margin-top: 38px;
}

.fc-hero h1 {
  max-width: none !important;
  font-size: clamp(42px, 4.35vw, 66px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.045em !important;
  white-space: nowrap;
}

/* The logic chain is a major information layer, not micro metadata */
.fc-method-strip {
  margin-top: 30px !important;
  gap: 11px !important;
}

.fc-method-strip span {
  padding: 11px 14px !important;
  font-size: 15px !important;
  line-height: 1.35;
  font-weight: 620;
}

.fc-method-strip b {
  font-size: 18px !important;
}

/* Level 1 inside each section */
.fc-section-heading h2 {
  font-size: clamp(36px, 3.7vw, 52px) !important;
  line-height: 1.1 !important;
}

/*
  Smallest project-page explanatory text.
  All captions / notes / labels below are kept at the same size or larger.
*/
.fc-section-heading p {
  font-size: 13px !important;
  line-height: 1.9 !important;
}

/* Level 2 card headings — intentionally unified */
.fc-media-card figcaption strong,
.fc-real-part-card strong {
  font-size: 20px !important;
  line-height: 1.3;
  font-weight: 680;
}

/* Level 3 supporting text */
.fc-media-card figcaption span,
.fc-real-part-card p,
.fc-framework-figure figcaption,
.fc-placeholder small,
.fc-wide-figure figcaption {
  font-size: 13px !important;
  line-height: 1.65 !important;
}

/* Process / placeholder headings */
.fc-placeholder span {
  font-size: 16px !important;
  line-height: 1.4;
}

/* Key-question callout */
.fc-transition-callout {
  font-size: 16px !important;
  line-height: 1.7 !important;
  font-weight: 580;
}

/* Tolerance mapping and scale mapping labels */
.fc-map-strip strong,
.fc-scale-chain strong {
  font-size: 16px !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
}

.fc-map-strip span,
.fc-scale-chain span {
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.fc-map-strip > b,
.fc-scale-chain > b {
  font-size: 18px !important;
}

/* Micro-sealing chain */
.fc-sealing-flow span {
  font-size: 15px !important;
  padding: 10px 13px !important;
  font-weight: 620;
}

.fc-sealing-flow b {
  font-size: 18px !important;
}

/* The old multiscale convergence sentence is removed in HTML */
.fc-convergence-line {
  display: none !important;
}

/* Optimization placeholders */
.fc-optimization-grid .fc-placeholder span,
.fc-placeholder-grid .fc-placeholder span {
  font-size: 16px !important;
}

.fc-next-link {
  margin-top: 42px !important;
  font-size: 16px !important;
}

/* Do not allow tiny project-detail typography */
.project-detail-page .fc-back,
.project-detail-page .project-detail-nav a {
  font-size: 13px !important;
}

@media (max-width: 1180px) {
  .fc-hero h1 {
    white-space: normal;
  }
}

@media (max-width: 700px) {
  .fc-hero h1 {
    font-size: 42px !important;
  }

  .fc-method-strip span {
    font-size: 14px !important;
  }
}


/* ==========================================================
   v0.6.4 — readable hierarchy + real process/leakage figures
   ========================================================== */

/* All white-background technical figures use actual pure white. */
.fc-white-stage,
.fc-hero-visual,
.fc-framework-figure,
.fc-media-light,
.fc-process-card {
  background: #ffffff !important;
}

/* Section layout: title on one line, explanation directly below. */
.fc-section-heading {
  display: block !important;
  margin-bottom: 38px !important;
}

.fc-section-heading h2 {
  max-width: none !important;
  margin: 0 !important;
}

.fc-section-heading p {
  max-width: 1120px !important;
  margin: 16px 0 0 !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
  color: #a5b2bb !important;
}

/* Hero logic chain: this is core content, not metadata. */
.fc-method-strip {
  gap: 14px !important;
  margin-top: 32px !important;
}

.fc-method-strip span {
  padding: 13px 17px !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 680 !important;
}

.fc-method-strip b {
  color: #6f8ea1 !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

/* Content-level card titles. */
.fc-media-card figcaption strong,
.fc-real-part-card strong,
.fc-tolerance-scope h3 {
  font-size: 20px !important;
  line-height: 1.35 !important;
  font-weight: 680 !important;
}

/* Supporting text: no miniature content text. */
.fc-media-card figcaption span,
.fc-real-part-card p,
.fc-placeholder small,
.fc-framework-figure figcaption,
.fc-tolerance-scope p,
.fc-tolerance-scope-grid span {
  font-size: 16px !important;
  line-height: 1.68 !important;
}

/* Process images */
.fc-process-row {
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  align-items: stretch;
}

.fc-process-card img {
  width: 100%;
  aspect-ratio: 2.08 / 1;
  object-fit: contain !important;
  background: #fff;
}

.fc-process-card figcaption {
  background: #11161a !important;
}

/* Input / Propagation / Output = same hierarchy as local-section card titles. */
.fc-map-strip strong,
.fc-scale-chain strong {
  font-size: 20px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.fc-map-strip span,
.fc-scale-chain span {
  margin-top: 9px !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

.fc-map-strip > div,
.fc-scale-chain > div {
  min-height: 125px !important;
  padding: 20px 21px !important;
}

/* Tolerance scope block */
.fc-tolerance-scope {
  margin: 28px 0 30px;
  padding: 25px 26px 27px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
}

.fc-tolerance-scope h3 {
  margin: 0;
  color: #edf2f5;
}

.fc-tolerance-scope > p {
  max-width: 980px;
  margin: 10px 0 0;
  color: #96a5af;
}

.fc-tolerance-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 20px;
}

.fc-tolerance-scope-grid > div {
  min-height: 115px;
  padding: 18px 19px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px;
  background: rgba(255,255,255,.015);
}

.fc-tolerance-scope-grid strong {
  display: block;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.fc-tolerance-scope-grid span {
  display: block;
  margin-top: 9px;
  color: #d1dbe1;
}

.fc-tolerance-scope-note {
  margin-top: 17px !important;
  color: #7f919c !important;
}

/* With the alignment placeholder removed, the sealing-path figure gets usable width. */
.fc-path-grid-single {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* Cross-section -> layer -> stack hierarchy */
.fc-scale-chain strong {
  font-size: 22px !important;
}

.fc-scale-chain span {
  font-size: 17px !important;
}

/* Real leakage figures: first two side-by-side, stack result full-width. */
.fc-leakage-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  margin-top: 26px;
}

.fc-leakage-figures .fc-media-card img {
  display: block;
  width: 100%;
  height: 390px;
  object-fit: contain;
  background: #fff;
}

.fc-leakage-wide {
  grid-column: 1 / -1;
}

.fc-leakage-wide img {
  height: auto !important;
  max-height: 650px;
}

/* Optimization real result */
.fc-opt-figure img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: contain;
  background: #fff;
}

.fc-optimization-grid {
  align-items: stretch;
}

.fc-optimization-grid > * {
  min-height: 100%;
}

/* Placeholder heading stays readable. */
.fc-placeholder span {
  font-size: 19px !important;
}

@media (max-width: 900px) {
  .fc-tolerance-scope-grid,
  .fc-leakage-figures {
    grid-template-columns: 1fr;
  }

  .fc-leakage-wide {
    grid-column: auto;
  }

  .fc-process-row {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .fc-method-strip span {
    font-size: 16px !important;
  }

  .fc-method-strip b {
    font-size: 22px !important;
  }
}


/* ==========================================================
   v0.6.5 — layout cleanup / dark-shell technical figures
   ========================================================== */

/* The long project title must wrap naturally according to viewport width. */
.fc-hero h1 {
  max-width: 1240px !important;
  white-space: normal !important;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

/* Logic chain remains prominent; arrows are visually heavier. */
.fc-method-strip span {
  font-size: 21px !important;
}

.fc-method-strip b {
  font-size: 31px !important;
  font-weight: 900 !important;
  -webkit-text-stroke: .55px currentColor;
  transform: scaleX(1.12);
  transform-origin: center;
}

/* Every section explanation sits directly under its title and is readable.
   The opening "problem" paragraph stays the smallest project-page body copy. */
.fc-section-heading p {
  font-size: 17px !important;
  line-height: 1.82 !important;
}

#problem .fc-section-heading p {
  font-size: 16px !important;
}

/* Do not stretch the right "real part" card to match the taller animation. */
.fc-problem-grid {
  align-items: start !important;
}

.fc-real-part-card {
  height: auto !important;
  align-self: start;
}

.fc-real-part-card img {
  aspect-ratio: 16 / 10 !important;
  object-position: center 28%;
}

.fc-real-part-card > div {
  padding: 20px 22px 22px !important;
}

.fc-real-part-card p {
  font-size: 17px !important;
  line-height: 1.65 !important;
}

/* Remove the obsolete sensitivity sentence if legacy CSS/content remains. */
.fc-tolerance-scope-note {
  display: none !important;
}

/* Two tolerance visuals side by side. Their widths are chosen so natural
   image heights are close without forced white letterboxing. */
.fc-tolerance-visuals {
  display: grid;
  grid-template-columns: .44fr .56fr;
  gap: 18px;
  margin-top: 26px;
  align-items: start;
}

/* Technical figure rule:
   card shell/caption are dark; white exists only inside the technical image. */
.fc-technical-card {
  background: #11161a !important;
  border-color: rgba(255,255,255,.09) !important;
}

.fc-technical-card > img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  background: #ffffff;
}

.fc-technical-card figcaption {
  background: #11161a !important;
  border-top: 1px solid rgba(255,255,255,.055);
}

.fc-technical-card figcaption strong {
  font-size: 20px !important;
}

.fc-technical-card figcaption span {
  font-size: 17px !important;
  line-height: 1.65 !important;
}

/* The local sealing-path card no longer has a white outer shell. */
.fc-inlet-card {
  padding-top: 0 !important;
  background: #11161a !important;
}

.fc-inlet-card img {
  max-height: none !important;
}

/* Same correction for "different misalignment" local response. */
.fc-gasket-response-card {
  background: #11161a !important;
}

.fc-gasket-response-card img {
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: #fff;
}

/* Leakage section: logic vertically on the left, three wide figures on right. */
.fc-leakage-story {
  display: grid;
  grid-template-columns: minmax(250px,.30fr) minmax(0,.70fr);
  gap: 28px;
  align-items: start;
  margin-top: 26px;
}

.fc-scale-chain-vertical {
  display: flex !important;
  flex-direction: column;
  gap: 14px !important;
  margin: 0 !important;
}

.fc-scale-chain-vertical > div {
  width: 100%;
  min-height: 150px !important;
  padding: 24px 22px !important;
  justify-content: center;
}

.fc-scale-chain-vertical > b {
  align-self: center;
  color: #6f8ea1 !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  -webkit-text-stroke: .5px currentColor;
  line-height: 1;
}

.fc-scale-chain-vertical strong {
  font-size: 25px !important;
}

.fc-scale-chain-vertical span {
  font-size: 17px !important;
  line-height: 1.6 !important;
}

/* No fixed image height: fixed-height contain was creating the large white bands. */
.fc-leakage-figures {
  display: flex !important;
  flex-direction: column;
  gap: 18px !important;
  margin: 0 !important;
}

.fc-leakage-figures .fc-media-card {
  width: 100%;
}

.fc-leakage-figures .fc-media-card img {
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  background: #fff;
}

.fc-leakage-wide {
  grid-column: auto !important;
}

/* Final optimization section: one real evidence figure, no empty symmetry box. */
.fc-opt-single {
  width: min(100%, 980px);
  margin: 28px auto 0;
}

.fc-opt-single img {
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
  background: #fff;
}

/* Old optimization grid no longer controls layout. */
.fc-optimization-grid {
  display: block !important;
}

/* Remove forced white outer stages from technical cards. */
.fc-technical-card.fc-white-stage,
.fc-inlet-card.fc-white-stage,
.fc-gasket-response-card.fc-white-stage {
  background: #11161a !important;
}

@media (max-width: 980px) {
  .fc-tolerance-visuals,
  .fc-leakage-story {
    grid-template-columns: 1fr;
  }

  .fc-scale-chain-vertical {
    max-width: 720px;
    margin: 0 auto 8px !important;
  }
}

@media (max-width: 720px) {
  .fc-method-strip span {
    font-size: 17px !important;
  }

  .fc-method-strip b {
    font-size: 25px !important;
  }

  .fc-hero h1 {
    overflow-wrap: normal;
  }
}


/* ==========================================================
   v0.6.6 — unified high-fidelity layout system
   ========================================================== */

:root {
  --fc-card-bg: #11161a;
  --fc-card-border: rgba(255,255,255,.085);
  --fc-logic-bg: rgba(255,255,255,.018);
  --fc-logic-border: rgba(255,255,255,.075);
}

/* Logic diagrams share one visual language */
.fc-method-strip,
.fc-sealing-flow {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px !important;
}

.fc-method-strip span,
.fc-sealing-flow span {
  padding: 12px 16px !important;
  border: 1px solid var(--fc-logic-border) !important;
  border-radius: 12px !important;
  background: var(--fc-logic-bg) !important;
  color: #edf3f6 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  font-weight: 670 !important;
}

.fc-method-strip b,
.fc-sealing-flow b {
  color: #78a5c1 !important;
  font-size: 30px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  -webkit-text-stroke: .6px currentColor;
  transform: scaleX(1.15);
}

.fc-section-heading p {
  font-size: 17px !important;
  line-height: 1.82 !important;
}

#problem .fc-section-heading p {
  font-size: 16px !important;
}

/* Problem cards: exact equal height; video visually smaller, part visually larger */
.fc-problem-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.fc-problem-card {
  display: grid !important;
  grid-template-rows: 330px minmax(118px,auto);
  height: 100% !important;
  background: var(--fc-card-bg) !important;
  border-color: var(--fc-card-border) !important;
}

.fc-problem-media {
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-video-stage {
  padding: 25px 34px;
  background: #0d1115;
}

.fc-video-stage video {
  width: 89% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: transparent !important;
}

.fc-part-stage {
  background: #f4f4f1;
}

.fc-part-stage img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center 38% !important;
  transform: scale(1.10);
}

.fc-problem-card figcaption {
  min-height: 118px;
  padding: 21px 23px 23px !important;
  background: var(--fc-card-bg) !important;
  border-top: 1px solid rgba(255,255,255,.055);
}

.fc-problem-card figcaption strong {
  font-size: 20px !important;
}

.fc-problem-card figcaption span {
  margin-top: 7px;
  font-size: 17px !important;
  line-height: 1.62 !important;
}

/* Process cards: no white outer shell */
.fc-process-row {
  align-items: stretch !important;
}

.fc-process-card,
.fc-process-card.fc-white-stage {
  display: grid !important;
  grid-template-rows: 300px minmax(118px,auto);
  height: 100%;
  background: var(--fc-card-bg) !important;
  border-color: var(--fc-card-border) !important;
}

.fc-process-card img {
  width: 100% !important;
  height: 300px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: #fff !important;
}

.fc-process-card figcaption {
  min-height: 118px;
  padding: 20px 22px 22px !important;
  background: var(--fc-card-bg) !important;
  border-top: 1px solid rgba(255,255,255,.055);
}

/* Compact and balanced Input -> Propagation -> Output */
.fc-map-strip {
  grid-template-columns: minmax(0,1fr) 54px minmax(0,1fr) 54px minmax(0,1fr) !important;
  gap: 8px !important;
  margin: 4px 0 28px !important;
  align-items: center !important;
}

.fc-map-strip > div {
  min-height: 94px !important;
  padding: 16px 24px !important;
  border: 1px solid var(--fc-logic-border) !important;
  border-radius: 13px !important;
  background: var(--fc-logic-bg) !important;
}

.fc-map-strip strong {
  font-size: 21px !important;
  font-weight: 720 !important;
}

.fc-map-strip span {
  margin-top: 6px !important;
  font-size: 17px !important;
  line-height: 1.48 !important;
}

.fc-map-strip > b {
  justify-self: center;
  color: #78a5c1 !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  -webkit-text-stroke: .55px currentColor;
}

/* Tolerances: simple list instead of card-in-card */
.fc-tolerance-scope {
  margin: 30px 0 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.fc-tolerance-scope h3 {
  margin: 0 !important;
  font-size: 22px !important;
  line-height: 1.35 !important;
}

.fc-tolerance-scope > p {
  max-width: 1040px !important;
  margin: 10px 0 14px !important;
  font-size: 17px !important;
  line-height: 1.72 !important;
}

.fc-tolerance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.07);
}

.fc-tolerance-list li {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  gap: 24px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.fc-tolerance-list strong {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.fc-tolerance-list span {
  color: #d2dce2;
  font-size: 17px;
  line-height: 1.55;
}

/* Tolerance framework + local section: exact equal-height cards */
.fc-tolerance-visuals {
  grid-template-columns: 1fr 1fr !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.fc-tolerance-visuals .fc-technical-card {
  display: grid !important;
  grid-template-rows: 360px minmax(118px,auto);
  height: 100%;
  background: var(--fc-card-bg) !important;
}

.fc-tolerance-visuals .fc-technical-card > img {
  width: 100% !important;
  height: 360px !important;
  max-height: none !important;
  object-fit: contain !important;
  background: #fff !important;
}

.fc-tolerance-visuals .fc-technical-card figcaption {
  min-height: 118px;
  padding: 20px 22px 22px !important;
  background: var(--fc-card-bg) !important;
  border-top: 1px solid rgba(255,255,255,.055);
}

/* Micro sealing: identical logic-box and image-card language */
.fc-sealing-flow {
  margin: 2px 0 26px !important;
}

.fc-two-visuals {
  grid-template-columns: 1fr 1fr !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.fc-two-visuals .fc-media-card {
  display: grid !important;
  grid-template-rows: 360px minmax(118px,auto);
  height: 100%;
  background: var(--fc-card-bg) !important;
}

.fc-two-visuals .fc-media-card > img {
  width: 100% !important;
  height: 360px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: #fff !important;
}

.fc-two-visuals .fc-media-card figcaption {
  min-height: 118px;
  padding: 20px 22px 22px !important;
  background: var(--fc-card-bg) !important;
  border-top: 1px solid rgba(255,255,255,.055);
}

/* Leakage:
   top = vertical logic + single-layer card, perfectly aligned;
   bottom cards span the entire combined width. */
.fc-leakage-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 26px;
}

.fc-leakage-top {
  display: grid;
  grid-template-columns: minmax(280px,.31fr) minmax(0,.69fr);
  gap: 20px;
  align-items: stretch;
}

.fc-scale-chain-vertical {
  height: 100%;
  margin: 0 !important;
  display: grid !important;
  grid-template-rows: 1fr 36px 1fr 36px 1fr;
  gap: 0 !important;
}

.fc-scale-chain-vertical > div {
  min-height: 0 !important;
  width: 100%;
  padding: 22px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center !important;
  border: 1px solid var(--fc-logic-border) !important;
  border-radius: 13px !important;
  background: var(--fc-logic-bg) !important;
}

.fc-scale-chain-vertical > b {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78a5c1 !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  -webkit-text-stroke: .55px currentColor;
}

.fc-scale-chain-vertical strong {
  font-size: 22px !important;
  line-height: 1.25 !important;
}

.fc-scale-chain-vertical span {
  margin-top: 8px !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
}

.fc-layer-card,
.fc-stack-wide-card {
  display: grid !important;
  grid-template-rows: auto minmax(118px,auto);
  background: var(--fc-card-bg) !important;
}

.fc-layer-card > img,
.fc-stack-wide-card > img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  background: #fff !important;
}

.fc-layer-card figcaption,
.fc-stack-wide-card figcaption {
  min-height: 118px;
  padding: 20px 22px 22px !important;
  background: var(--fc-card-bg) !important;
  border-top: 1px solid rgba(255,255,255,.055);
}

/* One real optimization result is enough */
.fc-opt-single {
  width: min(100%,1080px) !important;
  margin: 28px auto 0 !important;
}

@media (max-width: 980px) {
  .fc-problem-grid,
  .fc-tolerance-visuals,
  .fc-two-visuals,
  .fc-leakage-top {
    grid-template-columns: 1fr !important;
  }

  .fc-problem-card,
  .fc-process-card,
  .fc-tolerance-visuals .fc-technical-card,
  .fc-two-visuals .fc-media-card {
    grid-template-rows: auto auto;
  }

  .fc-problem-media,
  .fc-process-card img,
  .fc-tolerance-visuals .fc-technical-card > img,
  .fc-two-visuals .fc-media-card > img {
    height: auto !important;
  }

  .fc-video-stage video {
    min-height: 300px;
  }

  .fc-map-strip {
    grid-template-columns: 1fr !important;
  }

  .fc-map-strip > b {
    transform: rotate(90deg);
  }

  .fc-scale-chain-vertical {
    min-height: 530px;
  }
}

@media (max-width: 680px) {
  .fc-method-strip span,
  .fc-sealing-flow span {
    font-size: 16px !important;
  }

  .fc-method-strip b,
  .fc-sealing-flow b {
    font-size: 23px !important;
  }

  .fc-tolerance-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}


/* v0.6.6 final audit — neutralize legacy horizontal grid on vertical scale chain */
.fc-scale-chain-vertical {
  grid-template-columns: 1fr !important;
  grid-auto-flow: row !important;
}


/* ==========================================================
   v0.6.7 — media fill, GD&T badges, compact evidence cards
   ========================================================== */

/* Problem cards: media ratio matches the source animation (2560×1706),
   therefore video can genuinely fill the card without artificial gutters. */
.fc-problem-card {
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
}

.fc-problem-media {
  width: 100%;
  aspect-ratio: 2560 / 1706;
  flex: 0 0 auto;
}

.fc-video-stage {
  padding: 0 !important;
  background: #0d1115 !important;
}

.fc-video-stage video {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center;
}

.fc-part-stage img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 38% !important;
  transform: scale(1.12);
}

.fc-problem-card figcaption {
  flex: 1 0 auto;
}

/* Positioning process images: dark buffer between white technical image and card edge. */
.fc-process-card {
  grid-template-rows: 300px minmax(118px,auto) !important;
}

.fc-process-media {
  height: 300px;
  box-sizing: border-box;
  padding: 14px;
  background: #0d1115;
}

.fc-process-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #fff !important;
  border-radius: 10px;
}

/* GD&T / tolerance symbol language */
.fc-tolerance-list li {
  align-items: center !important;
}

.fc-tolerance-list li > span {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.fc-tol-term {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.fc-gdt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 27px;
  padding: 0 5px;
  border: 1px solid rgba(85,184,255,.32);
  border-radius: 7px;
  background: rgba(85,184,255,.07);
  color: #78c5ff;
  font-family: Arial, "Segoe UI Symbol", sans-serif;
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
  font-style: normal;
  text-shadow: 0 0 .01px currentColor;
}

/* Leakage logic returns to a compact horizontal strip. */
.fc-leakage-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.fc-scale-chain-horizontal {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 52px minmax(0,1fr) 52px minmax(0,1fr) !important;
  align-items: center;
  gap: 8px !important;
  margin: 0 0 4px !important;
}

.fc-scale-chain-horizontal > div {
  min-height: 96px !important;
  padding: 17px 20px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--fc-logic-border) !important;
  border-radius: 13px !important;
  background: var(--fc-logic-bg) !important;
}

.fc-scale-chain-horizontal > b {
  justify-self: center;
  color: #78a5c1 !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  -webkit-text-stroke: .55px currentColor;
}

.fc-scale-chain-horizontal strong {
  font-size: 21px !important;
  line-height: 1.25 !important;
  font-weight: 720 !important;
}

.fc-scale-chain-horizontal span {
  margin-top: 7px !important;
  font-size: 17px !important;
  line-height: 1.48 !important;
}

/* One card language for technical evidence: explanation left, image right. */
.fc-evidence-card {
  display: grid;
  grid-template-columns: minmax(260px,.34fr) minmax(0,.66fr);
  min-height: 292px;
  overflow: hidden;
  border: 1px solid var(--fc-card-border);
  border-radius: 16px;
  background: var(--fc-card-bg);
}

.fc-evidence-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 34px;
  border-right: 1px solid rgba(255,255,255,.055);
}

.fc-evidence-copy strong {
  color: #eef3f6;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.018em;
}

.fc-evidence-copy p {
  margin: 13px 0 0;
  color: #9aa9b3;
  font-size: 17px;
  line-height: 1.72;
}

.fc-evidence-media {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  background: #0d1115;
}

.fc-evidence-media img {
  display: block;
  width: 100%;
  max-height: 270px;
  object-fit: contain;
  background: #fff;
  border-radius: 9px;
}

/* The wide optimization plot uses the same restrained card proportions. */
.fc-opt-evidence {
  width: min(100%,1120px);
  margin: 28px auto 0;
  min-height: 310px;
}

.fc-opt-evidence .fc-evidence-media img {
  max-height: 285px;
}

/* Neutralize legacy leakage/optimization rules. */
.fc-leakage-top,
.fc-scale-chain-vertical,
.fc-layer-card,
.fc-stack-wide-card,
.fc-opt-single {
  display: none !important;
}

@media (max-width: 900px) {
  .fc-scale-chain-horizontal {
    grid-template-columns: 1fr !important;
  }
  .fc-scale-chain-horizontal > b {
    transform: rotate(90deg);
  }
  .fc-evidence-card {
    grid-template-columns: 1fr;
  }
  .fc-evidence-copy {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.055);
  }
  .fc-evidence-media img {
    max-height: none;
  }
}


/* ==========================================================
   v0.6.8 — natural-height horizontal evidence cards
   ========================================================== */

/*
  All horizontal evidence cards share the same overall width and the
  same text-column width. Height is now content-driven rather than fixed.
*/
.fc-evidence-card,
.fc-opt-evidence {
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  grid-template-columns: 34% 66% !important;
  align-items: stretch;
}

.fc-evidence-copy {
  min-height: 0 !important;
  padding: 28px 34px !important;
  justify-content: center;
}

/*
  Do not create a fixed-height white image box. The image keeps its own
  aspect ratio and therefore determines the card height naturally.
*/
.fc-evidence-media {
  min-height: 0 !important;
  padding: 12px 14px !important;
  align-items: center;
  justify-content: center;
  background: #0d1115 !important;
}

.fc-evidence-media img,
.fc-opt-evidence .fc-evidence-media img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 8px;
  background: #fff;
}

/* Optimization uses exactly the same full-width card proportions. */
.fc-opt-evidence {
  margin: 28px 0 0 !important;
}

@media (max-width: 900px) {
  .fc-evidence-card,
  .fc-opt-evidence {
    grid-template-columns: 1fr !important;
  }

  .fc-evidence-copy {
    min-height: auto !important;
  }
}
