:root {
  --bg-canvas: #f3f0fa;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f9f7fd;
  --text-primary: #334155;
  --text-muted: #5a6475;
  --accent-primary: #642b65;
  --accent-secondary: #4a1e4b;
  --border-subtle: #dcd4e8;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  overflow-wrap: anywhere;
  hyphens: auto;
}
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--accent-primary);
  font-weight: normal;
  line-height: 1.25;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.15rem; max-width: 70ch; }
a { color: var(--accent-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-secondary); }
.site-wrapper { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem; }
.header-capsule {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-primary);
}
.brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.desktop-nav { display: flex; gap: 1.5rem; align-items: center; list-style: none; }
.desktop-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0;
}
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] {
  color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
}
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  color: var(--accent-primary);
  cursor: pointer;
}
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  z-index: 30;
}
.mobile-nav-drawer.is-open { display: block; }
.mobile-nav-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-nav-drawer a { text-decoration: none; font-weight: 600; color: var(--accent-primary); display: block; padding: 0.35rem 0; }
.hero-block {
  position: relative;
  background: var(--accent-primary);
  color: var(--bg-surface);
  margin-bottom: 3.5rem;
  border: 1px solid var(--border-subtle);
}
.hero-media {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  filter: contrast(1.08) brightness(0.82);
}
.hero-overlay-grid {
  padding: 2rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}
.three-fact-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
}
.fact-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}
.fact-row:last-child { border-bottom: none; }
.fact-label { text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-size: 0.78rem; }
.fact-val { font-weight: 600; color: var(--accent-primary); text-align: right; }
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  padding: 0.75rem 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: var(--accent-primary);
  color: var(--bg-surface);
}
.spine-container {
  position: relative;
  padding-left: 2.75rem;
  border-left: 1px solid var(--accent-primary);
  margin-left: 1rem;
}
.spine-stage {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  margin-bottom: 2.5rem;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s var(--ease-kinetic);
}
.spine-stage.reveal-pending { opacity: 0; transform: translateY(16px); }
.stage-badge {
  position: absolute;
  left: -3.85rem;
  top: 1.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-family: Georgia, serif;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-list { border-top: 1px solid var(--border-subtle); margin: 1.5rem 0; }
.tool-row {
  display: grid;
  grid-template-columns: 44px 1.2fr 2fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.1rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.tool-row:hover { background: var(--bg-surface-hover); }
.row-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 0.9rem;
}
.row-meta { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border-subtle); }
table { width: 100%; border-collapse: collapse; background: var(--bg-surface); font-size: 0.92rem; }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
th { background: var(--bg-canvas); color: var(--accent-primary); font-family: Georgia, serif; font-weight: normal; }
.export-note {
  background: var(--bg-canvas);
  border-left: 3px solid var(--accent-primary);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.92rem;
}
.split-figure {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin: 1.5rem 0;
  align-items: start;
}
.square-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 1px solid var(--border-subtle); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; color: var(--accent-primary); }
.form-control { width: 100%; padding: 0.75rem; border: 1px solid var(--border-subtle); background: var(--bg-canvas); color: var(--text-primary); font-family: inherit; border-radius: 0; }
.output-box { background: var(--bg-canvas); border: 1px solid var(--accent-primary); padding: 1.25rem; margin-top: 1.25rem; white-space: pre-wrap; font-family: monospace; font-size: 0.88rem; }
.site-footer {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .hero-overlay-grid, .split-figure { grid-template-columns: 1fr; }
  .tool-row { grid-template-columns: 36px 1fr; }
  .tool-row > div:nth-child(3), .tool-row > div:nth-child(4) { grid-column: 2; }
  .spine-container { padding-left: 1.5rem; margin-left: 0.5rem; }
  .stage-badge { left: -2.6rem; }
}

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