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

:root {
  --ink:       #171614;
  --paper:     #f4f1ea;
  --warm-mid:  #e6e2d8;
  --accent:    #b85733;
  --accent-lt: #c96f4f;
  --muted:     #5e5950;
  --rule:      #cdc8bf;

  /* derived */
  --ink-dark:  #0e0d0c;
  --paper-dark:#ede9e0;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --mono:  'DM Mono', monospace;

  --max: 920px;
  --pad: clamp(1.5rem, 5vw, 3.5rem);
}

html { scroll-behavior: smooth; }

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

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--pad);
  background: rgba(244,241,234,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--rule); }

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

.nav-links { display: flex; gap: 2.25rem; list-style: none; }
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

/* ── MOBILE MENU ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 201;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23,22,20,0.45);
  z-index: 150;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; }

/* ── SHARED ── */
.section-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem var(--pad);
}

.rule-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.rule-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
h2 em { font-style: italic; font-weight: 400; color: var(--accent); }

/* ── HERO ── */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 5rem;
}

/* warm glow */
#hero::before {
  content: '';
  position: absolute;
  top: 10%; right: -20%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(184,87,51,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s 0.2s ease forwards;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink-dark);
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.8s 0.35s ease forwards;
}
h1 em { font-style: italic; font-weight: 400; color: var(--accent); }

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.85;
  margin-bottom: 2.75rem;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s 0.5s ease forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.85rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  opacity: 0;
  animation: fadeUp 0.8s 0.65s ease forwards;
}
.hero-cta:hover { background: var(--accent); transform: translateY(-2px); }
.arrow { transition: transform 0.2s; }
.hero-cta:hover .arrow { transform: translateX(3px); }

.hero-stats {
  border-left: 1px solid var(--rule);
  padding-left: 3.5rem;
  opacity: 0;
  animation: fadeIn 1s 0.9s ease forwards;
}

.hero-stat { margin-bottom: 2.75rem; }
.hero-stat:last-child { margin-bottom: 0; }

.stat-num {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--ink-dark);
  line-height: 1;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}

/* ── ABOUT ── */
#about { border-top: 1px solid var(--rule); }

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5rem;
  align-items: start;
}

.about-body p {
  font-size: 1rem;
  color: #4a4640;
  line-height: 1.9;
  margin-bottom: 1.3rem;
  max-width: 54ch;
}
.about-body p strong { font-weight: 500; color: var(--ink); }

.meta-block {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule);
}
.meta-block:first-child { border-top: 1px solid var(--rule); }
.meta-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.meta-value { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }

/* ── SERVICES ── */
#services {
  background: var(--ink-dark);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
#services .rule-label { color: var(--accent-lt); }
#services .rule-label::after { background: #2a2724; }
#services h2 { color: var(--paper); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #2a2724;
  margin-top: 3rem;
}

.service-card {
  padding: 2.5rem;
  border-right: 1px solid #2a2724;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: #1a1714; }
.service-card:last-child { border-right: none; }

.service-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--accent-lt);
  margin-bottom: 1.5rem;
}
.service-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.service-body { font-size: 0.83rem; color: #9e9890; line-height: 1.72; }

/* ── PROOF ── */
#proof { border-top: 1px solid var(--rule); }

.proof-intro {
  font-size: 1rem;
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.85;
  margin-bottom: 3rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
}

.proof-card {
  background: var(--paper);
  padding: 2.75rem;
  position: relative;
  transition: background 0.2s;
}
.proof-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.proof-card:hover { background: var(--warm-mid); }
.proof-card:hover::after { opacity: 1; }

.proof-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.proof-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.proof-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.72; }
.proof-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}
.proof-link:hover { gap: 0.65rem; }

/* ── WRITING ── */
#writing { border-top: 1px solid var(--rule); }

.writing-intro {
  font-size: 1rem;
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.85;
  margin-bottom: 3rem;
}

.posts-list { list-style: none; }

.post-item {
  display: grid;
  grid-template-columns: 7rem 1fr 1.5rem;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding-left 0.2s;
}
.post-item:first-child { border-top: 1px solid var(--rule); }
.post-item:hover { padding-left: 0.5rem; }
.post-item:hover .post-title { color: var(--accent); }
.post-item:hover .post-arrow { color: var(--accent); }

.post-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  transition: color 0.2s;
}
.post-arrow { font-size: 0.82rem; color: var(--rule); transition: color 0.2s; justify-self: end; }

.writing-footer {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.writing-footer a { color: var(--accent); text-decoration: none; }
.writing-footer a:hover { text-decoration: underline; }

/* ── CONTACT ── */
#contact {
  background: var(--ink-dark);
  border-top: 1px solid var(--rule);
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem var(--pad);
  text-align: center;
}
.contact-inner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(184,87,51,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.contact-inner .rule-label { color: var(--accent-lt); justify-content: center; }
.contact-inner .rule-label::after { display: none; }
.contact-inner h2 { color: var(--paper); margin-bottom: 1rem; }

.contact-sub {
  font-size: 0.98rem;
  color: #9e9890;
  max-width: 40ch;
  margin: 0 auto 3rem;
  line-height: 1.85;
}

.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid #3a3530;
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-email:hover { color: var(--accent-lt); border-color: var(--accent-lt); }

.contact-social {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.contact-social a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a5450;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-social a:hover { color: var(--accent-lt); }

/* ── FOOTER ── */
footer {
  padding: 1.5rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 780px) {
  #hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 4rem;
    gap: 3rem;
  }
  .hero-stats {
    border-left: none;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 2rem;
    display: flex;
    gap: 2.5rem;
  }
  .hero-stat { margin-bottom: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-bottom: 1px solid #2a2724; }
  .service-card:last-child { border-bottom: none; }
  .proof-grid { grid-template-columns: 1fr; }
  .post-item { grid-template-columns: 1fr 1.5rem; }
  .post-tag { display: none; }
  footer { flex-direction: column; gap: 0.4rem; text-align: center; }

  /* Mobile nav drawer */
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 72vw; max-width: 280px;
    height: 100vh;
    background: var(--paper);
    border-left: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 2rem 2rem;
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 0.8rem; }
}
