/* ──────────────────────────────────────────────────────────────
   PULSE — Inner-page styles (extends styles.css)
   For sector pages, feature pages, threat pages, supporting pages
   ────────────────────────────────────────────────────────────── */

/* Inner-page hero (smaller than homepage hero) */
.hero-inner-page {
  min-height: 56vh;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background: var(--base);
}
.hero-inner-page .hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
  padding: var(--s-9) var(--s-6) var(--s-8);
}
.hero-inner-page .hero-title {
  margin-bottom: var(--s-5);
}
.hero-inner-page .hero-divider {
  margin: var(--s-5) 0;
}
.hero-inner-page .hero-lead {
  margin-bottom: 0;
  max-width: 820px;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 229, 255, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 20% 80%, rgba(0, 229, 255, 0.04) 0%, transparent 50%);
}
.hero-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 51, 84, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 51, 84, 0.5) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: var(--s-7);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep {
  color: var(--accent);
  margin: 0 var(--s-3);
  opacity: 0.6;
}
.breadcrumb-current {
  color: var(--text);
}

/* Stats band — large number cards used on sector/threat pages */
.stats-band {
  background: var(--base-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--s-9) var(--s-6);
}
.stats-band-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.stats-band-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-5);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.stats-band-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.stats-band-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin-bottom: var(--s-7);
  max-width: 800px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  margin-bottom: var(--s-6);
}
.stat-card {
  border-left: 2px solid var(--hairline-bright);
  padding-left: var(--s-5);
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--s-3);
}
.stat-value sup {
  font-size: 0.5em;
  vertical-align: top;
  color: var(--accent);
  font-weight: 400;
  margin-left: 0.2em;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: var(--s-3);
}
.stat-source {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.stat-source a {
  color: var(--accent);
  text-decoration: none;
}
.stat-source a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* Long-form prose section */
.prose-section {
  background: var(--base);
  border-bottom: 1px solid var(--hairline);
}
.prose-section .section-inner {
  max-width: 900px;
}
.prose-section h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin: var(--s-8) 0 var(--s-5);
  color: var(--text);
}
.prose-section h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin: var(--s-6) 0 var(--s-3);
  color: var(--text);
}
.prose-section p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: var(--s-5);
  font-weight: 300;
}
.prose-section p strong {
  color: var(--text);
  font-weight: 500;
}
.prose-section em {
  color: var(--text);
  font-style: italic;
}
.prose-section blockquote {
  border-left: 2px solid var(--accent);
  padding-left: var(--s-5);
  margin: var(--s-7) 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--text);
  font-style: italic;
  font-weight: 400;
}
.prose-section blockquote::before {
  content: '"';
  color: var(--accent);
  margin-right: 0.05em;
}
.prose-section blockquote::after {
  content: '"';
  color: var(--accent);
}
.prose-section ul {
  list-style: none;
  margin: var(--s-5) 0;
  padding-left: 0;
}
.prose-section ul li {
  position: relative;
  padding-left: var(--s-6);
  padding-bottom: var(--s-4);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-dim);
}
.prose-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 6px var(--accent);
}
.prose-section a:not([class]) {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-deep);
  transition: border-color 0.2s;
}
.prose-section a:not([class]):hover { border-bottom-color: var(--accent); }

.prose-citation {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: var(--s-4) 0 var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--hairline);
  line-height: 1.6;
}
.prose-citation strong { color: var(--accent-soft); }

/* Pull-quote panel — for "mind-fucking" reference moments */
.pull-quote-panel {
  background: var(--surface);
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: var(--s-9) var(--s-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pull-quote-panel::before, .pull-quote-panel::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 40px;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg, var(--accent) 0, var(--accent) 6px,
    transparent 6px, transparent 12px
  );
  opacity: 0.06;
}
.pull-quote-panel::before { top: 0; }
.pull-quote-panel::after  { bottom: 0; transform: scaleY(-1); }
.pull-quote-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.pull-quote-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--s-6);
  font-weight: 600;
}
.pull-quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}
.pull-quote-text em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* Redacted text effect — for "intrigue" hints */
.redacted {
  background: var(--text);
  color: var(--text);
  padding: 0 0.4em;
  user-select: none;
  position: relative;
  border-radius: 1px;
}
.redacted::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      var(--text) 0px,
      var(--text) 8px,
      var(--base-2) 8px,
      var(--base-2) 9px
    );
  opacity: 0.4;
}

/* Threat impact card grid */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.impact-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: var(--s-7);
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}
.impact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.impact-card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.impact-card-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.impact-card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: var(--s-4);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
}
.impact-card-desc {
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: var(--s-5);
  flex: 1;
}
.impact-card-stat {
  border-top: 1px solid var(--hairline);
  padding-top: var(--s-4);
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.impact-card-stat strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 900px) {
  .impact-grid { grid-template-columns: 1fr; }
}

/* PULSE response card — appears at end of sector/threat pages */
.pulse-response {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--accent);
  padding: var(--s-9);
  margin: var(--s-8) auto;
  max-width: 1100px;
  position: relative;
  overflow: hidden;
}
.pulse-response::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.pulse-response-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--s-5);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.pulse-response-eyebrow::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse-mark 1.6s ease-in-out infinite;
  border-radius: 50%;
}
.pulse-response-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-5);
  color: var(--text);
}
.pulse-response-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.pulse-response p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: var(--s-4);
}
.pulse-response p strong {
  color: var(--text);
  font-weight: 500;
}
.pulse-response-cta-row {
  display: flex;
  gap: var(--s-4);
  margin-top: var(--s-6);
  flex-wrap: wrap;
}

/* Related-pages grid */
.related {
  background: var(--base-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: var(--s-6);
}
.related-card {
  background: var(--base-2);
  padding: var(--s-7);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.3s;
  min-height: 200px;
}
.related-card:hover { background: var(--surface); }
.related-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: var(--s-4);
  font-weight: 600;
}
.related-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: var(--s-4);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.related-card-blurb {
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.55;
  flex: 1;
  margin-bottom: var(--s-4);
}
.related-card-arrow {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  align-self: flex-start;
  transition: transform 0.2s;
}
.related-card:hover .related-card-arrow { transform: translateX(6px); }

@media (max-width: 1000px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* Sector hero illustration container (full-width, behind hero) */
.hero-illustration {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.25;
}
.hero-illustration svg { width: 100%; height: 100%; }

/* Index/landing-page card grid */
.index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.index-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: var(--s-6);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  min-height: 280px;
}
.index-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 229, 255, 0.1);
}
.index-card-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: var(--s-4);
  font-weight: 600;
}
.index-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.index-card-blurb {
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--s-4);
}
.index-card-arrow {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  align-self: flex-start;
}

@media (max-width: 1000px) {
  .index-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .index-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────
   Sources / Citations block — appears at the foot of inner pages
   that cite published research, statistics, or breach data.
   ────────────────────────────────────────────────────────────── */
.sources {
  background: var(--base-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.sources .section-inner {
  max-width: 980px;
}
.sources-lead {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: var(--s-6);
  max-width: 760px;
}
.sources-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-7) 0;
  border-top: 1px solid var(--hairline);
}
.sources-list li {
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-dim);
  display: flex;
  gap: var(--s-4);
  align-items: baseline;
}
.sources-num {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.sources-list li a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-bright);
  transition: border-bottom-color 0.2s, color 0.2s;
  word-break: break-word;
}
.sources-list li a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.sources-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.6;
  border-top: 1px dashed var(--hairline);
  padding-top: var(--s-5);
  max-width: 760px;
}

/* Stats-band visual extras for sector pages */
.stat-card.is-emphasis .stat-value { color: var(--accent); }
.stat-card.is-emphasis { border-left: 3px solid var(--accent); padding-left: var(--s-5); }

/* Curiosity gap headline — used inside body sections */
.curiosity-gap {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding: var(--s-3) var(--s-6);
  margin: var(--s-7) 0;
  max-width: 880px;
}
.curiosity-gap .ghost {
  color: var(--text-muted);
  font-style: normal;
}

/* Locked content treatment */
.locked-panel {
  background: var(--base-2);
  border: 1px solid var(--hairline);
  padding: var(--s-7);
  margin: var(--s-7) 0;
  position: relative;
  overflow: hidden;
}
.locked-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 12px,
    rgba(0, 229, 255, 0.03) 12px,
    rgba(0, 229, 255, 0.03) 24px
  );
  pointer-events: none;
}
.locked-panel-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--signal-amber);
  text-transform: uppercase;
  margin-bottom: var(--s-4);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  position: relative;
  z-index: 1;
}
.locked-panel-eyebrow::before {
  content: '';
  width: 10px;
  height: 12px;
  border: 1px solid var(--signal-amber);
  border-radius: 2px;
  position: relative;
}
.locked-panel-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--s-4);
  position: relative;
  z-index: 1;
}
.locked-panel-blur {
  filter: blur(5px);
  opacity: 0.5;
  user-select: none;
  pointer-events: none;
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.locked-panel-cta {
  margin-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}
.locked-panel-cta:hover { color: var(--text); border-bottom-color: var(--text); }

/* Hero illustration container with corner brackets */
.hero-illustration-frame {
  position: absolute;
  top: 50%;
  right: var(--s-7);
  transform: translateY(-50%);
  width: 380px;
  max-width: 38vw;
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}
.hero-illustration-frame::before,
.hero-illustration-frame::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent);
  pointer-events: none;
}
.hero-illustration-frame::before {
  top: -6px; left: -6px;
  border-right: none; border-bottom: none;
}
.hero-illustration-frame::after {
  bottom: -6px; right: -6px;
  border-left: none; border-top: none;
}
.hero-illustration-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 1000px) {
  .hero-illustration-frame { display: none; }
}
