@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Sora:wght@300;400;500;600&family=JetBrains+Mono:wght@300;400&display=swap');

:root {
  --ink:        #181614;
  --dark:       #232019;
  --mid:        #5a5550;
  --muted:      #9a948c;
  --rule:       #ddd8cf;
  --sand:       #f2ede4;
  --cream:      #faf7f2;
  --white:      #ffffff;
  --accent:     #8b6340;
  --accent-2:   #c49a6c;
  --green:      #3a6b4a;
  --red-soft:   #a04040;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Sora', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --max-w: 1180px;
  --pad-x: clamp(1.25rem, 5vw, 3.5rem);
  --section-py: clamp(4.5rem, 9vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

/* grain */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .5;
}

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }
h1  { font-size: clamp(2.6rem, 6vw, 5.2rem); letter-spacing: -.02em; }
h2  { font-size: clamp(1.9rem, 3.5vw, 3rem); letter-spacing: -.015em; }
h3  { font-size: clamp(1.25rem, 2vw, 1.65rem); }
h4  { font-size: 1.05rem; font-weight: 500; }
p   { color: var(--mid); line-height: 1.8; max-width: 62ch; }
p.wide { max-width: 76ch; }
strong { color: var(--ink); }
a   { color: inherit; }

.mono  { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
section { padding: var(--section-py) 0; }
hr.rule { border: none; border-top: 1px solid var(--rule); }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(250,247,242,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad-x);
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.2rem;
  color: var(--ink); text-decoration: none; letter-spacing: .02em;
}
.nav-logo span { color: var(--accent); font-style: italic; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mid); text-decoration: none; transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--ink) !important; color: var(--cream) !important;
  padding: .5rem 1.1rem; border-radius: 2px;
}
.nav-cta:hover { background: var(--accent) !important; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: .25rem; }
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); margin: 5px 0; transition: .3s;
}

/* ── Buttons ── */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: 2px; transition: background .25s, transform .15s, color .2s;
  border: none;
}
.btn-primary {
  background: var(--ink); color: var(--cream);
  padding: .85rem 1.9rem;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--ink);
  padding: .8rem 1.8rem;
  border: 1px solid var(--rule);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  color: var(--mid); border-bottom: 1px solid var(--rule);
  padding-bottom: 2px; border-radius: 0;
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent-2); }

/* ── Cards ── */
.card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 3px; padding: 2.5rem 2rem;
  transition: box-shadow .25s;
}
.card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.card-dark {
  background: var(--dark); border-color: transparent; color: var(--cream);
}

/* ── Dividers / decoration ── */
.section-label {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.section-label::after {
  content: ''; width: 40px; height: 1px; background: var(--accent-2);
}

/* ── Dark section ── */
.section-dark { background: var(--dark); }
.section-dark h2,
.section-dark h3 { color: var(--cream); }
.section-dark .label { color: var(--accent-2); opacity: .75; }
.section-dark p { color: rgba(250,247,242,.6); }

/* ── Sand section ── */
.section-sand { background: var(--sand); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp .7s ease forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .22s; }
.d3 { animation-delay: .34s; } .d4 { animation-delay: .46s; }
.d5 { animation-delay: .58s; }

/* ── Footer ── */
footer {
  background: var(--ink); color: rgba(250,247,242,.4);
  padding: 3rem 0;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 400;
  color: rgba(250,247,242,.6); letter-spacing: .03em;
}
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a {
  color: rgba(250,247,242,.35); text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: rgba(250,247,242,.7); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--cream);
    border-bottom: 1px solid var(--rule); padding: 1.5rem var(--pad-x);
    gap: 1.25rem;
  }
  .nav-burger { display: block; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
