@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600&display=swap');

/* ─── Variables ─── */
:root {
  --bg:        #f4f3f0;
  --bg-alt:    #eceae5;
  --surface:   #ffffff;
  --ink:       #111110;
  --ink-2:     #555450;
  --ink-3:     #999793;
  --rule:      #e0ddd8;
  --red:       #c0392b;

  --nav-height: 68px;
  --radius-sm: 6px;
  --radius:    12px;
  --transition: 0.2s ease;
  --max-width: 1140px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Geist', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ─── Container ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }

/* ─── Type helpers ─── */
.serif { font-family: 'Instrument Serif', serif; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  border-radius: 100px;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-dark { background: var(--ink); color: var(--bg); border: 1.5px solid var(--ink); }
.btn-dark:hover { background: #2a2a28; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--rule); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--bg); border: 1.5px solid rgba(244,243,240,0.2); }
.btn-ghost-light:hover { border-color: rgba(244,243,240,0.6); }

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), border-bottom var(--transition);
}
.nav.scrolled {
  background: rgba(244,243,240,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { font-family: 'Instrument Serif', serif; font-size: 1.5rem; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.875rem; font-weight: 400; color: var(--ink-2); transition: color var(--transition); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 9px 20px; font-size: 0.82rem; }

/* Hero nav state — logo light */
.nav.hero-nav .nav-logo { color: var(--bg); }
.nav.hero-nav .nav-links a { color: rgba(244,243,240,0.65); }
.nav.hero-nav .nav-links a:hover { color: var(--bg); }
.nav.hero-nav .btn-dark { background: rgba(244,243,240,0.12); color: var(--bg); border-color: rgba(244,243,240,0.2); }
.nav.hero-nav .btn-dark:hover { background: rgba(244,243,240,0.2); }
.nav.hero-nav .hamburger span { background: var(--bg); }
.nav.scrolled.hero-nav .nav-logo { color: var(--ink); }
.nav.scrolled.hero-nav .nav-links a { color: var(--ink-2); }
.nav.scrolled.hero-nav .nav-links a:hover { color: var(--ink); }
.nav.scrolled.hero-nav .btn-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nav.scrolled.hero-nav .hamburger span { background: var(--ink); }

/* ─── Hamburger ─── */
.hamburger { display: none; flex-direction: column; gap: 5px; width: 26px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: all 0.3s ease; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Mobile overlay ─── */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 0 32px; gap: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a { font-family: 'Instrument Serif', serif; font-size: 3rem; color: var(--ink); letter-spacing: -0.02em; transition: color var(--transition); }
.mobile-menu a:hover { color: var(--ink-2); }
.mobile-menu .btn-dark { font-family: 'Geist', sans-serif; font-size: 0.9rem; margin-top: 12px; border-radius: 100px; }

/* ─── Footer ─── */
.footer { background: var(--ink); color: var(--bg); padding: 56px 0 36px; }
.footer-inner { display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-logo { font-family: 'Instrument Serif', serif; font-size: 1.4rem; color: var(--bg); margin-bottom: 6px; }
.footer-tagline { font-size: 0.82rem; color: rgba(244,243,240,0.35); font-style: italic; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 0.82rem; color: rgba(244,243,240,0.45); transition: color var(--transition); }
.footer-links a:hover { color: var(--bg); }
.footer-contact-links { display: flex; gap: 16px; align-items: center; }
.footer-contact-links a { font-size: 0.82rem; color: rgba(244,243,240,0.45); transition: color var(--transition); border-bottom: 1px solid rgba(244,243,240,0.12); padding-bottom: 1px; }
.footer-contact-links a:hover { color: var(--bg); border-color: rgba(244,243,240,0.5); }
.footer-rule { height: 1px; background: rgba(244,243,240,0.08); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 0.78rem; color: rgba(244,243,240,0.28); }

/* ─── Label ─── */
.label { display: inline-block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }

/* ─── Page header ─── */
.page-header { background: var(--ink); padding: calc(var(--nav-height) + 72px) 0 72px; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(244,243,240,0.04), transparent 65%); pointer-events: none; }
.page-header-tag { display: inline-block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244,243,240,0.35); margin-bottom: 20px; }
.page-header h1 { font-family: 'Instrument Serif', serif; font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 400; color: var(--bg); line-height: 1.1; letter-spacing: -0.02em; }
.page-header h1 em { font-style: italic; color: rgba(244,243,240,0.4); }
.page-header p { margin-top: 18px; font-size: 0.95rem; font-weight: 300; color: rgba(244,243,240,0.45); max-width: 440px; line-height: 1.75; }

/* ─── Fade-in ─── */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
