/* Customer builds share the FcForged brand tokens and remain isolated from theme UI. */
.fccases {
  --case-bg: var(--ink, #030608);
  --case-panel: var(--panel, #080d10);
  --case-panel-raised: var(--panel-2, #0d1418);
  --case-line: var(--line, #233139);
  --case-muted: var(--muted, #9ba8ae);
  --case-text: var(--paper, #f2f5f5);
  --case-accent: var(--cyan, #19e1da);
  --case-heading: var(--display, "Barlow Condensed", "Arial Narrow", sans-serif);
  --case-body: var(--body, "Inter", Arial, sans-serif);
  color: var(--case-text);
  font-family: var(--case-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.fccases *, .fccases *::before, .fccases *::after { box-sizing: border-box; }
.fccases img { display: block; max-width: 100%; height: auto; }
.fccases h1, .fccases h2, .fccases h3 { margin: 0; color: var(--case-text); font-family: var(--case-heading); font-weight: 700; line-height: 1.04; text-transform: uppercase; }
.fccases a { color: inherit; text-decoration: none; }
.fccases a:focus-visible, .fccases [tabindex]:focus-visible, .fccases input:focus-visible { outline: 2px solid var(--case-accent); outline-offset: 4px; }
.fccases a { touch-action: manipulation; }
.fccases [hidden] { display: none !important; }
.fccases-shell { width: min(1400px, calc(100% - 140px)); margin-inline: auto; }
.fccases-home { padding: 104px 0 112px; background: #071014; border-bottom: 1px solid var(--case-line); }
.fccases-page { padding: 32px 0 104px; background: var(--case-bg); }
.fccases-section-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 64px; margin-bottom: 48px; }
.fccases-section-heading h2 { max-width: 750px; font-size: clamp(36px, 4vw, 56px); }
.fccases-eyebrow { margin: 0 0 16px; color: var(--case-accent); font-family: var(--case-heading); font-size: 14px; font-weight: 600; font-style: italic; line-height: 1.35; text-transform: uppercase; }
.fccases-description { margin: 0 0 20px; color: var(--case-muted); font-size: 16px; line-height: 1.75; }
.fccases-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; font-size: 14px; font-weight: 600; line-height: 1.5; transition: color 180ms ease; }
.fccases-link > span[aria-hidden] { flex-shrink: 0; color: var(--case-accent); font-size: 21px; }
.fccases-link:hover { color: var(--case-accent); }
.fccases-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 12px 22px; border: 1px solid var(--case-accent); background: var(--case-accent); color: var(--case-bg) !important; font-family: var(--case-heading); font-size: 17px; font-weight: 700; line-height: 1.35; text-align: center; text-transform: uppercase; transition: background-color 180ms ease, border-color 180ms ease; }
.fccases-button:hover { background: var(--case-text); border-color: var(--case-text); }
.fccases-button > span { flex-shrink: 0; font-family: var(--case-body); font-size: 20px; }
.fccases-button:focus-visible { outline-color: var(--case-text) !important; }

/* Without JavaScript, navigation remains ordinary anchors and every build stays visible. */
.fccases-showcase { border: 1px solid var(--case-line); background: var(--case-panel); }
.fccases-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fccases-tab { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 88px; padding: 16px 20px; border-left: 3px solid transparent; border-bottom: 1px solid var(--case-line); background: var(--case-panel); cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease; }
.fccases-tab:focus-visible { outline-offset: -4px !important; }
.fccases-tab:hover, .fccases-tab[aria-selected="true"] { border-left-color: var(--case-accent); background: var(--case-panel-raised); }
.fccases-tab__number { flex: 0 0 20px; color: var(--case-muted); font-family: var(--case-heading); font-size: 14px; font-variant-numeric: tabular-nums; }
.fccases-tab[aria-selected="true"] .fccases-tab__number { color: var(--case-accent); }
.fccases-tab__thumb { flex: 0 0 64px; width: 64px; height: 52px; overflow: hidden; background: var(--case-panel-raised); }
.fccases-tab__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fccases-tab__thumb .fccases-photo-placeholder { min-height: 0; padding: 8px; }
.fccases-tab__thumb .fccases-photo-placeholder svg { width: 30px; height: 30px; }
.fccases-tab__thumb .fccases-photo-placeholder > span { display: none; }
.fccases-tab__copy { display: grid; gap: 5px; min-width: 0; }
.fccases-tab__copy strong { font-family: var(--case-heading); font-size: 21px; font-weight: 600; line-height: 1.15; text-transform: uppercase; }
.fccases-tab__copy > span { color: var(--case-muted); font-size: 12px; line-height: 1.5; }
.fccases-panel { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); min-width: 0; margin: 0; border-bottom: 1px solid var(--case-line); scroll-margin-top: 110px; }
.fccases-panel:last-child { border-bottom: 0; }
.fccases-panel__photo { position: relative; min-width: 0; min-height: 460px; overflow: hidden; background: var(--case-panel-raised); }
.fccases-panel__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fccases-photo-placeholder { display: flex; width: 100%; height: 100%; min-height: 180px; align-items: center; justify-content: center; flex-direction: column; gap: 16px; padding: 32px; color: var(--case-muted); background: var(--case-panel-raised); font-size: 14px; text-align: center; }
.fccases-panel__summary { min-width: 0; padding: 30px; border-left: 1px solid var(--case-line); }
.fccases-panel__summary h3 { margin-bottom: 18px; font-size: clamp(28px, 2.4vw, 36px); }
.fccases-panel__summary .fccases-description { font-size: 14px; }
.fccases-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0 0 28px; }
.fccases-facts > div { min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--case-line); }
.fccases-facts dt { margin: 0 0 6px; color: var(--case-muted); font-size: 12px; line-height: 1.5; }
.fccases-facts dd { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.5; }
.fccases-facts--compact { display: block; margin-bottom: 24px; }
.fccases-facts--compact > div { display: grid; grid-template-columns: minmax(70px, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 10px 0; }
.fccases-facts--compact dt { margin: 0; }
.fccases-facts--compact dd { font-size: 14px; }
.fccases-actions { display: grid; gap: 10px; }
.fccases-actions .fccases-link { justify-content: center; text-align: center; }

/* Subgrid lets the right-hand selectors size themselves while the photograph spans both rows. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 901px) {
    .fccases-showcase.is-enhanced { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr); grid-template-rows: auto 1fr; }
    .fccases-showcase.is-enhanced .fccases-tabs { position: relative; z-index: 1; grid-column: 2; grid-row: 1; display: block; border-left: 1px solid var(--case-line); }
    .fccases-showcase.is-enhanced .fccases-panel { grid-column: 1 / -1; grid-row: 1 / 3; grid-template-columns: subgrid; grid-template-rows: subgrid; border: 0; }
    .fccases-showcase.is-enhanced .fccases-panel__photo { grid-column: 1; grid-row: 1 / 3; }
    .fccases-showcase.is-enhanced .fccases-panel__summary { grid-column: 2; grid-row: 2; }
    .fccases-showcase.is-enhanced .fccases-panel:focus-visible { outline-offset: 5px; }
  }
}

.fccases-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 48px; color: var(--case-muted); font-size: 13px; }
.fccases-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.fccases-breadcrumb a:hover { color: var(--case-accent); }
.fccases-page-heading { max-width: 1000px; margin-bottom: 48px; }
.fccases-page-heading h1 { margin-bottom: 24px; font-size: clamp(48px, 7vw, 92px); }
.fccases-page-heading .fccases-description { max-width: 700px; margin-bottom: 0; }
.fccases-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.fccases-card { min-width: 0; border: 1px solid var(--case-line); background: var(--case-panel); }
.fccases-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--case-panel-raised); }
.fccases-card__image > img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }
.fccases-card:hover .fccases-card__image > img { transform: scale(1.025); }
.fccases-card__body { padding: 24px; }
.fccases-card .fccases-eyebrow { margin-bottom: 12px; }
.fccases-card h2 { margin-bottom: 16px; font-size: 32px; }
.fccases-card h2 a:hover { color: var(--case-accent); }
.fccases-card .fccases-description { font-size: 14px; }
.fccases-card__specs { margin: 0 0 12px; color: var(--case-muted); font-size: 13px; }
.fccases-card .fccases-link { width: 100%; padding-top: 12px; border-top: 1px solid var(--case-line); }
.fccases-pagination { margin-top: 44px; }
.fccases-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fccases-pagination .page-numbers { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--case-line); background: var(--case-panel); }
.fccases-pagination .page-numbers.current, .fccases-pagination a:hover { border-color: var(--case-accent); color: var(--case-accent); }
.fccases-empty { padding: clamp(28px, 6vw, 80px); border: 1px solid var(--case-line); background: var(--case-panel); }
.fccases-empty h2 { margin-bottom: 20px; font-size: 40px; }
.fccases-empty .fccases-description { max-width: 640px; }
.fccases-bottom-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 88px; padding-top: 48px; border-top: 1px solid var(--case-line); }
.fccases-bottom-cta h2 { font-size: clamp(34px, 4vw, 54px); }
.fccases-bottom-cta .fccases-button { flex-shrink: 0; }
.fccases-detail-intro { max-width: 860px; margin-top: -20px; margin-bottom: 36px; font-size: 18px; }
.fccases-detail-hero { display: grid; place-items: center; min-height: 200px; max-height: 820px; overflow: hidden; border: 1px solid var(--case-line); background: var(--case-panel-raised); }
.fccases-detail-hero > img { width: 100%; max-height: 820px; object-fit: contain; }
.fccases-detail-hero > .fccases-photo-placeholder { min-height: 360px; }
.fccases-detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 64px; align-items: start; margin-top: 56px; }
.fccases-detail-grid--specs-only { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.fccases-story:empty { display: none; }
.fccases-detail-specs { min-width: 0; padding: 30px; border: 1px solid var(--case-line); background: var(--case-panel); }
.fccases-detail-specs h2 { margin-bottom: 24px; font-size: 36px; }
.fccases-detail-specs .fccases-button, .fccases-detail-specs .fccases-link { width: 100%; margin-top: 12px; }
.fccases-content { max-width: 760px; color: var(--case-muted); line-height: 1.85; }
.fccases-content > :first-child { margin-top: 0; }
.fccases-content h2 { margin: 40px 0 20px; font-size: 38px; }
.fccases-content h3 { margin: 32px 0 16px; font-size: 30px; }
.fccases-content p { margin: 0 0 24px; }
.fccases-content a { color: var(--case-accent); text-decoration: underline; text-underline-offset: 4px; }
.fccases-content figure { max-width: 100%; margin: 28px 0; }
.fccases-content img { height: auto; }
.fccases-content iframe, .fccases-content video { max-width: 100%; }
.fccases-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.fccases-content td, .fccases-content th { padding: 12px; border: 1px solid var(--case-line); }
.fccases-content pre { max-width: 100%; overflow-x: auto; }
.fccases-testimonial { margin: 40px 0 0; padding: 24px 28px; border-left: 2px solid var(--case-accent); background: var(--case-panel); }
.fccases-testimonial > p:last-child { margin: 0; font-size: 18px; line-height: 1.8; }
.fccases-gallery-section { margin-top: 80px; }
.fccases-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 28px; }
.fccases-gallery figure { min-width: 0; margin: 0; }
.fccases-gallery a { display: block; border: 1px solid var(--case-line); background: var(--case-panel); }
.fccases-gallery img { width: 100%; height: auto; }
.fccases-gallery figcaption { margin-top: 10px; color: var(--case-muted); font-size: 13px; }
.fccases-protected { max-width: 700px; padding: 30px; border: 1px solid var(--case-line); background: var(--case-panel); }
.fccases-protected input { max-width: 100%; min-height: 44px; margin: 8px 4px 8px 0; padding: 10px 14px; border: 1px solid var(--case-line); font: inherit; }
.fccases-protected input[type="submit"] { background: var(--case-accent); color: var(--case-bg); cursor: pointer; }
.fccases-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1100px) {
  .fccases-shell { width: calc(100% - 48px); }
  .fccases-section-heading { gap: 40px; }
  .fccases-detail-grid { gap: 32px; }
  .fccases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fccases-tab { padding: 14px; }
  .fccases-tab__thumb { flex-basis: 52px; width: 52px; height: 46px; }
}

@media (max-width: 900px) {
  .fccases-home { padding: 72px 0; }
  .fccases-section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
  .fccases-section-heading h2 { max-width: 650px; }
  .fccases-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fccases-panel { grid-template-columns: 1fr; }
  .fccases-panel__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .fccases-panel__summary { border-left: 0; border-top: 1px solid var(--case-line); }
  .fccases-detail-grid { grid-template-columns: 1fr; }
  .fccases-detail-specs { max-width: none; }
  .fccases-detail-hero, .fccases-detail-hero > img { max-height: none; }
  .fccases-bottom-cta { align-items: flex-start; flex-direction: column; margin-top: 64px; }
}

@media (max-width: 540px) {
  .fccases-shell { width: calc(100% - 32px); }
  .fccases-home { padding: 56px 0; }
  .fccases-page { padding-top: 20px; padding-bottom: 64px; }
  .fccases-breadcrumb { margin-bottom: 32px; }
  .fccases-page-heading { margin-bottom: 32px; }
  .fccases-page-heading h1 { font-size: 48px; }
  .fccases-tabs { grid-template-columns: 1fr; }
  .fccases-tab { min-height: 68px; padding: 12px 16px; }
  .fccases-tab__copy strong { font-size: 20px; }
  .fccases-tab__thumb { flex-basis: 56px; width: 56px; height: 42px; }
  .fccases-tab__number { font-size: 14px; }
  .fccases-panel__summary, .fccases-detail-specs { padding: 24px 20px; }
  .fccases-panel__summary .fccases-description { font-size: 16px; }
  .fccases-facts--compact dd { font-size: 15px; }
  .fccases-grid { grid-template-columns: 1fr; gap: 24px; }
  .fccases-card__body { padding: 24px 20px; }
  .fccases-card .fccases-description { font-size: 16px; }
  .fccases-detail-grid { margin-top: 32px; }
  .fccases-detail-intro { margin-top: -8px; font-size: 16px; }
  .fccases-gallery { grid-template-columns: 1fr; gap: 24px; }
  .fccases-gallery-section { margin-top: 56px; }
  .fccases-bottom-cta .fccases-button { width: 100%; }
  .fccases-testimonial { padding: 20px; }
  .fccases-testimonial > p:last-child { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .fccases *, .fccases *::before, .fccases *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .fccases-card:hover .fccases-card__image > img { transform: none; }
}
