/* ===========================================================
   SORSO VIEW — GLOBAL STYLESHEET
   Brand-locked: DM Serif Display Italic (display) + Source Serif 4 (body)
   + Inter (UI) + JetBrains Mono (meta).
   Charcoal #1A1D24 + Paper #F5F2EB + Antique Gold #B8966A.
   Refined editorial register. Restraint and precision.
   =========================================================== */

:root {
  color-scheme: light only;
}

html, body {
  background-color: #F5F2EB !important;
  color: #1A1D24 !important;
}

:root {
  --ink:          #1A1D24;
  --ink-soft:     #2D3340;
  --paper:        #F5F2EB;
  --paper-pure:   #FBFAF6;
  --rule:         #1A1D24;
  --rule-soft:    #C9C4B8;
  --accent:       #B8966A;
  --accent-soft:  #C99860;
  --accent-deep:  #8E7250;
  --data-pos:     #2E5D3F;
  --data-neg:     #8B2F2F;
  --muted:        #5A574E;

  /* Typography — corrected per locked brand spec */
  --display: 'DM Serif Display', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --serif:   'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', 'SF Mono', 'Menlo', monospace;

  --max-w: 1280px;
  --text-w: 680px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* Source Serif 4 optical sizing on body and supporting display moments */
.brand-name,
.footer-brand,
.headline,
.display {
  font-variation-settings: "opsz" 60;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

/* Atmospheric depth — film grain via SVG fractal noise.
   Subtle but present; the frontend-design skill calls for atmosphere over flat solids. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ====== PAGE LOAD REVEAL ======
   One coordinated reveal. Staggered by --d (delay) on direct children.
   No scattered micro-interactions; one orchestrated entry per page. */
@keyframes svci-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: svci-rise 0.85s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  animation-delay: var(--d, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* ====== NAV ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 235, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink) !important;
  flex-shrink: 0;
}
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-name em { font-style: italic; color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
  margin: 0 auto;
}
.nav-links a {
  color: var(--ink) !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.72;
  transition: opacity 0.2s, color 0.2s;
  letter-spacing: 0.005em;
}
.nav-links a:hover { opacity: 1; color: var(--accent-deep) !important; }
.nav-links a[aria-current="page"] {
  opacity: 1;
  color: var(--accent-deep) !important;
}
.nav-cta {
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  background: var(--ink);
  color: var(--paper) !important;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--accent-deep); }

/* New brand wordmark — inline SVG, height-locked */
.brand-wordmark { display: block; height: 44px; width: auto; }
.brand-wordmark text { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
@media (max-width: 900px) {
  .brand-wordmark { height: 38px; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.82rem; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 0.9rem 1.25rem; gap: 0.75rem; }
  .brand-wordmark { height: 32px; }
  .nav-links { display: none; }
}

/* ====== BUTTONS ====== */
.btn-primary {
  padding: 1rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--ink);
  color: var(--paper) !important;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
  cursor: pointer;
  border: none;
  letter-spacing: 0.005em;
}
.btn-primary:hover { background: var(--accent-deep); }

.btn-secondary {
  padding: 1rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  background: transparent;
  color: var(--ink) !important;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: all 0.2s;
  display: inline-block;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--ink); color: var(--paper) !important; }

/* ====== SHARED PAGE PATTERNS ====== */
/* Used by /about/, /methodology/, /index/, /briefs/, /essays/, /reports/, /plus/, /api/, /sponsors/, /corrections/ */
.page-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 2rem 3rem;
  position: relative;
  z-index: 2;
}
.page-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.page-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.page-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--ink) !important;
  margin-bottom: 2rem;
  max-width: 22ch;
}
.page-title em { font-style: italic; color: var(--accent); }
.page-deck {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink) !important;
  max-width: 58ch;
  margin-bottom: 0;
}

/* Body editorial — used on About, Methodology, Reports, Plus, API, Sponsors */
.body {
  max-width: var(--text-w);
  margin: 0 auto;
  padding: 4rem 2rem 4rem;
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--ink) !important;
}
.body p {
  margin-bottom: 1.6rem;
  color: var(--ink) !important;
}
.body p.lead {
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  color: var(--ink) !important;
}
.body h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 4rem 0 1.5rem;
  color: var(--ink) !important;
  position: relative;
}
.body h2 em { font-style: italic; color: var(--accent); }
.body h2::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 1.5rem;
}
.body h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin: 3rem 0 1rem;
  color: var(--ink) !important;
}
.body h3 em { font-style: italic; color: var(--accent); }
.body strong { font-weight: 600; color: var(--ink); }
.body em { font-style: italic; }
.body ul, .body ol {
  margin: 0 0 1.6rem 1.5rem;
  color: var(--ink) !important;
}
.body li { margin-bottom: 0.55rem; line-height: 1.6; }
.body a {
  color: var(--accent-deep) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.body a:hover { color: var(--ink) !important; }
.body blockquote {
  margin: 2.5rem 0;
  padding: 1rem 0 1rem 1.75rem;
  border-left: 2px solid var(--accent);
  font-style: italic;
  color: var(--ink-soft);
}
.body hr {
  border: none;
  border-top: 1px solid var(--rule-soft);
  margin: 3rem 0;
}

/* ====== METHODOLOGY TABLES ====== */
.method-table {
  width: 100%;
  margin: 2rem 0 2.5rem;
  border-collapse: collapse;
  font-family: var(--serif);
  font-size: 1rem;
}
.method-table th, .method-table td {
  text-align: left;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  color: var(--ink) !important;
}
.method-table th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted) !important;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.65rem;
}
.method-table td:first-child { padding-right: 1.5rem; }
.method-table .tier-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  white-space: nowrap;
}

/* ====== PLACEHOLDER PAGES (briefs / reports / plus / api / sponsors) ====== */
.placeholder-section {
  max-width: var(--text-w);
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
  position: relative;
  z-index: 2;
}
.placeholder-status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--accent);
  margin-bottom: 2rem;
}
.placeholder-list {
  list-style: none;
  margin: 2.5rem 0;
  padding: 0;
}
.placeholder-list li {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.55;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.placeholder-list li::before {
  content: '·';
  color: var(--accent);
  font-weight: bold;
  flex-shrink: 0;
}

/* Email capture form (used on /plus/, /api/, etc.) */
.capture-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 480px;
  margin-top: 2rem;
}
.capture-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.95rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--paper-pure);
  color: var(--ink);
  border: 1px solid var(--rule-soft);
  outline: none;
  transition: border-color 0.2s;
}
.capture-form input[type="email"]:focus { border-color: var(--accent); }
.capture-form button {
  padding: 0.95rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.capture-form button:hover { background: var(--accent-deep); }
.capture-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 0.85rem;
}

/* ====== FOOTER ====== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 4.5rem 2rem 2rem;
  position: relative;
  z-index: 2;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247, 245, 240, 0.15);
}
.footer-brand-block { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand {
  font-family: var(--display);
  font-size: 1.85rem;
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.footer-brand em { font-style: italic; color: var(--accent-soft); }
.footer-tagline {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(247, 245, 240, 0.62);
  font-style: italic;
  max-width: 38ch;
}
.footer-col-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.5);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: rgba(247, 245, 240, 0.82) !important;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-soft) !important; }
.footer-col li.muted {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: rgba(247, 245, 240, 0.45);
  font-style: italic;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(247, 245, 240, 0.45);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-col.related { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.25rem; }
  .footer-col.related { grid-column: auto; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .page-header { padding: 4rem 1.5rem 2.5rem; }
  .body { padding: 3rem 1.5rem 3rem; font-size: 1.1rem; }
  .placeholder-section { padding: 1.5rem 1.5rem 4rem; }
}

/* ===========================================================
   PUBLISH-READY ADDITIONS — May 7, 2026
   - Mobile hamburger menu
   - Skip-to-content accessibility link
   - Print stylesheet
   - Trust strip on homepage (Silicon Data / Ornn positioning)
   - Refined footer related-properties slot
   =========================================================== */

/* ====== SKIP TO CONTENT (a11y) ====== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.85rem 1.25rem;
  z-index: 1000;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

/* ====== MOBILE HAMBURGER MENU ====== */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule-soft);
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 50%;
  margin-left: -9px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle-bar:nth-child(1) { top: 14px; }
.nav-toggle-bar:nth-child(2) { top: 19px; }
.nav-toggle-bar:nth-child(3) { top: 24px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
  padding: 5rem 1.5rem 2.5rem;
  z-index: 99;
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 8px 32px rgba(26, 29, 36, 0.12);
}
.mobile-menu[aria-hidden="false"] {
  display: block;
  animation: svci-rise 0.35s ease-out;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu li {
  border-bottom: 1px solid var(--rule-soft);
}
.mobile-menu li:last-child { border-bottom: none; }
.mobile-menu a {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--ink) !important;
  text-decoration: none;
  padding: 1.1rem 0;
  transition: color 0.15s, padding-left 0.15s;
}
.mobile-menu a:hover,
.mobile-menu a:focus {
  color: var(--accent-deep) !important;
  padding-left: 0.5rem;
}
.mobile-menu a[aria-current="page"] {
  color: var(--accent-deep) !important;
}
.mobile-menu a[aria-current="page"]::before {
  content: '— ';
  color: var(--accent);
}
.mobile-menu .menu-cta {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-soft);
}
.mobile-menu .menu-cta a {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-align: center;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 1rem 1.5rem;
  letter-spacing: 0.005em;
}
.mobile-menu .menu-cta a:hover { padding-left: 1.5rem; }

.menu-meta {
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-inner { gap: 0.85rem; }
}

/* Body scroll lock when mobile menu open */
body.menu-open {
  overflow: hidden;
}

/* ====== TRUST STRIP — Where SVCI sits in the market ====== */
.trust-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 2rem;
  position: relative;
  z-index: 2;
}
.trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.trust-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.trust-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent-soft);
}
.trust-heading {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--paper);
  max-width: 14ch;
}
.trust-heading em { font-style: italic; color: var(--accent-soft); }
.trust-body {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(247, 245, 240, 0.86);
}
.trust-body p { margin-bottom: 1.25rem; }
.trust-body p:last-child { margin-bottom: 0; }
.trust-body strong { color: var(--paper); font-weight: 500; }
.trust-body em { color: var(--accent-soft); font-style: italic; }
@media (max-width: 900px) {
  .trust-inner { grid-template-columns: 1fr; gap: 2rem; }
  .trust-strip { padding: 4rem 1.5rem; }
}

/* ====== ESSAYS INDEX — Featured / pinned ====== */
.essay-item.featured {
  background: var(--paper-pure);
  padding-left: 2rem;
  padding-right: 2rem;
  border-left: 3px solid var(--accent);
  margin-left: -2rem;
}
.essay-item.featured .essay-item-meta-block.tag::before {
  content: '★ ';
  color: var(--accent);
}
@media (max-width: 800px) {
  .essay-item.featured {
    padding: 1.5rem;
    margin-left: 0;
  }
}

/* ====== FOOTER RELATED PROPERTIES — refined ====== */
.footer-col.related ul li {
  margin-bottom: 0.85rem;
  line-height: 1.5;
}
.footer-col.related .property-name {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: rgba(247, 245, 240, 0.82);
  display: block;
}
.footer-col.related .property-status {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.42);
  display: block;
  margin-top: 0.15rem;
}

/* ====== PRINT STYLES ====== */
@media print {
  .nav, .footer, .mobile-menu, .nav-toggle,
  .pre-launch-band, .newsletter-block,
  .placeholder-status, .capture-form, .capture-note,
  .skip-link, .trust-strip {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
    line-height: 1.5;
  }
  body::before { display: none !important; }
  .body, .page-header { padding: 0; max-width: 100%; }
  .body h2, .body h3 { page-break-after: avoid; }
  .body p, .body li { page-break-inside: avoid; }
  a { color: black !important; text-decoration: none; }
  a[href^="http"]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }
}
