:root {
  --bg-canvas: #ffffff;
  --bg-surface: #f1f5f9;
  --bg-surface-elevated: #ffffff;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --accent-primary: #a7193f;
  --accent-hover: #861332;
  --accent-subtle: #fbebf0;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-crimson: rgba(167, 25, 63, 0.25);
  --font-heading: "Arial Narrow", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 4px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 10px 24px -4px rgba(30, 41, 59, 0.08);
  --shadow-crimson: 0 12px 30px -6px rgba(167, 25, 63, 0.22);
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, .brand-logo, .tagline-bar, .btn, .bento-kicker, .table-header {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.85rem, 4.2vw, 3.2rem);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

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

p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

p.lead {
  font-size: 1.125rem;
  color: #334155;
  line-height: 1.7;
}

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

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Header & Navigation */
.header-wrapper {
  position: relative;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.tagline-bar {
  background: #111827;
  color: #f1f5f9;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 0.35rem 1.5rem;
  text-align: center;
}

.site-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-wrapper:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: var(--accent-primary);
  border-radius: 2px;
}

.brand-logo {
  font-size: 1.25rem;
  color: #0f172a;
  letter-spacing: 0.1em;
}

.brand-logo span {
  color: var(--accent-primary);
}

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

.nav-link {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #334155;
  font-weight: 700;
  padding: 0.3rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
  text-decoration: none;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
}

.mobile-menu-trigger {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.mobile-menu-overlay {
  display: none;
  background: #ffffff;
  border-bottom: 2px solid var(--accent-primary);
  padding: 1.25rem 1.5rem;
}

.mobile-menu-overlay.is-active {
  display: block;
}

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

.mobile-nav-list .nav-link {
  font-size: 1rem;
  display: inline-block;
  padding: 0.35rem 0;
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.container-narrow {
  max-width: 72ch;
  margin: 0 auto;
}

.section-crimson {
  background-color: var(--accent-primary);
  color: #ffffff;
  padding: 4rem 1.5rem;
}

.section-crimson h2, 
.section-crimson h3, 
.section-crimson p {
  color: #ffffff;
}

.section-crimson a {
  color: #fecdd3;
}

.section-crimson a:hover {
  color: #ffffff;
}

.section-surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  cursor: pointer;
  text-align: center;
  transition: all 0.25s var(--ease-kinetic);
  text-decoration: none;
}

.btn:hover, .btn:focus-visible {
  background: var(--accent-primary);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-crimson);
}

.btn-crimson-solid {
  background: var(--accent-primary);
  color: #ffffff;
}

.btn-crimson-solid:hover, .btn-crimson-solid:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-white-outline {
  border-color: #ffffff;
  color: #ffffff;
}

.btn-white-outline:hover, .btn-white-outline:focus-visible {
  background: #ffffff;
  color: var(--accent-primary);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Hero Component */
.workshop-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 4rem 1.5rem;
  background-color: #111827;
  overflow: hidden;
}

.workshop-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(167, 25, 63, 0.45) 60%, rgba(15, 23, 42, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.hero-kicker {
  color: #fecdd3;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero-content h1 {
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-content p {
  color: #f1f5f9;
  font-size: 1.15rem;
  line-height: 1.7;
}

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

.bento-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  transition: transform 0.25s var(--ease-kinetic), box-shadow 0.25s var(--ease-kinetic);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevation);
  border-color: var(--border-crimson);
}

.bento-card-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.bento-card-glass h3, .bento-card-glass p {
  color: #ffffff;
}

.bento-card-crimson {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.bento-card-crimson h3, .bento-card-crimson p {
  color: #ffffff;
}

.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }

.bento-media-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.bento-media-img-tall {
  height: 320px;
}

.bento-kicker {
  font-size: 0.75rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.bento-card-crimson .bento-kicker, .bento-card-glass .bento-kicker {
  color: #fecdd3;
}

/* Numbered Sequences */
.sequence-list {
  list-style: none;
  counter-reset: seq;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.sequence-item {
  counter-increment: seq;
  background: #ffffff;
  padding: 1.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.sequence-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* Comparison Tables */
.table-scroll-container {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.tool-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  text-align: left;
}

.tool-table th, .tool-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tool-table th {
  background: #f8fafc;
  color: #0f172a;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.tool-table tbody tr:hover {
  background: #fdf2f4;
}

.badge-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  background: var(--accent-subtle);
  color: var(--accent-primary);
}

/* Paired Comparison Split */
.pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.pair-card {
  background: var(--bg-surface);
  border-left: 3px solid var(--accent-primary);
  padding: 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.faq-summary {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent-primary);
  transition: transform 0.2s ease;
}

details[open] .faq-summary::after {
  content: "−";
}

.faq-body {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: #334155;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

/* Contact Message Tool */
.tool-workbench {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-elevation);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: #1e293b;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #0f172a;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-subtle);
}

.output-preview {
  background: #f8fafc;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  color: #0f172a;
}

.feedback-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-size: 0.875rem;
  display: none;
}

.feedback-alert.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

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

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

/* Site Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 1.5rem 2.5rem 1.5rem;
  border-top: 3px solid var(--accent-primary);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #1e293b;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col p {
  color: #94a3b8;
  font-size: 0.875rem;
}

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

.footer-col ul a {
  color: #cbd5e1;
}

.footer-col ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .col-8 { grid-column: span 12; }
  .col-6 { grid-column: span 12; }
  .col-4 { grid-column: span 12; }
  .pair-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .mobile-menu-trigger { display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .bento-grid { grid-template-columns: 1fr; gap: 1rem; }
  .col-12, .col-8, .col-6, .col-4 { grid-column: span 1; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; }
}

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