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

:root {
  --ink: #1c120d;
  --ink-soft: #5d4030;
  --ink-muted: #9a7963;
  --cream: #f6efe7;
  --cream-alt: #fffaf5;
  --accent: #8f5e3b;
  --accent-deep: #5d4030;
  --gold: #c99557;
  --gold-soft: #efd5ad;
  --border: #e4d3c2;
  --border-soft: rgba(228, 211, 194, 0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(246, 239, 231, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.page-hero {
  padding: 140px 40px 80px;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 24px;
}

.page-title em {
  font-style: italic;
  color: var(--accent);
}

.page-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 620px;
}

.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 40px 100px;
  position: relative;
  z-index: 1;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 60px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.section {
  margin-bottom: 64px;
}

.section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.2;
}

p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.8;
  text-align: justify;
}

p:last-child {
  margin-bottom: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.value-card {
  background: var(--cream-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 22px;
}

.value-num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 10px;
}

.value-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.value-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--cream-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.cta-block {
  background: linear-gradient(135deg, #1f130d, #2d1a10);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 50% at 80% -10%,
    rgba(201, 149, 87, 0.25) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
  opacity: 0.75;
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #fdf8f1;
  margin-bottom: 14px;
  line-height: 1.2;
}

.cta-sub {
  font-size: 15px;
  color: rgba(253, 248, 241, 0.65);
  margin-bottom: 28px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-soft);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cta-btn:hover {
  background: #fff;
  transform: translateY(-2px);
}

footer {
  position: relative;
  z-index: 1;
  padding: 32px 40px 32px;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  background: #f6efe7;
}

.footer-nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-nav-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-nav-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.6;
  width: 100%;
  margin-bottom: 2px;
}

.footer-nav-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.2px;
}

.footer-nav-link:hover {
  color: var(--accent);
}

.footer-legal-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  opacity: 0.7;
  transition:
    opacity 0.2s,
    color 0.2s;
}

.footer-legal-link:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-copy {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.5px;
  font-weight: 300;
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 40px;
  padding-top: 24px;
  padding-bottom: 16px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy-center {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-wordmark-sm {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.social-row-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-row-inline .social-link {
  width: 38px;
  height: 38px;
}
.social-row-inline .social-link svg {
  width: 17px;
  height: 17px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s;
  color: var(--ink-muted);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.scroll-top {
  position: fixed;
  bottom: 72px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-deep);
  color: #fff9f1;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(28, 18, 13, 0.22);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s,
    transform 0.3s;
  pointer-events: none;
  z-index: 200;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--accent);
}

@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }
  body::before {
    opacity: 0.28;
  }
  nav {
    background: rgba(246, 239, 231, 0.97);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .nav-links {
    display: none;
  }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(246, 239, 231, 0.92);
    padding: 20px 24px;
  }
  .nav-hamburger {
    display: flex;
  }
  .page-hero,
  .content {
    padding-left: 24px;
    padding-right: 24px;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    grid-template-columns: 1fr;
  }
  .cta-block {
    padding: 36px 24px;
  }
  footer {
    padding: 32px 24px;
  }
  .footer-copy {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  body::before {
    opacity: 0.22;
  }
  nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(246, 239, 231, 0.98);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f0e8de;
    --ink-soft: #c9b8a8;
    --ink-muted: #9a8778;
    --cream: #1a110a;
    --cream-alt: #211509;
    --accent: #c99557;
    --border: #3a2518;
    --border-soft: rgba(58, 37, 24, 0.6);
  }

  nav {
    background: rgba(26, 17, 10, 0.92);
  }
  footer {
    background: var(--cream);
  }
}
