/* ────────────────────────────────────────────────
   sector page · Editorial pattern matched hub
   2026-06-13 · demo heritage-crafts
   ──────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
body {
  font-family: var(--sv-font-body);
  background: var(--sv-color-surface-default);
  color: var(--sv-color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── [QA-SAFETY] ─── */
:where(a, button, [role="button"], input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--sv-color-text-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p, li, figcaption, blockquote) { text-wrap: pretty; }
:where(svg[viewBox="0 0 24 24"]),
:where(svg[data-lucide]) {
  width: 1.25em; height: 1.25em;
  fill: none; stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.sv-skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--sv-color-text-primary); color: white;
  padding: 12px 20px; border-radius: 8px;
  font-family: var(--sv-font-heading); font-weight: 600;
  text-decoration: none; transition: top 0.2s;
}
.sv-skip-link:focus { top: 16px; }

/* ════════════════════════════════════════════════
   HERO · editorial centered like hub
   ════════════════════════════════════════════════ */
.sector-hero {
  position: relative;
  padding: clamp(96px, 11vw, 168px) 24px clamp(48px, 5vw, 72px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, color-mix(in srgb, var(--sv-color-cream-tint) 32%, transparent), transparent 65%),
    var(--sv-color-surface-default);
}
.sector-hero-inner {
  max-width: 880px;
  margin: 0 auto;
}
.sector-hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sv-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sv-color-text-secondary);
  margin-bottom: 40px;
  text-decoration: none;
  transition: color 200ms;
}
.sector-hero-breadcrumb:hover { color: var(--sv-color-accent-default); }
.sector-hero-breadcrumb::before,
.sector-hero-breadcrumb::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.sector-hero-title {
  font-family: var(--sv-font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.2vw, 72px);
  letter-spacing: -0.024em;
  line-height: 1.06;
  color: var(--sv-color-text-primary);
  margin-bottom: 32px;
}
.sector-hero-title em {
  font-family: var(--sv-font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--sv-color-accent-default);
}
.sector-hero-lede {
  font-family: var(--sv-font-serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--sv-color-text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
}
.sector-hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.sector-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sv-font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 180ms, color 180ms, border-color 180ms, transform 180ms;
}
.sector-btn--pri { background: var(--sv-color-accent-default); color: white; }
.sector-btn--pri:hover { background: var(--sv-color-accent-hover); transform: translateY(-1px); }
.sector-btn--ghost {
  background: transparent;
  color: var(--sv-color-text-primary);
  border-color: var(--sv-color-border-default);
}
.sector-btn--ghost:hover {
  border-color: var(--sv-color-text-primary);
  background: color-mix(in srgb, var(--sv-color-text-primary) 4%, transparent);
}
.sector-btn svg, .sector-btn [data-lucide] { width: 14px; height: 14px; }

/* ─── STATS inline editorial like hub ─── */
.sector-stats {
  max-width: 920px;
  margin: clamp(56px, 6vw, 88px) auto 0;
  padding: 0 24px;
  border-top: 1px solid var(--sv-color-border-subtle);
  border-bottom: 1px solid var(--sv-color-border-subtle);
}
.sector-stats-row {
  display: flex;
  justify-content: space-around;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px 0;
}
.sector-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 110px;
}
.sector-stat-num {
  font-family: var(--sv-font-heading);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 38px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--sv-color-text-primary);
  line-height: 1;
}
.sector-stat-label {
  font-family: var(--sv-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sv-color-text-muted);
}

/* ════════════════════════════════════════════════
   SECTION common
   ════════════════════════════════════════════════ */
.sector-section {
  padding-block: clamp(80px, 8vw, 140px);
  padding-inline: 24px;
}
.sector-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.sector-section-head {
  margin-bottom: clamp(48px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 880px) {
  .sector-section-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: end;
    gap: 48px;
  }
}
.sector-section-eyebrow {
  font-family: var(--sv-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sv-color-accent-default);
}
.sector-section-title {
  font-family: var(--sv-font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 48px);
  letter-spacing: -0.018em;
  line-height: 1.12;
  color: var(--sv-color-text-primary);
  margin-top: 12px;
}
.sector-section-title em {
  font-family: var(--sv-font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--sv-color-accent-default);
}
.sector-section-lede {
  font-family: var(--sv-font-body);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--sv-color-text-secondary);
  max-width: 560px;
}
.sector-section-lede strong {
  font-weight: 600;
  color: var(--sv-color-text-primary);
}

/* ─── AEO band (cream surface) ─── */
.sector-aeo-band {
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, color-mix(in srgb, var(--sv-color-cream-tint) 38%, transparent), transparent 70%),
    var(--sv-color-surface-raised);
  border-block: 1px solid var(--sv-color-border-subtle);
}
.sector-aeo-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.sector-aeo-eyebrow {
  font-family: var(--sv-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sv-color-accent-default);
}
.sector-aeo-title {
  font-family: var(--sv-font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.018em;
  line-height: 1.15;
  color: var(--sv-color-text-primary);
  margin: 14px 0 24px;
}
.sector-aeo-title em {
  font-family: var(--sv-font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--sv-color-accent-default);
}
.sector-aeo-answer {
  font-family: var(--sv-font-body);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--sv-color-text-secondary);
}
.sector-aeo-answer strong {
  font-weight: 600;
  color: var(--sv-color-text-primary);
}

/* ════════════════════════════════════════════════
   SUB-NICHE grid · numbered editorial
   ════════════════════════════════════════════════ */
.sector-niche-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--sv-color-border-subtle);
}
@media (min-width: 720px) {
  .sector-niche-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .sector-niche-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.sector-niche {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  padding: 28px 22px;
  border-bottom: 1px solid var(--sv-color-border-subtle);
  text-decoration: none;
  color: inherit;
  transition: background 200ms;
  align-items: start;
}
@media (min-width: 720px) {
  .sector-niche:nth-child(2n) { border-left: 1px solid var(--sv-color-border-subtle); }
}
@media (min-width: 1080px) {
  .sector-niche:nth-child(2n) { border-left: none; }
  .sector-niche:not(:nth-child(3n+1)) { border-left: 1px solid var(--sv-color-border-subtle); }
}
.sector-niche:hover {
  background: color-mix(in srgb, var(--sv-color-cream-tint) 18%, var(--sv-color-surface-default));
}
.sector-niche[hidden] { display: none; }
.sector-niche-num {
  font-family: var(--sv-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--sv-color-text-muted);
  padding-top: 4px;
}
.sector-niche-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.sector-niche-name {
  font-family: var(--sv-font-heading);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--sv-color-text-primary);
  line-height: 1.25;
}
.sector-niche-examples {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--sv-color-text-secondary);
}
.sector-niche-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
  font-family: var(--sv-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sv-color-text-muted);
  font-variant-numeric: tabular-nums;
}
.sector-niche-arrow {
  font-family: var(--sv-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sv-color-text-muted);
  padding-top: 6px;
  white-space: nowrap;
  transition: color 200ms, transform 200ms;
}
.sector-niche:hover .sector-niche-arrow {
  color: var(--sv-color-accent-default);
  transform: translateX(2px);
}

/* ════════════════════════════════════════════════
   CTA BAND navy inverse + cream emphasis
   ════════════════════════════════════════════════ */
.sector-cta-band {
  background: var(--sv-color-surface-inverse);
  color: var(--sv-color-text-inverse);
  padding-block: clamp(96px, 9vw, 140px);
  padding-inline: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sector-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, color-mix(in srgb, var(--sv-color-cream-tint) 14%, transparent), transparent 70%);
  pointer-events: none;
}
.sector-cta-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.sector-cta-eyebrow {
  font-family: var(--sv-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sv-color-cream-tint);
  margin-bottom: 24px;
}
.sector-cta-title {
  font-family: var(--sv-font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.sector-cta-title em {
  font-family: var(--sv-font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--sv-color-cream-tint);
}
.sector-cta-lede {
  font-family: var(--sv-font-serif);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: color-mix(in srgb, white 78%, transparent);
  margin-bottom: 40px;
  max-width: 600px;
  margin-inline: auto;
}
.sector-cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.sector-btn--band-pri { background: var(--sv-color-accent-default); color: white; }
.sector-btn--band-pri:hover { background: var(--sv-color-accent-hover); transform: translateY(-1px); }
.sector-btn--band-ghost {
  background: transparent;
  color: white;
  border-color: color-mix(in srgb, white 40%, transparent);
}
.sector-btn--band-ghost:hover {
  border-color: var(--sv-color-cream-tint);
  color: var(--sv-color-cream-tint);
  background: color-mix(in srgb, white 6%, transparent);
}
