/* ==========================================================================
  STRICTSPHERE — CLEAN STYLESHEET
  1. Tokens / Base
  2. Header / Footer
  3. Shared Hero / Canon Components
  4. Manifesto
  5. Category / Architecture
  6. Ledger
  7. Records
  8. Landscape
  9. Responsive
========================================================================== */

/* ==========================================================================
  1. TOKENS / BASE
========================================================================== */

:root {
  --bg-main: #020617;
  --border-soft: #1f2937;

  --primary: #22d3ee;
  --primary-soft: rgba(34, 211, 238, 0.12);
  --accent: #a855f7;
  --accent-soft: rgba(168, 85, 247, 0.14);

  --success: #4ade80;

  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --text-link: #989ca3;
  --text-link-footer: #989ca3;

  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --radius-md: 0.75rem;

  --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.85);
  --shadow-card: 0 18px 70px rgba(15, 23, 42, 0.45);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-title: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #0b1120 0, #020617 50%, #000 100%);
  color: var(--text-main);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

main {
  padding: 2rem 0 4rem;
}

.ss-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
  2. HEADER / FOOTER
========================================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.96),
    rgba(2, 6, 23, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding-bottom: 0.6rem;
}

.ss-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
}

.ss-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 230px;
}

.ss-logo img {
  height: 93px;
  width: auto;
}

.ss-logo span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-left: 1px solid rgba(148, 163, 184, 0.35);
  padding-left: 0.65rem;
  white-space: nowrap;
}

.ss-nav-layers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.ss-nav-layer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ss-nav-layer-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

.ss-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.ss-nav-links a {
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.25rem;
}

.ss-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  transition: width 0.2s ease;
}

.ss-nav-links a:hover,
.ss-nav-links a.active {
  color: var(--text-main);
}

.ss-nav-links a:hover::after,
.ss-nav-links a.active::after {
  width: 100%;
}

.ss-nav-links a.active::after {
  background: var(--primary);
}

.ss-nav-layer--switch {
  opacity: 0.72;
}

.ss-nav-layer--switch .ss-nav-links {
  font-size: 0.76rem;
}

footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.8rem 0 2.4rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.ss-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ss-footer a {
  color: var(--text-soft);
}

.ss-footer a:hover {
  color: var(--text-main);
}

/* ==========================================================================
  3. SHARED HERO / CANON COMPONENTS
========================================================================== */

.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.25rem;
  align-items: stretch;
}

.hero-main,
.hero-side {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.hero-main {
  padding: 2rem;
}

.hero-side {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.2), transparent 60%);
  margin-bottom: 1rem;
}

.hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.9);
}

.hero-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.1rem, 3vw, 3.1rem);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 42rem;
  line-height: 1.7;
  margin: 0 0 1.2rem;
}

.hero-subtitle strong {
  color: var(--text-main);
}

.hero-note {
  color: var(--text-soft);
  font-size: 0.9rem;
  border-left: 2px solid rgba(34, 211, 238, 0.28);
  padding-left: 0.9rem;
  line-height: 1.6;
}

.side-label,
.statement-label,
.section-number,
.related-artifact-label {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.side-card {
  display: block;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.42);
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.side-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
  transform: translateY(-1px);
}

.side-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-title);
  font-size: 1rem;
}

.side-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.side-card--route {
  border-style: dashed;
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.06);
}

.content {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.25rem;
}

.mini-nav {
  position: sticky;
  top: 120px;
  align-self: start;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-xl);
  padding: 1rem;
}

.mini-nav h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-title);
  font-size: 0.95rem;
}

.mini-nav a {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 0.7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.mini-nav a:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-main);
}

.doc {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  box-shadow: var(--shadow-card);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-title);
  font-size: 1.35rem;
  scroll-margin-top: 130px;
}

.section p,
.section li {
  color: var(--text-muted);
  line-height: 1.82;
}

.section ul {
  margin: 0.35rem 0 1rem;
  padding-left: 1.15rem;
}

.quote {
  border-left: 3px solid var(--primary);
  padding: 0.85rem 1rem;
  margin: 0.9rem 0 1rem;
  background: rgba(34, 211, 238, 0.06);
  border-radius: 0 0.85rem 0.85rem 0;
  color: var(--text-main);
}

.related-artifact {
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.08), rgba(34, 211, 238, 0.03));
  box-shadow: var(--shadow-card);
}

.related-artifact-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 0.45rem 0 0.55rem;
}

.related-artifact-text {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.related-artifact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  font-size: 0.95rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.35);
}

.related-artifact-link:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

.footer-note {
  margin-top: 1.6rem;
  color: var(--text-soft);
  font-size: 0.94rem;
  text-align: center;
}

/* ==========================================================================
  4. MANIFESTO
========================================================================== */

.shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.panel {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

aside.panel {
  position: sticky;
  top: 120px;
}

.toc-head,
.toc-tools,
.content-head {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.toc-head h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 0.95rem;
}

.toc-search {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #020617;
  color: var(--text-main);
  font-family: var(--font-body);
}

.toc-body {
  padding: 0.75rem;
}

.toc-link {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 0.65rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.toc-link:hover,
.toc-link.active {
  background: rgba(34, 211, 238, 0.12);
  color: var(--text-main);
}

.content-head h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.content-head p {
  margin: 0;
  color: var(--text-soft);
}

#doc {
  padding: 1.25rem 1.35rem 1.6rem;
  line-height: 1.75;
}

#doc h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-title);
  font-size: 1.25rem;
  scroll-margin-top: 130px;
}

#doc h2:first-child {
  margin-top: 0;
}

#doc h3 {
  margin: 1.25rem 0 0.45rem;
  font-family: var(--font-title);
  font-size: 1rem;
}

#doc p,
#doc li {
  color: var(--text-muted);
}

#doc ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

#doc blockquote {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--primary);
  background: rgba(34, 211, 238, 0.06);
  border-radius: 0 0.85rem 0.85rem 0;
  color: var(--text-main);
  font-family: var(--font-title);
}

/* ==========================================================================
  5. CATEGORY / ARCHITECTURE
========================================================================== */

.statement {
  margin-top: 1.5rem;
}

.statement-box {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.1), rgba(34, 211, 238, 0.04));
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.statement-box p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.85;
}

.sequence {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-family: var(--font-title);
}

.hero-breadcrumb {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.hero-breadcrumb a {
  color: var(--text-muted);
}

.hero-breadcrumb a:hover {
  color: var(--text-main);
}

.diagram-band {
  margin-top: 1.4rem;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.09), rgba(34, 211, 238, 0.03));
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--radius-xl);
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
}

.diagram-label {
  margin: 0 0 0.8rem;
  color: var(--text-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}

.diagram-step {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.42);
  padding: 1rem 0.8rem;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-title);
  line-height: 1.35;
  color: var(--text-main);
}

.diagram-step.highlight {
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.08);
}

.dependency-note {
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.07), rgba(34, 211, 238, 0.02));
  padding: 1rem 1.05rem;
  color: var(--text-main);
  line-height: 1.75;
  margin: 0.9rem 0 1rem;
}

/* ==========================================================================
  6. LEDGER
========================================================================== */

.access-band {
  margin-top: 1.4rem;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.09), rgba(34, 211, 238, 0.03));
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--radius-xl);
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
}

.access-label {
  margin: 0 0 0.7rem;
  color: var(--text-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.access-intro {
  margin: 0 0 1rem;
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.8;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.artifact-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.42);
  padding: 1rem;
  transition: 0.18s ease;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.artifact-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
  transform: translateY(-1px);
}

.artifact-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.artifact-name {
  font-family: var(--font-title);
  font-size: 1.02rem;
  color: var(--text-main);
}

.artifact-tag {
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 0.25rem 0.45rem;
}

.artifact-desc {
  margin-top: 0.7rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.artifact-link {
  margin-top: 1rem;
  color: var(--text-main);
  font-size: 0.92rem;
}

.evidence-line {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(34, 211, 238, 0.15);
  background: rgba(34, 211, 238, 0.05);
  color: var(--text-main);
  font-family: var(--font-title);
  line-height: 1.5;
}

.explain-wrap {
  margin-top: 1.8rem;
  padding-top: 0;
}

.explain-box {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.explain-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.1rem 1.2rem;
  background: transparent;
  color: var(--text-main);
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
}

.explain-toggle:hover {
  background: rgba(148, 163, 184, 0.06);
}

.explain-toggle-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.explain-label {
  color: var(--text-soft);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.explain-title {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--text-main);
}

.explain-icon {
  color: var(--text-soft);
  font-size: 1.15rem;
  transition: transform 0.18s ease;
}

.explain-box.open .explain-icon {
  transform: rotate(45deg);
}

.explain-content {
  display: none;
  padding: 1.1rem 1.2rem 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.explain-box.open .explain-content {
  display: block;
}

.explain-content p,
.explain-content li {
  color: var(--text-muted);
  line-height: 1.8;
}

.explain-content ul {
  margin: 0.4rem 0 1rem;
  padding-left: 1.1rem;
}

.records-link-wrap {
  margin-top: 1.4rem;
  display: flex;
  justify-content: flex-start;
}

.records-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-main);
  font-size: 0.95rem;
  padding: 0.75rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.35);
  transition: 0.18s ease;
}

.records-link:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
  color: #fff;
}

/* ==========================================================================
  7. RECORDS
========================================================================== */

.hero-box {
  max-width: 980px;
  margin: 56px auto 40px;
  padding: 56px 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
}

.hero-box h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  margin: 0 0 18px;
  letter-spacing: -0.04em;
}

.hero-lead {
  font-size: 1.25rem;
  color: #374151;
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 700;
}

.principle-box {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 4px solid #111827;
  background: #f9fafb;
  border-radius: 12px;
}

.records-section {
  width: 100%;
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}

.records-section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  color: var(--text-main);
}

.section-note {
  max-width: 760px;
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.record-card {
  min-height: 220px;
  padding: 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.18s ease;
}

.record-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(15, 23, 42, 0.98);
}

.record-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.record-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-soft);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.record-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-title);
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text-main);
}

.record-id {
  margin: 0 0 0.65rem;
  color: var(--primary);
  font-size: 0.82rem;
  line-height: 1.45;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.record-scope {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.record-card a,
.record-visibility {
  margin-top: auto;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 23, 0.5);
  color: var(--text-main);
  font-size: 0.88rem;
}

.record-card a:hover {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
}

.record-card-protected {
  border-style: dashed;
  background: rgba(15, 23, 42, 0.68);
}

.record-visibility {
  color: var(--text-soft);
}

/* ==========================================================================
  8. LANDSCAPE
========================================================================== */

.landscape-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 2.5rem;
  padding: 2.5rem 0 5rem;
}

.landscape-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
  display: grid;
  gap: 1rem;
}

.landscape-side-card {
  padding: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.78);
}

.landscape-side-card h2,
.landscape-side-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-title);
  font-size: 0.88rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.landscape-side-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.landscape-side-links {
  display: grid;
  gap: 0.45rem;
}

.landscape-side-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.landscape-side-links a:hover {
  color: var(--text-main);
}

.landscape-content article {
  max-width: 780px;
}

.landscape-section {
  padding: 1.2rem 0 1.8rem;
  scroll-margin-top: 130px;
}

.landscape-section + .landscape-section {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.landscape-section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1.1;
}

.landscape-section-kicker {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.landscape-content p,
.landscape-content li {
  color: var(--text-muted);
  line-height: 1.8;
}

.landscape-content ul {
  padding-left: 1.15rem;
}

.landscape-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.landscape-card,
.landscape-callout,
.landscape-quote,
.landscape-closing {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.78);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 70px rgba(15, 23, 42, 0.35);
}

.landscape-card {
  padding: 1.1rem;
  margin-top: 1rem;
}

.landscape-grid-two .landscape-card {
  margin-top: 0;
}

.landscape-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--text-main);
}

.landscape-callout {
  padding: 1.25rem;
  margin: 1.4rem 0;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.08), rgba(255, 255, 255, 0.03));
}

.landscape-callout strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.landscape-quote {
  margin: 1.4rem 0;
  padding: 1.25rem;
  font-family: var(--font-title);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--text-main);
}

.landscape-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
}

.landscape-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.42);
  font-weight: 600;
}

.landscape-flow-arrow {
  color: var(--text-soft);
  border: none !important;
  background: transparent !important;
  padding: 0.5rem 0.1rem !important;
}

.landscape-positioning {
  margin-top: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.78);
}

.landscape-position-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
}

.landscape-position-row + .landscape-position-row {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.landscape-position-row > div {
  padding: 1rem 1.1rem;
  color: var(--text-muted);
}

.landscape-position-row > div:first-child {
  color: var(--text-soft);
  border-right: 1px solid rgba(148, 163, 184, 0.16);
}

.landscape-closing {
  margin-top: 1.6rem;
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.07), rgba(255, 255, 255, 0.03));
}

/* ==========================================================================
  9. RESPONSIVE
========================================================================== */

@media (max-width: 1100px) {
  .landscape-layout,
  .landscape-grid-two,
  .landscape-position-row {
    grid-template-columns: 1fr;
  }

  .landscape-sidebar {
    position: static;
  }

  .landscape-position-row > div:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  }
}

@media (max-width: 980px) {
  .hero-shell,
  .content {
    grid-template-columns: 1fr;
  }

  .mini-nav {
    position: static;
  }

  .diagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .artifact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .ss-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .ss-nav-layers {
    align-items: flex-start;
    width: 100%;
  }

  .ss-nav-layer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .ss-nav-links {
    justify-content: flex-start;
    gap: 0.8rem;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  aside.panel {
    position: static;
  }
}

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

@media (max-width: 720px) {
  .hero-main,
  .hero-side,
  .hero-box,
  .statement-box,
  .section,
  .record-card {
    padding: 1.1rem;
  }

  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .ss-container {
    padding: 0 1rem;
  }

  .ss-logo img {
    height: 72px;
  }

  .ss-logo span {
    font-size: 0.7rem;
  }

  #doc {
    padding: 1rem;
  }

  .diagram-grid,
  .artifact-grid {
    grid-template-columns: 1fr;
  }

  .diagram-band,
  .access-band,
  .explain-toggle,
  .explain-content {
    padding: 1.1rem;
  }

  .record-top,
  .artifact-top {
    flex-direction: column;
  }
}

.records-legend-wrap {
  margin: 1.5rem 0 2.5rem;
}

.records-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.78);
}

.records-legend-label {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.records-legend-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.42);
}

.records-legend-item strong {
  font-family: var(--font-title);
  font-size: 0.9rem;
  color: var(--text-main);
}

.records-legend-item small {
  color: var(--text-soft);
  font-size: 0.78rem;
}

/* ==========================================================================
  STRICTSPHERE — COHERENCE / HOME / STRUCTURAL NODES PATCH
  Restores legacy classes used by:
  /, /coherence/, /coherence-governance/, /coherence-infrastructure/,
  /coherence-governance-infrastructure/, /policy/, /state/, /reality/, /trace/, /chain/
========================================================================== */

/* Fix for old header markup: <header class="ss-nav"> */
header.ss-nav {
  display: block;
  padding: 0;
}

.ss-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.9rem 0 0.7rem;
}

.ss-nav-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.9rem 0 0.3rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.ss-nav-layer--canonical {
  opacity: 0.78;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  gap: 0.35rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #020617;
  font-weight: 600;
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 0 55px rgba(168, 85, 247, 0.6);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(15, 23, 42, 0.92);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: rgba(168, 85, 247, 0.75);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.18);
  transform: translateY(-1px);
}

/* Home / Coherence hero */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2.4rem;
  align-items: center;
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.existence-note {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.exits-panel,
.hero-right-card {
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.exits-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.9rem;
}

.exit-card {
  display: block;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.6);
  padding: 0.95rem 1rem;
  margin-bottom: 0.75rem;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.exit-card:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
}

.exit-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.exit-card-name {
  font-family: var(--font-title);
  font-weight: 500;
  color: var(--text-main);
}

.exit-card-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.exit-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Generic landing sections */
.section-band {
  padding: 3.5rem 0;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 720px;
}

/* Coherence layer cards */
.category-grid,
.modules-grid,
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.category-card,
.module-card,
.usecase-card,
.layer-card,
.principle-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.78);
  padding: 1.15rem;
  box-shadow: var(--shadow-card);
}

.category-card h3,
.module-card h3,
.usecase-card h3,
.layer-card h3,
.principle-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-title);
  font-size: 1.05rem;
}

.category-card p,
.module-card p,
.usecase-card p,
.layer-card p,
.principle-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.ss-coherence-layer {
  margin-top: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.08), rgba(15, 23, 42, 0.78));
  padding: 1.35rem;
  box-shadow: var(--shadow-card);
}

.principle-strip {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pill,
.principle-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.42);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Split / seal old controls */
.ss-split {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.55);
}

.ss-split-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.ss-split-btn--left {
  padding-left: 1.05rem;
  padding-right: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 10px 0 0 10px;
}

.ss-split-btn--right {
  width: 44px;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  border-radius: 0 10px 10px 0;
  padding: 0;
  position: relative;
}

.ss-split-btn:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.6);
}

.ss-split-btn--right::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(168, 85, 247, 0.65);
}

/* Wrappers used in older home/coherence sections */
.launch-wrapper,
.whitepaper-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

.launch-card,
.whitepaper-card,
.document-note {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.82);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

/* Structural node pages */
.node-page,
.term-page,
.definition-page {
  max-width: 880px;
  margin: 0 auto;
}

.definition-card,
.node-card,
.term-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.88);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}

.definition-card h2,
.node-card h2,
.term-card h2 {
  font-family: var(--font-title);
  margin: 0 0 0.75rem;
}

.definition-card p,
.node-card p,
.term-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* Legacy architecture visual classes if present in /policy /state /trace pages */
.ss-arch-grid {
  display: grid;
  gap: 1rem;
}

.ss-arch-layer {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.82);
}

.ss-arch-label {
  font-family: var(--font-title);
  color: var(--text-main);
}

.ss-arch-text {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Responsive patch */
@media (max-width: 980px) {
  .hero-grid,
  .category-grid,
  .launch-wrapper,
  .whitepaper-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 2.3rem;
  }

  .modules-grid,
  .usecases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ss-arch-layer {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.2rem 1.1rem;
  }
}

@media (max-width: 760px) {
  .ss-nav-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .ss-nav-bottom,
  .ss-nav-layers {
    align-items: flex-start;
  }

  .category-grid,
  .modules-grid,
  .usecases-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right-card,
  .exits-panel {
    border-radius: 1.3rem;
  }
}

/* ==========================================================================
  STRUCTURAL NEXT STEP
========================================================================== */

.next-step {
  margin-top: 2.5rem;
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.08), rgba(15, 23, 42, 0.82));
  box-shadow: var(--shadow-card);
}

.next-step-label {
  margin-bottom: 0.55rem;
  color: var(--primary);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.next-step h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-title);
  font-size: 1.25rem;
}

.next-step p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.next-step a {
  display: inline-flex;
  align-items: center;
  color: var(--text-main);
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.35);
}

.next-step a:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

/* ==========================================================================
  COHERENCE + HOME NORMALIZATION (ANTI-CANON OVERRIDE)
========================================================================== */

.coherence-page main {
  padding: 0 0 4rem;
}

/* Evita que .section de CANON rompa layout */
.coherence-page .section,
.coherence-page section {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

/* Secciones tipo banda (HOME / COHERENCE) */
.coherence-page .section-band {
  padding: 4rem 0;
}

.coherence-page .section-band + .section-band {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

/* Tipografía */
.coherence-page .section-title {
  margin: 0 0 1rem;
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 1.1;
}

.coherence-page .section-subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Grid spacing */
.coherence-page .category-grid,
.coherence-page .modules-grid,
.coherence-page .usecases-grid {
  margin-top: 1.6rem;
}

/* Cards siguen estilo oscuro pero no CANON */
.coherence-page .category-card,
.coherence-page .module-card,
.coherence-page .usecase-card,
.coherence-page .layer-card,
.coherence-page .principle-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow-card);
}

/* HERO específico del HOME */
.coherence-page .hero {
  padding: 4rem 0 2rem;
}

/* Evita conflicto con hero CANON */
.coherence-page .hero-shell {
  display: block;
}

/* Next step spacing */
.coherence-page .next-step {
  margin-top: 2.5rem;
}
