/* ============================================================
   Chrysalis Consult — shared styles
   Deep ink + cream + brass. Editorial, intimate, courageous.
   ============================================================ */

:root {
  /* Palette */
  --ink: #0E1A2B;          /* deep navy/ink */
  --ink-2: #182742;         /* lifted ink */
  --ink-3: #25364F;         /* surface on dark */
  --cream: #F4ECDD;         /* warm cream */
  --cream-2: #EADFC8;       /* deeper cream */
  --bone: #FBF7F0;          /* lightest */
  --brass: #C9A66B;         /* brass gold */
  --brass-deep: #A78544;    /* deeper brass */
  --copper: #B5654A;        /* warm copper accent */
  --moss: #6B7A5A;          /* quiet sage */
  --line: rgba(14,26,43,0.14);
  --line-on-ink: rgba(244,236,221,0.14);
  --muted: #5C6878;
  --muted-on-ink: rgba(244,236,221,0.62);

  /* Type */
  --serif: "Cormorant Garamond", "Tiempos", "Canela", Georgia, serif;
  --sans:  "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --d-section-y: 160px;
  --d-gutter:    96px;
  --d-stack-lg:  72px;
  --d-stack-md:  40px;
  --d-stack-sm:  20px;

  /* Type scale */
  --t-display: clamp(56px, 8vw, 132px);
  --t-h1:      clamp(44px, 5.4vw, 88px);
  --t-h2:      clamp(36px, 3.8vw, 60px);
  --t-h3:      clamp(24px, 2.2vw, 32px);
  --t-lede:    clamp(20px, 1.5vw, 24px);
  --t-body:    17px;
  --t-small:   14px;
  --t-eyebrow: 12px;
}

[data-density="tight"] {
  --d-section-y: 96px;
  --d-gutter:    72px;
  --d-stack-lg:  44px;
  --d-stack-md:  28px;
  --d-stack-sm:  14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--brass); color: var(--ink); }

/* ----- Type primitives ----- */
.serif    { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 400; }
.sans     { font-family: var(--sans); }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.eyebrow.on-ink { color: var(--brass); }

.display {
  font-family: var(--serif);
  font-size: var(--t-display);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0;
}
.h1 { font-family: var(--serif); font-size: var(--t-h1); line-height: 1.02; letter-spacing: -0.022em; font-weight: 400; margin: 0; }
.h2 { font-family: var(--serif); font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.018em; font-weight: 400; margin: 0; }
.h3 { font-family: var(--serif); font-size: var(--t-h3); line-height: 1.2;  letter-spacing: -0.012em; font-weight: 500; margin: 0; }

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-lede);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
}

p { text-wrap: pretty; }

.small { font-size: var(--t-small); color: var(--muted); }

/* ----- Layout ----- */
.page { min-height: 100vh; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--d-gutter);
}

.section { padding: var(--d-section-y) 0; }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink p { color: var(--cream); }
.section--ink .small { color: var(--muted-on-ink); }
.section--cream { background: var(--cream); }
.section--bone { background: var(--bone); }

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.divider.on-ink { background: var(--line-on-ink); }

/* ----- Nav ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--d-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244,236,221,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
}
.nav.on-ink {
  background: rgba(14,26,43,0.78);
  color: var(--cream);
  border-bottom-color: var(--line-on-ink);
}

.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.nav__brand .mark {
  font-style: italic;
  font-weight: 500;
}
.nav__brand .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
  display: inline-block;
  transform: translateY(-3px);
}

.nav__links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  opacity: 0.78;
  transition: opacity 200ms ease;
}
.nav__links a:hover { opacity: 1; }
.nav__links a[aria-current="page"] {
  opacity: 1;
}
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--brass);
}

.nav__cta {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 200ms ease, color 200ms ease;
}
.nav.on-ink .nav__cta { border-color: var(--cream); }
.nav__cta:hover { background: var(--ink); color: var(--cream); }
.nav.on-ink .nav__cta:hover { background: var(--cream); color: var(--ink); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
  font-family: var(--sans);
  font-weight: 500;
}
.btn:hover { transform: translateY(-1px); }

.btn--brass {
  background: var(--brass);
  color: var(--ink);
}
.btn--brass:hover { background: var(--brass-deep); color: var(--cream); }

.btn--ink {
  background: var(--ink);
  color: var(--cream);
}
.btn--ink:hover { background: var(--ink-2); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.btn--ghost-cream {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn--ghost-cream:hover { background: var(--cream); color: var(--ink); }

.arrow {
  display: inline-block;
  transition: transform 220ms ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ----- Eyebrow line ----- */
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--d-stack-sm);
}
.eyebrow-row .rule {
  flex: 0 0 36px;
  height: 1px;
  background: var(--brass);
}

/* ----- Footer ----- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 120px var(--d-gutter) 56px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line-on-ink);
}
.footer__brand .mark {
  font-family: var(--serif);
  font-size: 36px;
  font-style: italic;
  margin-bottom: 16px;
  display: block;
}
.footer__brand p {
  color: var(--muted-on-ink);
  font-size: 15px;
  max-width: 320px;
}
.footer__col h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: var(--cream); opacity: 0.78; font-size: 15px; transition: opacity 200ms; }
.footer__col a:hover { opacity: 1; }
.footer__bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted-on-ink);
}

/* ----- Quote / pull quote ----- */
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ----- Photo placeholders ----- */
.photo {
  position: relative;
  background: linear-gradient(140deg, var(--ink-2), var(--ink));
  overflow: hidden;
  border-radius: 2px;
}
.photo--cream { background: linear-gradient(140deg, var(--cream-2), var(--cream)); }
.photo--brass { background: linear-gradient(140deg, var(--brass), var(--brass-deep)); }

.photo::before {
  /* subtle film grain */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 1px;
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
.photo__caption {
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,236,221,0.62);
  z-index: 2;
}
.photo--cream .photo__caption { color: rgba(14,26,43,0.55); }

.photo svg.glyph {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.18;
}

/* ----- Reveal on scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  :root {
    --d-section-y: 96px;
    --d-gutter: 28px;
  }
  .nav { padding: 16px 28px; }
  .nav__links { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
