/* ============================================================
   sectors.css — full Sectors page.
   Banner + 2×2 image card grid + atmospheric reach band + CTA.
   Tokens, reset, base, components, and floating actions come
   from shared CSS. Banner styles mirror services.css so the
   two pages read as a coherent set.
   ============================================================ */

/* ============================================================
   1) BANNER — same shape as services.css; sectors-specific tone
   ============================================================ */

.page-banner {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-obsidian);
  color: var(--fg-on-dark);
  padding-block: clamp(7rem, 14vh, 10rem) clamp(3rem, 6vw, 5rem);
}

.page-banner__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: page-banner-kenburns 24s var(--ease-out) infinite alternate;
}

@keyframes page-banner-kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.5%, -1%); }
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 11, 0.45) 0%,
    rgba(10, 10, 11, 0.30) 35%,
    rgba(10, 10, 11, 0.78) 100%
  );
  pointer-events: none;
}

.page-banner__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 60rem;
}

.page-banner__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-display);
  font-variation-settings: "SOFT" 30, "opsz" 144;
  line-height: 1.02;
  letter-spacing: var(--tr-tight);
  color: var(--fg-on-dark);
  text-wrap: balance;
}

.page-banner__subtitle {
  font-size: clamp(1.0625rem, 0.9rem + 0.55vw, 1.3125rem);
  line-height: var(--lh-relaxed);
  color: var(--fg-on-dark-muted);
  max-width: 56ch;
}

@media (prefers-reduced-motion: reduce) {
  .page-banner__media img { animation: none; }
}

/* ============================================================
   2) SECTOR GRID — 2×2 large image cards
   Each card: full-bleed image with a dark gradient overlay,
   sector name pinned to bottom-left, description revealed on
   hover (with a fade + slide). Image scales 1.02 on hover.
   ============================================================ */

.sectors-page {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--bg);
}

.sector-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
}

.sector-card {
  position: relative;
  min-height: 18rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-graphite);
  isolation: isolate;
  cursor: default;
}

@media (min-width: 768px) {
  .sector-card { min-height: 22rem; }
}

@media (min-width: 1024px) {
  .sector-card { min-height: 25rem; }
}

.sector-card__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--color-graphite);
}

.sector-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--dur-slow) var(--ease-out);
}

/* Dark gradient overlay — bottom-heavy so the title sits readable
   on light photographs. Lightens slightly on hover. */
.sector-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 11, 0.10) 0%,
    rgba(10, 10, 11, 0.25) 45%,
    rgba(10, 10, 11, 0.85) 100%
  );
  transition: background var(--dur-base) var(--ease-out);
  pointer-events: none;
}

.sector-card:hover .sector-card__media img,
.sector-card:focus-within .sector-card__media img {
  transform: scale(1.04);
}

.sector-card:hover::before,
.sector-card:focus-within::before {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 11, 0.05) 0%,
    rgba(10, 10, 11, 0.18) 35%,
    rgba(10, 10, 11, 0.78) 100%
  );
}

.sector-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  color: var(--fg-on-dark);
}

.sector-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
  font-weight: var(--fw-semibold);
  font-variation-settings: "SOFT" 50, "opsz" 144;
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-tight);
  color: var(--fg-on-dark);
  text-wrap: balance;
}

/* Description: muted, slid down 8px and faded out at rest;
   slides up + fades in on hover/focus. */
.sector-card__desc {
  color: var(--fg-on-dark-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  max-width: 44ch;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity   var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.sector-card:hover .sector-card__desc,
.sector-card:focus-within .sector-card__desc {
  opacity: 1;
  transform: none;
}

/* Touch / coarse-pointer devices: always show the description so
   it's not stranded behind a hover that can't fire. */
@media (hover: none) {
  .sector-card__desc {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sector-card__media img,
  .sector-card::before,
  .sector-card__desc {
    transition: none;
  }
  .sector-card__desc { opacity: 1; transform: none; }
}

/* ============================================================
   3) OUR REACH — atmospheric map band
   ============================================================ */

.sectors-reach {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--bg-elevated);
  border-block: 1px solid var(--surface-line);
}

.sectors-reach__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.sectors-reach__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 56rem;
}

.sectors-reach__head .eyebrow {
  color: var(--accent);
}

.sectors-reach__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-display);
  font-variation-settings: "SOFT" 30, "opsz" 144;
  line-height: 1.05;
  letter-spacing: var(--tr-tight);
  color: var(--fg);
  text-wrap: balance;
}

.sectors-reach__title em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "SOFT" 80, "opsz" 144;
}

.sectors-reach__lead {
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  color: var(--fg);
  line-height: var(--lh-relaxed);
  max-width: 56ch;
}

.sectors-reach__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bone);
  border: 1px solid var(--surface-line);
  isolation: isolate;
}

.sectors-reach__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  /* Soften the placeholder so it reads as atmospheric, not literal map data. */
  filter: saturate(0.85);
}

.sectors-reach__caption {
  position: absolute;
  left: var(--space-md);
  bottom: var(--space-md);
  padding: var(--space-2xs) var(--space-md);
  background: color-mix(in oklab, var(--color-mist) 90%, transparent);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-line);
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  letter-spacing: var(--tr-loose);
  text-transform: uppercase;
  color: var(--fg);
}

/* ============================================================
   4) CTA BAND — mirrors home.css verbatim
   ============================================================ */

.cta-band {
  background: var(--color-obsidian);
  color: var(--fg-on-dark);
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(
    circle at center,
    color-mix(in oklab, var(--color-dune) 35%, transparent) 0%,
    transparent 60%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xl);
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  color: var(--fg-on-dark);
  text-wrap: balance;
  max-width: 24ch;
}
.cta-band__title em {
  font-style: italic;
  color: var(--color-dune);
  font-variation-settings: "SOFT" 80, "opsz" 144;
}

/* ============================================================
   5) Reveal base — same as services.css / home.css
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}
