/* ============================================================
   SE.CSS — Sovereign Enterprise page components.
   Loaded after site.css, by sovereign-enterprise.html only.

   The page reuses site.css primitives where they already work
   (.head, .planes, .chain, .trap, .section) and adds only what
   is specific to this page: the sub-nav, the sovereignty matrix,
   the dark architecture diagram, the paper block, the workforce
   table and the closing call.
============================================================ */

/* ------------------------------------------------------------
   PAGE HEAD — a quieter cousin of the home hero. No eyebrow, no
   buttons: a headline, a definition, and a soft violet wash so
   the page opens with a little more presence than the other
   interior heads without competing with the brand moment.
------------------------------------------------------------ */
.page-head--se {
  position: relative;
  overflow: hidden;
  padding: 176px 0 104px;
  /* Deepened from .11/.05, matching .page-head--fx, so the head reads as the
     page's opening rather than another light section. */
  background:
    radial-gradient(820px 460px at 74% 12%, rgba(94,94,255,.17), transparent 68%),
    linear-gradient(180deg, rgba(94,94,255,.085) 0%, rgba(94,94,255,0) 62%);
}
.page-head--se .page-head__h1 {
  font-size: 66px;
  letter-spacing: -2.8px;
  line-height: 1.03;
  max-width: 15ch;
}
.page-head--se .page-head__lede {
  margin-top: 30px;
  font-size: 21px;
  line-height: 1.55;
  max-width: 62ch;
}
/* The tunnel mark: larger and pushed further right than the default
   concentric mark, but much lighter — it should register as texture in
   the violet wash, not as a diagram competing with the headline. */
.page-head--se .page-head__mark--tunnel {
  width: 620px;
  height: 620px;
  right: calc(var(--gutter) - 150px);
  transform: translateY(-46%);
  /* Deeper than --accent on purpose: the bright violet sits too close to the
     lavender wash behind it and vanishes on high-contrast displays. */
  color: #3b3bb8;
  opacity: .30;
}
:root[data-theme="dark"] .page-head--se .page-head__mark--tunnel {
  color: #a8a8ff;
  opacity: .30;
}
@media (max-width: 1024px) {
  .page-head--se .page-head__mark--tunnel {
    width: 440px; height: 440px;
    right: calc(var(--gutter) - 120px);
    opacity: .22;
  }
}
@media (max-width: 760px) {
  .page-head--se .page-head__mark--tunnel { display: none; }
}
@media (max-width: 980px) {
  .page-head--se { padding: 140px 0 76px; }
  .page-head--se .page-head__h1 { font-size: 44px; letter-spacing: -1.6px; }
}
@media (max-width: 560px) {
  .page-head--se .page-head__h1 { font-size: 34px; letter-spacing: -1.1px; }
  .page-head--se .page-head__lede { font-size: 17px; }
}

/* ------------------------------------------------------------
   SUB-NAV — centred, numbered, sticky under the 82px header.
------------------------------------------------------------ */
.se-subnav {
  position: sticky;
  top: 82px;
  z-index: 400;
  background: var(--page-bg);
  border-bottom: 1px solid var(--border);
}
.se-subnav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.se-subnav__inner::-webkit-scrollbar { display: none; }
.se-subnav a {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  padding: 15px 0 13px;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: baseline;
  gap: 7px;
  transition: color .2s ease, border-color .2s ease;
}
.se-subnav a i {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--border);
}
.se-subnav a:hover { color: var(--text); }
.se-subnav a.active { color: var(--text); border-bottom-color: var(--accent); }
.se-subnav a.active i { color: var(--accent-text); }
@media (max-width: 1000px) { .se-subnav__inner { justify-content: flex-start; gap: 22px; } }

/* Anchored sections clear the header + sub-nav. */
.section[id] { scroll-margin-top: 148px; }

/* ------------------------------------------------------------
   THE PAPER — the quote, its author, and the way through to the
   full argument. Sits inside "the next enterprise" so the paper
   is introduced with context rather than as a floating CTA.
------------------------------------------------------------ */
.se-paper {
  margin-top: 56px;
  max-width: 900px;
  border: 1px solid rgba(94,94,255,.26);
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  background: linear-gradient(142deg, rgba(94,94,255,.10) 0%, rgba(94,94,255,.035) 58%, rgba(94,94,255,.015) 100%);
  padding: 34px 38px;
}
.se-paper__quote {
  font-size: 25px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.7px;
  color: var(--text);
  /* Measure set so the quote wraps to two lines; the card keeps its width. */
  max-width: 640px;
}
.se-paper__quote em { font-style: normal; color: var(--accent-text); }
.se-paper__line {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}
.se-paper__line b { color: var(--text); font-weight: 500; }
.se-paper__foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(94,94,255,.20);
  display: flex;
  align-items: baseline;
  gap: 10px 20px;
  flex-wrap: wrap;
}
.se-paper__meta { font-size: 13px; color: var(--muted); }
.se-paper__link { font-size: 14.5px; font-weight: 500; color: var(--accent-text); }
.se-paper__link:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .se-paper { padding: 26px 24px; margin-top: 40px; }
  .se-paper__quote { font-size: 20px; letter-spacing: -.4px; }
}

/* ------------------------------------------------------------
   SOVEREIGNTY MATRIX — a spec table, not a card grid.
------------------------------------------------------------ */
.se-matrix { margin-top: 8px; border-top: 1px solid var(--border); }
.se-row {
  display: grid;
  grid-template-columns: 52px 216px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 22px 8px 22px 0;
  border-bottom: 1px solid var(--border);
  transition: background .2s ease;
}
.se-row:hover { background: rgba(94,94,255,.035); }
.se-row__n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-text);
  letter-spacing: .04em;
}
.se-row__name {
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -.5px;
  color: var(--text);
  line-height: 1.15;
}
.se-row__of {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 7px;
}
.se-row__body { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 860px) {
  .se-row { grid-template-columns: 34px 1fr; gap: 6px 16px; padding: 20px 0; }
  .se-row__body { grid-column: 2; margin-top: 10px; }
}

/* ------------------------------------------------------------
   THE ARCHITECTURE — dark section, three gradient layers.
   Simplified: no governance frame, no separate ontology band —
   the ontology rides as a highlighted pill inside Intelligence.
------------------------------------------------------------ */
.se-dark {
  background: var(--hero-bg, #0d0d0e);
  padding: 104px 0;
  position: relative;
  overflow: hidden;
}
.se-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(1000px 420px at 50% -10%, rgba(130,115,255,.20), transparent 70%);
  pointer-events: none;
}
.se-dark .wrap { position: relative; z-index: 1; }
.se-dark .head__eyebrow { color: #a1a1ff; }
.se-dark .head__h2 { color: #fff; }
.se-dark .head__lede { color: rgba(255,255,255,.62); }
.se-dark .head__lede strong { color: #fff; }

.se-layers { display: flex; flex-direction: column; gap: 14px; }
.se-layer {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 36px;
  align-items: center;              /* gloss sits on the vertical centre */
  border: 1px solid rgba(130,115,255,.34);
  border-radius: 5px;
  padding: 26px 28px;
  background: linear-gradient(112deg, rgba(130,115,255,.22) 0%, rgba(130,115,255,.05) 62%, rgba(130,115,255,.02) 100%);
}
.se-layer__sys {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: #a1a1ff;
  margin-bottom: 8px;
}
.se-layer__name {
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -.7px;
  color: #fff;
  line-height: 1.1;
}
.se-layer__gloss {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.60);
  text-align: right;
}
.se-parts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.se-part {
  font-size: 11.5px;
  color: rgba(255,255,255,.74);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 99px;
  padding: 4px 12px;
  white-space: nowrap;
}
/* The ontology call-out: the one pill that is clearly load-bearing. */
.se-part--key {
  color: #fff;
  font-weight: 500;
  border-color: rgba(161,161,255,.85);
  background: rgba(130,115,255,.32);
  box-shadow: 0 0 0 3px rgba(130,115,255,.12);
}
.se-dark__note {
  margin-top: 28px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.52);
  max-width: 70ch;
}
.se-dark__note strong { color: rgba(255,255,255,.9); font-weight: 500; }
@media (max-width: 860px) {
  .se-dark { padding: 72px 0; }
  .se-layer { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .se-layer__gloss { text-align: left; }
}

/* ------------------------------------------------------------
   PLANE CARDS — the Digital Brain and Infrastructure modules.
   A slight violet gradient rather than flat white, so the modules
   read as components of one architecture rather than empty boxes.
------------------------------------------------------------ */
#intelligence .plane,
#infrastructure .plane {
  border-color: rgba(94,94,255,.22);
  background: linear-gradient(158deg, rgba(94,94,255,.085) 0%, rgba(94,94,255,.025) 60%, rgba(94,94,255,.01) 100%);
}
/* The plane that runs across the others keeps a stronger fill. */
#intelligence .plane--span,
#infrastructure .plane--span {
  border-color: rgba(94,94,255,.42);
  background: linear-gradient(120deg, rgba(94,94,255,.16) 0%, rgba(94,94,255,.06) 70%);
}

/* ------------------------------------------------------------
   PROPERTY TABLE — full-width hairline rows (the workforce).
------------------------------------------------------------ */
.se-lines { border-top: 1px solid var(--border); }
.se-line {
  display: grid;
  grid-template-columns: 190px 240px 1fr;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.se-line__k {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.se-line__name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.3px;
  color: var(--text);
}
.se-line__body { font-size: 14.5px; line-height: 1.58; color: var(--muted); }
@media (max-width: 900px) {
  .se-line { grid-template-columns: 150px 1fr; gap: 8px 20px; }
  .se-line__body { grid-column: 2; margin-top: 8px; }
}
@media (max-width: 620px) {
  .se-line { grid-template-columns: 1fr; gap: 6px; }
  .se-line__body { grid-column: 1; margin-top: 4px; }
}

/* ------------------------------------------------------------
   SPOTLIGHT — a highlighted beat inside a section (the software
   factory). Title on its own line, given real weight.
------------------------------------------------------------ */
.se-spot {
  margin-top: 48px;
  border: 1px solid rgba(94,94,255,.32);
  background: rgba(94,94,255,.05);
  border-radius: 4px;
  padding: 30px 32px;
}
.se-spot__k {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.se-spot__t {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -.8px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 14px;
}
.se-spot__b {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 74ch;
}
.se-spot__b strong { color: var(--text); font-weight: 500; }
@media (max-width: 768px) {
  .se-spot { padding: 24px; margin-top: 36px; }
  .se-spot__t { font-size: 21px; letter-spacing: -.5px; }
}

/* ------------------------------------------------------------
   PAPER CARD — the closing call-out's action is a link, not a
   button, so the page carries exactly one solid CTA.
------------------------------------------------------------ */
.paper-card__link {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 500;
  color: #a1a1ff;
  white-space: nowrap;
  border-bottom: 1px solid rgba(161,161,255,.35);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}
.paper-card__link:hover { color: #fff; border-bottom-color: rgba(255,255,255,.7); }

/* The close now uses the shared .blueprint__card treatment from
   styles.css (same as the Foundry page), so it carries no CSS here. */
