:root {
  --bg-canvas: #faf6ef;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f4efeb;
  --text-primary: #3d312a;
  --text-muted: #5c4f46;
  --accent-primary: #c2562e;
  --accent-secondary: #6b7a3a;
  --border-subtle: #d9d1c7;
  
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-hard: 4px 4px 0 var(--text-primary);
}

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

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  line-height: 1.7;
  overflow-wrap: anywhere;
  hyphens: auto;
}

body {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0;
  line-height: 1.2;
}

/* Header */
.site-header {
  position: relative;
  margin: 1.5rem 2rem;
  background: var(--bg-surface);
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  border: 2px solid var(--text-primary);
  box-shadow: 4px 4px 0 var(--border-subtle);
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.desktop-nav a {
  margin-left: 2rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 800;
}
.desktop-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 2rem;
  right: 2rem;
  background: var(--bg-surface);
  border: 2px solid var(--text-primary);
  margin-top: 1rem;
  flex-direction: column;
  box-shadow: var(--shadow-hard);
  z-index: 100;
}

.mobile-menu a {
  padding: 1rem 2rem;
  border-bottom: 2px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
}
.mobile-menu a:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .site-header { margin: 1rem; padding: 0.75rem 1.5rem; }
  .mobile-menu { left: 1rem; right: 1rem; }
  .desktop-nav { display: none; }
  .mobile-toggle { display: block; }
  .mobile-menu.open { display: flex; }
}

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

.long-form {
  max-width: 72ch;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Sections */
.section-diagonal {
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
  padding: 8vw 0;
  margin: -3vw 0;
  position: relative;
  z-index: 10;
}

.bg-cream { background: var(--bg-canvas); }
.bg-olive { background: var(--accent-secondary); color: var(--bg-canvas); }
.bg-olive h2, .bg-olive p, .bg-olive .list-content p, .bg-olive .list-icon { color: var(--bg-canvas); }
.bg-olive .list-row { border-color: rgba(255,255,255,0.2); }
.bg-olive .list-row:hover { background-color: rgba(255,255,255,0.05); }

.bg-terracotta { background: var(--accent-primary); color: var(--bg-canvas); }
.bg-terracotta h2, .bg-terracotta p, .bg-terracotta .list-content p, .bg-terracotta .list-icon { color: var(--bg-canvas); }
.bg-terracotta .list-row { border-color: rgba(255,255,255,0.2); }
.bg-terracotta .list-row:hover { background-color: rgba(255,255,255,0.05); }

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--text-primary);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-hard);
  transition: transform 0.15s var(--ease-kinetic), box-shadow 0.15s var(--ease-kinetic);
  border-radius: 0;
  text-align: center;
}
.btn.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
}
.btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0 var(--text-primary);
}

/* Hero */
.hero {
  display: flex;
  min-height: 80vh;
  align-items: center;
  gap: 4rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.hero-content { flex: 1; }
.hero-image { flex: 1; }
.hero h1 { font-size: clamp(3rem, 6vw, 5rem); margin-bottom: 1.5rem; text-transform: uppercase; line-height: 1; }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; color: var(--text-muted); }
.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 2px solid var(--text-primary);
  border-radius: 0;
  box-shadow: var(--shadow-hard);
}
@media (max-width: 992px) {
  .hero { flex-direction: column; text-align: left; gap: 2rem; }
}

/* List Rows */
.list-wrapper { margin: 2rem 0; border-top: 2px solid var(--border-subtle); }
.list-row {
  display: flex;
  align-items: center;
  padding: 1.5rem 1rem;
  border-bottom: 2px solid var(--border-subtle);
  transition: background-color 0.2s var(--ease-kinetic);
}
.list-row:hover { background-color: var(--bg-surface-hover); }
.list-icon {
  width: 48px;
  height: 48px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 2rem;
  flex-shrink: 0;
}
.list-icon svg { width: 32px; height: 32px; stroke: currentColor; fill: none; }
.list-content { flex: 1; }
.list-content h3 { margin-bottom: 0.25rem; font-size: 1.25rem; }
.list-content p { margin: 0; color: var(--text-muted); font-size: 1rem; }
.list-action { margin-left: 2rem; }
@media (max-width: 600px) {
  .list-row { flex-direction: column; align-items: flex-start; }
  .list-icon { margin-bottom: 1rem; }
  .list-action { margin-left: 0; margin-top: 1.5rem; width: 100%; }
  .list-action .btn { width: 100%; }
}

/* Panels & Stat Strips */
.panel {
  background: var(--bg-surface);
  border: 2px solid var(--text-primary);
  padding: 2rem;
  border-radius: 0;
  box-shadow: var(--shadow-hard);
  margin-bottom: 2.5rem;
}
.stat-strip {
  display: flex;
  border: 2px solid var(--text-primary);
  background: var(--bg-surface);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-hard);
}
.stat-item {
  flex: 1;
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 2px solid var(--text-primary);
}
.stat-item:last-child { border-right: none; }
.stat-value { font-weight: 800; font-size: 2rem; display: block; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); font-weight: 800; letter-spacing: 0.05em; }
@media (max-width: 600px) {
  .stat-strip { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 2px solid var(--text-primary); }
  .stat-item:last-child { border-bottom: none; }
}

/* Tabs */
.tab-headers { display: flex; border-bottom: 2px solid var(--text-primary); margin-bottom: 1.5rem; overflow-x: auto; }
.tab-btn {
  background: none; border: none; padding: 1rem 1.5rem; font-weight: 800; font-size: 1rem;
  cursor: pointer; border-radius: 0; color: var(--text-muted); white-space: nowrap;
}
.tab-btn.active { color: var(--text-primary); border-bottom: 4px solid var(--accent-primary); margin-bottom: -2px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade-in 0.3s var(--ease-kinetic); }

@keyframes fade-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Forms / Inputs */
label { display: block; font-weight: 800; margin-bottom: 0.5rem; font-size: 0.9rem; text-transform: uppercase; }
input, textarea, select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--text-primary);
  background: var(--bg-canvas);
  border-radius: 0;
  font-family: inherit;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent-primary); box-shadow: 2px 2px 0 var(--text-primary); }

/* Footer */
.site-footer {
  background-color: var(--accent-secondary);
  color: var(--bg-canvas);
  padding: 8rem 2rem 3rem;
  clip-path: ellipse(150% 100% at 50% 100%);
  margin-top: 6rem;
  border-top: none;
}
@media (max-width: 768px) {
  .site-footer { clip-path: ellipse(200% 100% at 50% 100%); padding-top: 6rem; }
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col a { color: var(--bg-canvas); text-decoration: none; display: block; margin-bottom: 0.75rem; font-weight: 600; opacity: 0.9; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-brand { font-weight: 800; font-size: 1.5rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: -0.02em; }
.footer-legal { width: 100%; margin-top: 4rem; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.3); padding-top: 2rem; opacity: 0.8; line-height: 2; }

/* Utilities */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-kinetic), transform 0.8s var(--ease-kinetic); }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }

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