/* D.C. Foote Shared Design System - Used by all subpages */
:root {
  --bone: #f4efe6;
  --paper: #faf7f1;
  --ink: #0f0f0e;
  --ink-2: #1a1a18;
  --stone: #8a8075;
  --brass: #b8935a;
  --brass-dark: #9a7a45;
  --blueprint: #1e3a5f;
  --sage: #6b7a5a;
  --line: rgba(15, 15, 14, 0.12);
  --line-light: rgba(15, 15, 14, 0.06);

  --f-display: 'Fraunces', Georgia, serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', monospace;
}

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

html {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  cursor: none;
}

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

.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--brass);
  border: 1px solid rgba(15, 15, 14, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), height 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s;
  box-shadow: 0 0 0 1px rgba(244, 239, 230, 0.35), 0 0 12px rgba(184, 147, 90, 0.35);
}
.cursor.big { width: 14px; height: 14px; background: var(--brass); box-shadow: 0 0 0 2px rgba(244, 239, 230, 0.5), 0 0 24px rgba(184, 147, 90, 0.6); }
.cursor-ring {
  position: fixed;
  width: 28px; height: 28px;
  border: 1.5px solid rgba(184, 147, 90, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1), height 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, border-width 0.35s;
  box-shadow: 0 0 0 1px rgba(15, 15, 14, 0.25);
}
.cursor-ring.big { width: 40px; height: 40px; border-color: var(--brass); border-width: 2px; }
.cursor-trail {
  position: fixed;
  width: 4px; height: 4px;
  background: var(--brass);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  opacity: 0;
}

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
em { font-style: italic; color: var(--brass); font-weight: 300; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--stone);
}

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--brass);
  z-index: 9997;
  width: 0;
  transition: width 0.1s;
}

/* NAV */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  color: var(--bone);
  background: linear-gradient(180deg, rgba(15,15,14,0.85) 0%, rgba(15,15,14,0.45) 70%, rgba(15,15,14,0) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
nav.site-nav .logo-mark {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: inherit;
}
nav.site-nav .logo-mark span { color: var(--brass); }

nav.site-nav ul {
  display: flex;
  list-style: none;
  gap: 44px;
}
nav.site-nav ul a {
  color: inherit;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}
nav.site-nav ul a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
nav.site-nav ul a:hover::after { width: 100%; }

nav.site-nav .cta-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: inherit;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
nav.site-nav .cta-nav:hover { background: var(--brass); border-color: var(--brass); color: var(--bone); }

/* PAGE HERO */
.page-hero {
  min-height: 80vh;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 160px 40px 100px;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.page-hero-bg img {
  position: absolute;
  width: 100%; height: 120%;
  top: -10%;
  object-fit: cover;
  opacity: 0.55;
  filter: contrast(1.08) saturate(1.05);
  will-change: transform;
}
.page-hero-grid {
  position: absolute;
  inset: 0; z-index: 2;
  background-image:
    linear-gradient(to right, rgba(244,239,230,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,239,230,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.page-hero-vignette {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(180deg, rgba(15,15,14,0.7) 0%, rgba(15,15,14,0.1) 30%, rgba(15,15,14,0.15) 60%, rgba(15,15,14,0.85) 100%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
.page-hero .breadcrumb {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.55);
  margin-bottom: 32px;
}
.page-hero .breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.page-hero .breadcrumb a:hover { color: var(--brass); }
.page-hero .breadcrumb .sep { margin: 0 12px; color: rgba(244,239,230,0.3); }

.page-hero h1 {
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  max-width: 1100px;
}
.page-hero .subtitle {
  font-size: 1.2rem;
  line-height: 1.5;
  color: rgba(244,239,230,0.8);
  max-width: 620px;
  margin-bottom: 32px;
  font-weight: 300;
}
.page-hero .hero-meta-row {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(244,239,230,0.15);
  flex-wrap: wrap;
}
.page-hero .hero-meta-row .stat {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.55);
}
.page-hero .hero-meta-row .stat strong {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--brass);
  display: block;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  text-transform: none;
}

/* PAGE SECTIONS */
.section {
  padding: 140px 40px;
  max-width: 1440px;
  margin: 0 auto;
}
.section-dark {
  background: var(--ink);
  color: var(--bone);
  padding: 140px 40px;
}
.section-dark .inner,
.section-paper .inner {
  max-width: 1440px;
  margin: 0 auto;
}
.section-paper {
  background: var(--paper);
  padding: 140px 40px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.two-col-sticky .left { position: sticky; top: 120px; }

.h-section {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-2);
  font-weight: 300;
  margin-bottom: 24px;
}
.lead:first-of-type:first-letter {
  font-family: var(--f-display);
  font-size: 5rem;
  float: left;
  line-height: 0.8;
  margin: 8px 16px -8px 0;
  font-weight: 300;
  color: var(--brass);
}

/* FEATURE CARDS */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 80px;
}
.feature-card {
  padding: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brass);
  box-shadow: 0 30px 60px rgba(15,15,14,0.08);
}
.feature-card .num {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* IMAGE BLOCKS */
.image-full {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  background: var(--ink-2);
}
.image-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 60px 0;
}
.image-split img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--ink-2);
}

/* CTA BLOCK */
.cta-block {
  background: var(--ink);
  color: var(--bone);
  padding: 100px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(184,147,90,0.15) 0%, transparent 70%);
}
.cta-block > * { position: relative; z-index: 2; }
.cta-block h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.cta-block p {
  color: rgba(244,239,230,0.75);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.cta-btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 36px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta-btn.primary {
  background: var(--brass);
  color: var(--ink);
  border: 2px solid var(--brass);
  font-weight: 600;
}
.cta-btn.primary:hover { background: var(--bone); border-color: var(--bone); }
.cta-btn.ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(244,239,230,0.3);
}
.cta-btn.ghost:hover { background: rgba(244,239,230,0.1); border-color: var(--bone); }

/* RELATED PAGES GRID */
.related {
  padding: 120px 40px;
  background: var(--bone);
}
.related-head {
  max-width: 1440px;
  margin: 0 auto 60px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 40px;
}
.related-head h3 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
}
.related-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.related-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.related-card .img-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--ink-2);
  margin-bottom: 16px;
}
.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.related-card:hover img { transform: scale(1.04); }
.related-card h4 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.related-card .tag {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
}

/* FOOTER */
footer.site-footer {
  background: var(--ink);
  color: rgba(244,239,230,0.5);
  padding: 80px 40px 40px;
  position: relative;
  overflow: hidden;
}
footer.site-footer::before {
  content: 'D·C·FOOTE';
  position: absolute;
  bottom: -40px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 22rem;
  letter-spacing: -0.03em;
  line-height: 0.8;
  color: rgba(184,147,90,0.04);
  white-space: nowrap;
  pointer-events: none;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  position: relative;
  z-index: 2;
  margin-bottom: 60px;
}
.footer-brand h4 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  color: var(--bone);
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.footer-brand h4 span { color: var(--brass); }
.footer-brand p { line-height: 1.6; font-size: 0.9rem; max-width: 320px; }
footer.site-footer h5 {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  font-weight: 500;
  margin-bottom: 24px;
}
footer.site-footer ul { list-style: none; }
footer.site-footer ul li { margin-bottom: 12px; }
footer.site-footer a {
  color: rgba(244,239,230,0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
footer.site-footer a:hover { color: var(--brass); }
.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid rgba(244,239,230,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

/* FADE UP ANIMATION */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 60px; }
  .two-col-sticky .left { position: static; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  nav.site-nav { padding: 16px 20px; }
  nav.site-nav ul { display: none; }
  nav.site-nav .cta-nav { display: none; }
  .mobile-menu-btn { display: flex !important; }
  .page-hero { padding: 130px 20px 60px; min-height: 60vh !important; }
  .page-hero h1 { font-size: clamp(2rem, 8vw, 3rem) !important; }
  .page-hero .subtitle { font-size: 1.02rem !important; }
  .page-hero .breadcrumb { font-size: 0.6rem; margin-bottom: 18px; }
  .page-hero .hero-meta-row { gap: 18px; padding-top: 20px; }
  .page-hero .hero-meta-row .stat { font-size: 0.6rem; }
  .page-hero .hero-meta-row .stat strong { font-size: 1rem; }
  .section, .section-dark, .section-paper, .related { padding: 70px 20px !important; }
  .feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .image-split { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .related-head { flex-direction: column; gap: 16px; align-items: flex-start; }
  .cta-block { padding: 50px 20px; }
  .cta-block h2 { font-size: 1.8rem !important; }
  .two-col { grid-template-columns: 1fr !important; gap: 40px; }
  .h-section { font-size: clamp(1.8rem, 7vw, 2.4rem) !important; }
  .lead { font-size: 1rem !important; }
  .lead:first-of-type:first-letter { font-size: 3.5rem !important; }
  .cta-btn { padding: 14px 22px; font-size: 0.7rem; }
  .cta-btn-row { flex-direction: column; gap: 12px; }
  .cta-btn-row .cta-btn { width: 100%; justify-content: center; }
}

/* Mobile hamburger - always present, only visible on mobile via breakpoint */
.mobile-menu-btn {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid rgba(244,239,230,0.5);
  color: var(--bone);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  z-index: 101;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: all 0.3s;
}
.mobile-menu-btn.is-open span:nth-child(1) { transform: translateY(2.75px) rotate(45deg); }
.mobile-menu-btn.is-open span:nth-child(2) { transform: translateY(-2.75px) rotate(-45deg); }
.mobile-menu-overlay {
  position: fixed; inset: 0;
  background: var(--ink); z-index: 99;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 24px; padding: 40px;
  transform: translateY(-100%); opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
  pointer-events: none;
}
.mobile-menu-overlay.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu-overlay a {
  font-family: var(--f-display);
  font-size: 2rem; color: var(--bone);
  text-decoration: none; font-weight: 300;
  letter-spacing: -0.02em;
}
.mobile-menu-overlay a:hover { color: var(--brass); }
.mobile-menu-overlay .m-cta {
  font-family: var(--f-mono); font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 32px; background: var(--brass); color: var(--ink);
  margin-top: 20px;
}
