:root {
  --ink: #1a1a1a;
  --paper: #f8f6f1;
  --warm: #e8e4db;
  --accent: #c45d3e;
  --accent-light: #d4785e;
  --accent-glow: rgba(196, 93, 62, 0.12);
  --retire-color: #2d6a4f;
  --retire-light: #40916c;
  --retire-bg: rgba(45, 106, 79, 0.06);
  --well-color: #3a5a8c;
  --well-light: #5a7fad;
  --well-bg: rgba(58, 90, 140, 0.06);
  --muted: #8a8478;
  --divider: rgba(26, 26, 26, 0.08);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Outfit', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== NOISE TEXTURE OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(248, 246, 241, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--divider);
  transition: all 0.3s ease;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav-links a:hover { color: var(--ink); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--divider), var(--divider), transparent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--accent-glow);
  border: 1px solid rgba(196, 93, 62, 0.15);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  animation: fadeDown 0.8s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  animation: fadeDown 0.8s ease 0.1s both;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  animation: fadeDown 0.8s ease 0.2s both;
}

.hero-description {
  max-width: 580px;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
  animation: fadeDown 0.8s ease 0.3s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  animation: fadeDown 0.8s ease 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--divider);
}

.btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeDown 0.8s ease 0.6s both;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ===== MANIFESTO SECTION ===== */
.manifesto {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
}

.manifesto-inner {
  max-width: 720px;
  margin: 0 auto;
}

.manifesto blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  position: relative;
  padding: 0 1rem;
}

.manifesto blockquote::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: -2.5rem;
  left: -1rem;
  line-height: 1;
}

.manifesto .attribution {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ===== PILLARS SECTION ===== */
.pillars {
  padding: 4rem 2rem 8rem;
}

.pillars-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.pillars-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin: 0 auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pillar-card {
  padding: 3.5rem 3rem;
  border-radius: 20px;
  border: 1px solid var(--divider);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.pillar-card.retire {
  background: var(--retire-bg);
  border-color: rgba(45, 106, 79, 0.1);
}

.pillar-card.well {
  background: var(--well-bg);
  border-color: rgba(58, 90, 140, 0.1);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.retire .pillar-icon {
  background: rgba(45, 106, 79, 0.1);
  color: var(--retire-color);
}

.well .pillar-icon {
  background: rgba(58, 90, 140, 0.1);
  color: var(--well-color);
}

.pillar-card h3 {
  font-family: var(--serif);
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.retire h3 { color: var(--retire-color); }
.well h3 { color: var(--well-color); }

.pillar-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.tool-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid var(--divider);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.25s ease;
  cursor: pointer;
}

.tool-item:last-child {
  border-bottom: 1px solid var(--divider);
}

.tool-item:hover {
  padding-left: 0.75rem;
}

.retire .tool-item:hover { color: var(--retire-color); }
.well .tool-item:hover { color: var(--well-color); }

.tool-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.tool-arrow {
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s ease;
}

.tool-item:hover .tool-arrow {
  opacity: 1;
  transform: translateX(0);
}

.tool-badge {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 0.75rem;
}

.retire .tool-badge {
  background: rgba(45, 106, 79, 0.1);
  color: var(--retire-color);
}

.well .tool-badge {
  background: rgba(58, 90, 140, 0.1);
  color: var(--well-color);
}

/* ===== STORY SECTION ===== */
.story {
  padding: 8rem 2rem;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.story::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 93, 62, 0.08), transparent 70%);
}

.story-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.story .section-label {
  color: var(--accent-light);
}

.story h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.story p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: rgba(248, 246, 241, 0.65);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.story p strong {
  color: var(--paper);
  font-weight: 500;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(248, 246, 241, 0.08);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(248, 246, 241, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ===== PHILOSOPHY SECTION ===== */
.philosophy {
  padding: 8rem 2rem;
  position: relative;
}

.philosophy::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--divider), var(--divider), transparent);
}

.philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.philosophy h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.philosophy p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.principles {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.principle {
  padding: 1.75rem 2rem;
  background: white;
  border-radius: 14px;
  border: 1px solid var(--divider);
  transition: all 0.3s ease;
}

.principle:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.principle-number {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.principle h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.principle p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
footer {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

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

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-links a:hover { color: var(--ink); }

.footer-credit {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.6;
}

.footer-credit a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .nav-links a { font-size: 0.75rem; }
  .hero { padding: 7rem 1.5rem 5rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar-card { padding: 2.5rem 2rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 3rem; }
  .manifesto { padding: 5rem 1.5rem; }
  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.8rem; }
  .nav-links { gap: 1rem; }
}

/* ===== COOKIE CONSENT BANNER ===== */
.rl-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--ink);
  color: var(--paper);
  padding: 1.25rem 2rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  animation: rlConsentSlideUp 0.3s ease;
}

.rl-consent-banner.rl-consent-hidden {
  animation: rlConsentSlideDown 0.3s ease forwards;
}

@keyframes rlConsentSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes rlConsentSlideDown {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

.rl-consent-content {
  max-width: 900px;
  margin: 0 auto;
}

.rl-consent-content p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: rgba(248, 246, 241, 0.85);
}

.rl-consent-content p strong {
  color: var(--paper);
  font-size: 0.95rem;
}

.rl-consent-content a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rl-consent-content a:hover { color: var(--paper); }

.rl-consent-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.rl-consent-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.rl-consent-accept {
  background: var(--paper);
  color: var(--ink);
}

.rl-consent-accept:hover {
  background: white;
  transform: translateY(-1px);
}

.rl-consent-manage {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(248, 246, 241, 0.3);
}

.rl-consent-manage:hover { border-color: var(--paper); }

.rl-consent-toggle {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(248, 246, 241, 0.1);
  font-size: 0.88rem;
  cursor: pointer;
}

.rl-consent-toggle input {
  margin-right: 0.5rem;
  accent-color: var(--accent);
}

.rl-consent-toggle span { color: rgba(248, 246, 241, 0.85); }

.rl-consent-desc {
  display: block;
  font-size: 0.78rem;
  color: rgba(248, 246, 241, 0.5);
  margin-top: 0.2rem;
  padding-left: 1.5rem;
}
