:root {
  --bg-canvas: #fbf1f0;
  --bg-surface: #fffafa;
  --bg-surface-elevated: #ffffff;
  --bg-surface-hover: #f5e8e8;
  --text-primary: #1c1917;
  --text-muted: #57534e;
  --text-dim: #78716c;
  --accent-primary: #6b2155;
  --accent-secondary: #9d397f;
  --accent-soft: #ebd0e1;
  --accent-glow: rgba(107, 33, 85, 0.14);
  --border-subtle: #ebdcdb;
  --border-strong: #1c1917;
  --shadow-hard: 4px 4px 0 #1c1917;
  --shadow-hard-hover: 1px 1px 0 #1c1917;
  --shadow-elevation: 0 16px 36px -12px rgba(107, 33, 85, 0.12);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.68;
  overflow-wrap: anywhere;
  hyphens: auto;
  position: relative;
  background-image: 
    radial-gradient(circle at 18% 12%, rgba(107, 33, 85, 0.08) 0%, transparent 48%),
    radial-gradient(circle at 82% 65%, rgba(157, 57, 127, 0.06) 0%, transparent 42%);
  background-attachment: fixed;
}

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

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease-kinetic);
}

a:hover {
  color: var(--accent-secondary);
}

/* Typography elements */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 68ch;
}

/* Header & Navigation */
.editorial-bar {
  background: #1c1917;
  color: #fbf1f0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.45rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--accent-primary);
}

.site-header {
  position: relative;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--border-strong);
  padding: 1.1rem 1.5rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-glyph {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: var(--accent-primary);
  transform: rotate(45deg);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.35rem 0.25rem;
  position: relative;
  transition: color 0.2s var(--ease-kinetic);
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.25s var(--ease-kinetic);
}

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

.nav-desktop a.active {
  color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  font-size: 1.4rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  line-height: 1;
  color: var(--text-primary);
}

.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface-elevated);
  border-bottom: 2px solid var(--border-strong);
  padding: 1.25rem 1.5rem;
  z-index: 99;
  box-shadow: var(--shadow-elevation);
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-list a {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
}

/* Layout containers */
.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.prose-cap {
  max-width: 70ch;
  margin: 0 auto;
}

/* Square Buttons */
.btn-plum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-primary);
  color: #fffafa;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  transition: transform 0.15s var(--ease-kinetic), box-shadow 0.15s var(--ease-kinetic), background-color 0.15s;
}

.btn-plum:hover {
  background-color: var(--accent-secondary);
  color: #ffffff;
  transform: translate(3px, 3px);
  box-shadow: var(--shadow-hard-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  transition: transform 0.15s var(--ease-kinetic), box-shadow 0.15s var(--ease-kinetic);
}

.btn-secondary:hover {
  transform: translate(3px, 3px);
  box-shadow: var(--shadow-hard-hover);
  background-color: #f7ebea;
}

/* Hero Section */
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-portrait {
  position: relative;
  border: 2px solid var(--border-strong);
  box-shadow: 6px 6px 0 var(--accent-primary);
  overflow: hidden;
  background-color: #1c1917;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  filter: contrast(108%) saturate(92%);
}

.portrait-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border-strong);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.bento-cell {
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-hard);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease-kinetic);
}

.bento-cell:hover {
  transform: translateY(-3px);
}

.bento-cell.span-8 {
  grid-column: span 8;
}

.bento-cell.span-4 {
  grid-column: span 4;
}

.bento-cell.span-6 {
  grid-column: span 6;
}

.bento-cell.span-12 {
  grid-column: span 12;
}

.tile-media {
  position: relative;
  width: 100%;
  border-bottom: 2px solid var(--border-strong);
  background: #1c1917;
}

.tile-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tile-badge {
  position: absolute;
  bottom: -12px;
  left: 14px;
  background: var(--accent-primary);
  color: #fffafa;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border-strong);
  z-index: 2;
}

.tile-badge.neutral {
  background: #1c1917;
}

.tile-content {
  padding: 1.75rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tile-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.6rem;
  flex-grow: 1;
}

.tile-link-wrap {
  margin-top: 1.25rem;
}

/* Contrasting rows: Interpretation vs Grounded Evidence */
.contrast-table-wrap {
  margin: 2rem 0;
  border: 2px solid var(--border-strong);
  background: var(--bg-surface);
  box-shadow: var(--shadow-hard);
  overflow-x: auto;
}

.contrast-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.contrast-table th, 
.contrast-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.contrast-table th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: #1c1917;
  color: #fffafa;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contrast-table tr:last-child td {
  border-bottom: none;
}

.contrast-table tr:nth-child(even) td {
  background-color: rgba(107, 33, 85, 0.03);
}

/* Prompt Panels */
.prompts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.prompt-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-hard);
  padding: 1.4rem;
  position: relative;
}

.prompt-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.prompt-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.prompt-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Support Boundaries / Callout Box */
.boundary-callout {
  background-color: #f7e8ea;
  border-left: 6px solid var(--accent-primary);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.4rem;
  margin: 2rem 0;
}

.boundary-callout h4 {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  margin-bottom: 0.45rem;
}

.boundary-callout p {
  font-size: 0.93rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* FAQ Disclosures */
.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.faq-item {
  border: 2px solid var(--border-strong);
  background: var(--bg-surface);
  box-shadow: 2px 2px 0 var(--border-strong);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
}

.faq-question::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--accent-primary);
  transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px dashed var(--border-subtle);
  margin-top: 0.25rem;
  padding-top: 0.85rem;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Forms (Contact Page) */
.form-panel {
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-hard);
  padding: 2rem;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.input-square {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 2px solid var(--border-strong);
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.input-square:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
}

.preview-box {
  background: #1c1917;
  color: #fbf1f0;
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-all;
  border: 2px solid var(--border-strong);
  margin-top: 1.5rem;
  display: none;
}

.actions-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: #1c1917;
  color: #e7dfdc;
  border-top: 3px solid var(--accent-primary);
  padding: 3rem 1.5rem 2.5rem;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand-title {
  color: #fffafa;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-text {
  color: #a8a29e;
  font-size: 0.86rem;
  line-height: 1.6;
  max-width: 48ch;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  border-bottom: 1px solid #44403c;
  padding-bottom: 0.4rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #d6d3d1;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #fce7f3;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #292524;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #78716c;
}

.footer-bottom a {
  color: #a8a29e;
}

/* Scroll reveal helper */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}

.reveal-item.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .bento-cell.span-8,
  .bento-cell.span-6,
  .bento-cell.span-4 {
    grid-column: span 12;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .editorial-bar {
    font-size: 0.68rem;
  }
  .main-wrap {
    padding-top: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
