:root {
  --linen:     #f2ede6;
  --parchment: #e8e0d2;
  --bone:      #d4c8b4;
  --dust:      #7a6e60;
  --ash:       #4a4238;
  --ink:       #2a2520;
  --ink-soft:  #3a3028;
  --blue-dust: #9eb5c4;
  --blue-pale: #c8d8e2;
  --rose-dust: #c4a89a;
  --ochre:     #b8965a;
  --ochre-dim: rgba(184,150,90,0.12);
  --white:     #faf8f4;
  --sans: 'polymath', sans-serif;
  --serif: 'polymath', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--linen);
  color: var(--ink);
  font-family: 'polymath', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
  mix-blend-mode: multiply;
}

/* NAV CENTERED — for sub-pages */
.site-nav-centered {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 64px;
  background: linear-gradient(to bottom, rgba(242,237,230,0.97) 60%, transparent);
}
.site-nav-centered .nav-links {
  display: flex; gap: 36px; list-style: none;
}
.site-nav-centered .nav-links a {
  font-family: 'polymath', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}
.site-nav-centered .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--ochre);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.site-nav-centered .nav-links a:hover::after,
.site-nav-centered .nav-links a.active::after { transform: scaleX(1); }
.site-nav-centered .nav-links a:hover,
.site-nav-centered .nav-links a.active { color: var(--ink); }
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 64px;
  background: linear-gradient(to bottom, rgba(242,237,230,0.97) 60%, transparent);
}
.nav-home {
  font-family: 'polymath', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-home:hover { color: var(--ochre); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: 'polymath', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--ochre);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

/* BACK BUTTON */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'polymath', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.3s;
  position: fixed;
  top: 28px;
  left: 64px;
  z-index: 101;
}
.back-btn:hover { color: var(--ochre); }
.back-btn::before { content: '←'; font-size: 15px; }

/* PAGE HEADER */
.page-header {
  padding: 160px 64px 60px;
  border-bottom: 1px solid var(--bone);
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 124px; left: 64px;
  width: 36px; height: 1px;
  background: var(--ochre);
  opacity: 0.6;
}
.page-header::after {
  content: '';
  position: absolute;
  top: 124px; left: 64px;
  width: 1px; height: 36px;
  background: var(--ochre);
  opacity: 0.6;
}
.page-eyebrow {
  font-family: 'polymath', sans-serif;
  font-size: 13px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 20px;
}
.page-title {
  font-family: 'polymath', sans-serif;
  font-weight: 400;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.page-title em { font-style: italic; color: var(--ash); }

/* SECTIONS */
.section {
  padding: 80px 64px;
  border-bottom: 1px solid var(--bone);
}
.section:last-child { border-bottom: none; }

.section-label {
  font-family: 'polymath', sans-serif;
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::after {
  content: '';
  flex: 0 0 36px;
  height: 1px;
  background: var(--ochre);
  opacity: 0.5;
}

/* BODY TEXT */
.body-text {
  font-family: 'polymath', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 600px;
}
.body-text p + p { margin-top: 1.4em; }

/* UTILITIES */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

.placeholder {
  background: var(--parchment);
  border: 1px solid var(--bone);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
.placeholder span {
  font-family: 'polymath', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dust);
}

.tag {
  display: inline-block;
  font-family: 'polymath', sans-serif;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ash);
  border: 1px solid var(--bone);
  padding: 5px 14px;
}

.btn {
  display: inline-block;
  font-family: 'polymath', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--dust);
  padding: 14px 32px;
  text-decoration: none;
  background: transparent;
  transition: border-color 0.3s, background 0.3s;
}
.btn:hover { border-color: var(--ochre); background: var(--ochre-dim); }

/* FORM */
.form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: 'polymath', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--bone);
  color: var(--ink);
  font-family: 'polymath', sans-serif;
  font-weight: 400;
  font-size: 15px;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ochre); }
.field textarea { resize: none; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dust); }
.field select { background: var(--parchment); padding: 12px 8px; border: 1px solid var(--bone); }
.field select option { background: var(--linen); }

/* LIST */
.list-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--bone);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.list-item:first-child { border-top: 1px solid var(--bone); }
.item-title { font-family: 'polymath', sans-serif; font-size: 22px; font-weight: 400; color: var(--ink); }
.item-sub { font-family: 'polymath', sans-serif; font-size: 14px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ash); margin-top: 6px; }
.item-meta { font-family: 'polymath', sans-serif; font-size: 14px; font-style: italic; color: var(--ash); white-space: nowrap; }

/* FOOTER */
.site-footer {
  padding: 36px 64px;
  border-top: 1px solid var(--bone);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--parchment);
}
.footer-home {
  font-family: 'polymath', sans-serif;
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-home:hover { color: var(--ochre); }
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; align-items: center; }
.footer-links a {
  display: flex;
  align-items: center;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--ink); }
.footer-links svg { width: 18px; height: 18px; fill: currentColor; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.85s ease, transform 0.85s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.38s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

@media (max-width: 900px) {
  .site-nav { padding: 22px 28px; }
  .back-btn { left: 28px; }
  .page-header { padding: 120px 28px 60px; }
  .section { padding: 60px 28px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .site-footer { flex-direction: column; gap: 20px; padding: 28px; text-align: center; }
}
@media (max-width: 560px) {
  .three-col { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
