/**
 * Flagship industries – the asymmetric photo bento.
 *
 * Ported from the `p-flag` block in `_mockups/industries.html`, renamed to the
 * section id per AGENTS.md §2. Nothing in the kit does this: `.card__media` is
 * a 16/10 image above a body, where these cards are full-bleed photographs with
 * the copy laid over them at two different row heights.
 *
 * The two row heights are the only measurements here that are not a token, so
 * they are named once at the top rather than repeated down the file.
 */

.industry-flagship {
  --industry-flagship-row-tall: clamp(320px, 40vw, 470px);
  --industry-flagship-row-short: clamp(260px, 32vw, 390px);
}

.industry-flagship__head {
  max-inline-size: var(--container-width);
  margin-inline: auto;
  margin-block-end: var(--s-5);
}

.industry-flagship__bento {
  max-inline-size: var(--container-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
}

.industry-flagship__card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: var(--r-card);
  background: var(--navy);
  box-shadow: var(--shadow-s);
  transition:
    transform var(--dur-normal) var(--ease-out-soft),
    box-shadow var(--dur-normal) var(--ease-out-soft);
}
.industry-flagship__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}

/* 7/5 on the tall row, then 5/7 on the short one, so the eye never reads four
   equal rectangles. The pattern repeats if a fifth industry is ever flagged. */
.industry-flagship__card--a { grid-column: span 7; min-block-size: var(--industry-flagship-row-tall); }
.industry-flagship__card--b { grid-column: span 5; min-block-size: var(--industry-flagship-row-tall); }
.industry-flagship__card--c { grid-column: span 5; min-block-size: var(--industry-flagship-row-short); }
.industry-flagship__card--d { grid-column: span 7; min-block-size: var(--industry-flagship-row-short); }

.industry-flagship__card img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out-expo);
}
.industry-flagship__card:hover img { transform: scale(1.05); }

/* The scrim is the navy and deep-blue tokens at the mock-up's opacities, mixed
   rather than written as a literal colour, so a Theme Settings brand change
   reaches it like everything else. */
.industry-flagship__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    198deg,
    color-mix(in srgb, var(--navy) 6%, transparent) 34%,
    color-mix(in srgb, var(--blue-deep) 88%, transparent) 86%
  );
}

.industry-flagship__num {
  position: absolute;
  inset-block-start: var(--s-4);
  inset-inline-start: var(--s-5);
  z-index: 1;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 2px 14px color-mix(in srgb, var(--navy) 60%, transparent);
}

.industry-flagship__body {
  position: relative;
  z-index: 1;
  padding: var(--s-5);
}
.industry-flagship__body h3 { color: var(--white); font-size: var(--text-xl); }
.industry-flagship__card--a .industry-flagship__body h3 { font-size: var(--text-2xl); }
.industry-flagship__body p {
  max-inline-size: 46ch;
  margin-block: 0.5em var(--s-2);
  font-size: var(--text-s);
  color: var(--on-dark);
}

.industry-flagship__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-block-size: var(--btn-min-height);
  font-weight: 700;
  font-size: var(--text-s);
  color: var(--gold);
  transition:
    gap var(--dur-fast) var(--ease-out-soft),
    color var(--dur-fast) ease;
}
.industry-flagship__cta::after { content: "→"; }
[dir="rtl"] .industry-flagship__cta::after { content: "←"; }
.industry-flagship__cta:hover { gap: var(--s-2); color: var(--white); }

.industry-flagship__note {
  max-inline-size: var(--container-width);
  margin-inline: auto;
  margin-block-start: var(--s-4);
  font-size: var(--text-xs);
  color: var(--ink-faint);
  text-align: center;
}

@media (max-width: 980px) {
  .industry-flagship__card--a,
  .industry-flagship__card--b,
  .industry-flagship__card--c,
  .industry-flagship__card--d { grid-column: span 6; }
}

@media (max-width: 660px) {
  .industry-flagship__card--a,
  .industry-flagship__card--b,
  .industry-flagship__card--c,
  .industry-flagship__card--d {
    grid-column: span 12;
    min-block-size: clamp(240px, 62vw, 330px);
  }
}
