/* flagship-case-study.css — extended editorial layout for tmpo.pt case study
   long-scroll, section-by-section, alternating bands */

/* ── Page wrapper ── */
.fcs-page {
  --fcs-pad: clamp(1.5rem, 4vw, 3.5rem);
}

/* ── Hero ── */
.fcs-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem var(--fcs-pad) 0;
}

.fcs-hero-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.45);
  margin-bottom: 0.75rem;
}

.fcs-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.fcs-hero-sub {
  font-size: 0.95rem;
  color: rgba(14,13,11,0.6);
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 2rem;
}

/* ── Browser mockup (full-width band) ── */
.fcs-browser-band {
  background: #f3f3f0;
  padding: clamp(2rem, 4vw, 3.5rem) var(--fcs-pad);
  margin-bottom: 0;
}

.fcs-browser {
  max-width: var(--max-w);
  margin: 0 auto;
  border: 1px solid rgba(14,13,11,0.12);
  background: #fff;
  overflow: hidden;
}

.fcs-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f3f3f0;
  border-bottom: 1px solid rgba(14,13,11,0.08);
}

.fcs-browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(14,13,11,0.15);
}

.fcs-browser-url {
  margin-left: 12px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: rgba(14,13,11,0.4);
}

.fcs-browser-body {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: top center;
}

/* ── Mockup hero (photographed laptop) ── */
.fcs-mockup-hero {
  max-width: var(--max-w);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  padding: 0 var(--fcs-pad);
}
.fcs-mockup-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Meta strip ── */
.fcs-meta {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--fcs-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  border-bottom: 1px solid rgba(14,13,11,0.12);
}

.fcs-meta-item { flex: 1; min-width: 140px; }

.fcs-meta-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.4);
  margin-bottom: 0.4rem;
}

.fcs-meta-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: #0e0d0b;
  line-height: 1.5;
}

.fcs-meta-value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(14,13,11,0.25);
}
.fcs-meta-value a:hover { border-color: #0e0d0b; }

/* ── Generic content section (alternating) ── */
.fcs-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 5rem) var(--fcs-pad);
  border-bottom: 1px solid rgba(14,13,11,0.08);
}

.fcs-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.4);
  margin-bottom: 2rem;
}

/* ── Big stat callout ── */
.fcs-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 2.5rem;
}

.fcs-stat {
  flex: 1;
  min-width: 160px;
}

.fcs-stat-number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #0e0d0b;
}

.fcs-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.45);
  margin-top: 0.5rem;
}

/* ── Split section: text + visual ── */
.fcs-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: stretch;
}
@media (min-width: 900px) {
  .fcs-split { grid-template-columns: 5fr 6fr; }
  .fcs-split--reverse { grid-template-columns: 6fr 5fr; }
  .fcs-split--reverse .fcs-split-text { order: 2; }
  .fcs-split--reverse .fcs-vis-col { order: 1; }
  .fcs-split--reverse .fcs-split-visual { order: 1; }
}

.fcs-split-text h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.fcs-split-text p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(14,13,11,0.75);
  margin-bottom: 1rem;
  max-width: 48ch;
}
.fcs-split-text p:last-child { margin-bottom: 0; }

/* visual side placeholder / screenshot */
.fcs-split-visual {
  background: #f3f3f0;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

/* ── Full-width band section (stone bg) ── */
.fcs-band {
  background: #f3f3f0;
  padding: clamp(3rem, 5vw, 5rem) var(--fcs-pad);
}

.fcs-band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Tech stack blocks ── */
.fcs-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(14,13,11,0.1);
  border-left: 1px solid rgba(14,13,11,0.1);
}

.fcs-stack-item {
  padding: 1.5rem;
  border-right: 1px solid rgba(14,13,11,0.1);
  border-bottom: 1px solid rgba(14,13,11,0.1);
}

.fcs-stack-name {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.fcs-stack-role {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(14,13,11,0.55);
}

@media (max-width: 700px) {
  .fcs-stack-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .fcs-stack-grid { grid-template-columns: 1fr; }
}

/* ── Design system showcase ── */
.fcs-ds-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 5rem) var(--fcs-pad);
}

.fcs-ds-type-display {
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 1.5rem;
  color: #0e0d0b;
}

.fcs-ds-type-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(14,13,11,0.08);
}

.fcs-ds-type-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.fcs-ds-type-meta {
  font-size: 0.78rem;
  color: rgba(14,13,11,0.5);
  line-height: 1.6;
}

/* weight scale */
.fcs-ds-weight-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.fcs-ds-weight {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.fcs-ds-weight-sample {
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.fcs-ds-weight-label {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.4);
}

/* palette row */
.fcs-ds-palette-row {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
}

.fcs-ds-palette-swatch {
  flex: 1;
  aspect-ratio: 1.5 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
}

.fcs-ds-palette-name {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fcs-ds-palette-hex {
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  opacity: 0.6;
}

.fcs-ds-palette-swatch:first-child .fcs-ds-palette-name,
.fcs-ds-palette-swatch:first-child .fcs-ds-palette-hex {
  color: rgba(255,255,255,0.7);
}

/* principles */
.fcs-ds-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(14,13,11,0.08);
}

.fcs-ds-principle {
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid rgba(14,13,11,0.08);
}

.fcs-ds-principle:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(14,13,11,0.08);
}

.fcs-ds-principle-num {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(14,13,11,0.3);
  margin-bottom: 0.5rem;
}

.fcs-ds-principle-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(14,13,11,0.75);
}

/* ── Outcome ── */
.fcs-outcome {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 5rem) var(--fcs-pad);
  border-bottom: 1px solid rgba(14,13,11,0.12);
}

.fcs-outcome-text {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  line-height: 1.55;
  color: #0e0d0b;
  max-width: 52ch;
}

/* ── Prev/next + related ── */
.fcs-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--fcs-pad);
}

/* ── Visual column: stacks infographic + browser crop ── */
.fcs-vis-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Visual panels (infographic blocks) ── */
.fcs-vis {
  background: #fff;
  border: 1px solid rgba(14,13,11,0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

/* ── Browser crop (mini mockup showing real site) ── */
.fcs-crop {
  border: 1px solid rgba(14,13,11,0.12);
  background: #fff;
  overflow: hidden;
}

.fcs-crop-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: #f3f3f0;
  border-bottom: 1px solid rgba(14,13,11,0.08);
}

.fcs-crop-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(14,13,11,0.15);
}

.fcs-crop-url {
  margin-left: 8px;
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  color: rgba(14,13,11,0.35);
}

.fcs-crop-body {
  aspect-ratio: 16 / 7;
  background-size: 102%;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f9f9f9;
}

/* Crop sits above the split, full width within section */
.fcs-section .fcs-crop {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Before/after panel (The Brief) */
.fcs-vis-compare {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fcs-vis-compare-card {
  background: #fff;
  border: 1px solid rgba(14,13,11,0.1);
  padding: 1.25rem;
}

.fcs-vis-compare-label {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.35);
  margin-bottom: 0.75rem;
}

.fcs-vis-compare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.fcs-vis-compare-block {
  aspect-ratio: 1;
  background: rgba(14,13,11,0.06);
}

.fcs-vis-compare-features {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fcs-vis-compare-feat {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(14,13,11,0.7);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(14,13,11,0.06);
}

.fcs-vis-compare-feat:last-child { border-bottom: 0; }

/* Code block panel (Data Architecture) */
.fcs-vis-code {
  background: #0e0d0b;
  padding: 1.5rem;
  overflow: hidden;
}

.fcs-vis-code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fcs-vis-code-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.fcs-vis-code-filename {
  margin-left: 8px;
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
}

.fcs-vis-code pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  white-space: pre;
  overflow-x: auto;
}

.fcs-vis-code .code-key { color: rgba(255,255,255,0.45); }
.fcs-vis-code .code-str { color: #EDDFBE; }
.fcs-vis-code .code-num { color: #C8B391; }
.fcs-vis-code .code-comment { color: rgba(255,255,255,0.2); }

/* Taxonomy grid (Series System) */
.fcs-vis-taxonomy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fcs-vis-tax-row {
  display: flex;
  border-bottom: 1px solid rgba(14,13,11,0.08);
}

.fcs-vis-tax-row:last-child { border-bottom: 0; }

.fcs-vis-tax-name {
  font-size: 0.68rem;
  font-weight: 600;
  font-style: italic;
  color: #0e0d0b;
  padding: 0.55rem 0;
  flex: 1;
}

.fcs-vis-tax-count {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(14,13,11,0.3);
  padding: 0.55rem 0;
  min-width: 2.5rem;
  text-align: right;
}

.fcs-vis-tax-head {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.3);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(14,13,11,0.12);
  margin-bottom: 0;
}

/* Funnel (Commercial Integration) */
.fcs-vis-funnel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fcs-vis-funnel-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(14,13,11,0.06);
}

.fcs-vis-funnel-step:last-child { border-bottom: 0; }

.fcs-vis-funnel-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: rgba(14,13,11,0.1);
  min-width: 2rem;
  line-height: 1;
}

.fcs-vis-funnel-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0e0d0b;
  margin-bottom: 0.15rem;
}

.fcs-vis-funnel-desc {
  font-size: 0.62rem;
  color: rgba(14,13,11,0.5);
  line-height: 1.4;
}

/* Credit card (Broadcast Credits) */
.fcs-vis-credit {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fcs-vis-credit-card {
  background: #fff;
  border: 1px solid rgba(14,13,11,0.1);
  padding: 1.25rem;
}

.fcs-vis-credit-show {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.fcs-vis-credit-network {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.4);
  margin-bottom: 1rem;
}

.fcs-vis-credit-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.fcs-vis-credit-meta-label {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.3);
  margin-bottom: 0.2rem;
}

.fcs-vis-credit-meta-value {
  font-size: 0.68rem;
  font-weight: 500;
  color: #0e0d0b;
}

.fcs-vis-credit-pieces {
  display: flex;
  gap: 6px;
}

.fcs-vis-credit-piece {
  flex: 1;
  aspect-ratio: 1;
  background: rgba(14,13,11,0.05);
  border: 1px solid rgba(14,13,11,0.08);
}

/* Checklist (SEO & Infrastructure) */
.fcs-vis-checklist {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fcs-vis-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(14,13,11,0.06);
}

.fcs-vis-check:last-child { border-bottom: 0; }

.fcs-vis-check-mark {
  font-size: 0.65rem;
  font-weight: 900;
  color: #0e0d0b;
  min-width: 1rem;
  line-height: 1.5;
}

.fcs-vis-check-text {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(14,13,11,0.7);
  line-height: 1.5;
}

/* Surface types list (Visual Design) */
.fcs-vis-surfaces {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fcs-vis-surface-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(14,13,11,0.08);
}

.fcs-vis-surface-row:last-child { border-bottom: 0; }

.fcs-vis-surface-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0e0d0b;
  min-width: 6.5rem;
}

.fcs-vis-surface-desc {
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(14,13,11,0.45);
  letter-spacing: 0.02em;
}

/* Type scale ladder (Design System) */
.fcs-ds-scale {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(14,13,11,0.08);
}

.fcs-ds-scale-step {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(14,13,11,0.05);
}

.fcs-ds-scale-step:last-child { border-bottom: 0; }

.fcs-ds-scale-specimen {
  color: #0e0d0b;
  flex: 1;
}

.fcs-ds-scale-meta {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Grid system demo (Design System) */
.fcs-ds-grids {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(14,13,11,0.08);
  margin-bottom: 0;
}

.fcs-ds-grids-head {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(14,13,11,0.3);
  margin-bottom: 1.5rem;
}

.fcs-ds-grids-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.fcs-ds-grid-spec {}

.fcs-ds-grid-demo {
  display: grid;
  gap: 4px;
  margin-bottom: 0.6rem;
}

.fcs-ds-grid-block {
  aspect-ratio: 4 / 5;
  background: rgba(14,13,11,0.06);
  border: 1px solid rgba(14,13,11,0.08);
}

.fcs-ds-grid-label {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(14,13,11,0.4);
}

/* ── Mobile ── */
@media (max-width: 700px) {
  .fcs-hero { padding: 1.5rem var(--fcs-pad) 0; }
  .fcs-hero-title { margin-bottom: 0.4rem; }
  .fcs-meta { gap: 1.25rem; }
  .fcs-stat-number { font-size: 2.5rem; }
  .fcs-ds-type-info { grid-template-columns: 1fr; }
  .fcs-ds-principles { grid-template-columns: 1fr; }
  .fcs-ds-principle:nth-child(even) { padding-left: 0; border-left: 0; }
  .fcs-vis { min-height: auto; }
  .fcs-vis-code pre { font-size: 0.55rem; }
  .fcs-ds-scale-step { flex-direction: column; gap: 0.3rem; }
  .fcs-ds-scale-meta { white-space: normal; }
  .fcs-ds-grids-row { grid-template-columns: 1fr; gap: 2rem; }
  .fcs-vis-surface-row { flex-direction: column; gap: 0.15rem; }
  .fcs-vis-surface-name { min-width: auto; }
}
