/* =====================================================================
   ANACY — STYLESHEET
   Editorial monochrome. No framework. Two type families.
   ===================================================================== */

/* ---------- 1. TOKENS ----------------------------------------------- */

:root {
  /* Palette */
  --ink:    #0A0A0A;
  --paper:  #FAFAF8;
  --char:   #1F1F1F;
  --mute:   #6B6B6B;
  --rule:   #E5E3DE;
  --gold:   #B8985A;

  /* Contextual aliases (overridden in dark sections) */
  --bg:        var(--paper);
  --fg:        var(--ink);
  --fg-mute:   var(--mute);
  --line:      var(--rule);
  --accent:    var(--gold);

  /* Typography */
  --serif: "Fraunces", "Source Serif Pro", "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;

  /* Sizing */
  --container:        1200px;
  --container-narrow: 880px;
  --gutter:           clamp(1.5rem, 5vw, 3rem);
  --section-y:        clamp(5rem, 12vw, 10rem);

  /* Motion */
  --ease:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:     720ms;
}

/* ---------- 2. RESET ------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

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


/* ---------- 3. UTILITIES & PRIMITIVES -------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { inset-inline-start: 0; }

/* ---- Type primitives ---- */

.eyebrow,
.section-eyebrow,
.duo-eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
  margin: 0 0 2.5rem;
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-inline-end: 0.875rem;
  opacity: 0.7;
}

.lede {
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg-mute);
  max-width: 56ch;
  margin: 0 0 3.5rem;
}

.section-sub {
  font-family: var(--sans);
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.5;
  color: var(--fg-mute);
  max-width: 60ch;
  margin: 0 0 4rem;
  font-weight: 400;
}

.section-body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fg-mute);
  max-width: 64ch;
  margin: 3rem 0 1.5rem;
}

/* ---- Links ---- */

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  position: relative;
  padding-bottom: 0.25rem;
  transition: color 240ms var(--ease);
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 360ms var(--ease);
}
.link-arrow:hover::after { transform: scaleX(0.6); transform-origin: right center; }
.link-arrow span { display: inline-block; transition: transform 320ms var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow:hover { color: var(--accent); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg);
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--fg);
  border-radius: 999px;
  transition: background-color 220ms var(--ease), color 220ms var(--ease);
  white-space: nowrap;
}
.btn-ghost:hover { background: var(--fg); color: var(--bg); }


/* ---------- 4. HEADER ----------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 1.125rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  transition: padding-block 320ms var(--ease);
}

/* Slightly more compact on scroll, but background stays solid at all times
   so header text never disappears over dark sections. */
.site-header[data-scrolled="true"] {
  padding-block: 0.75rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-svg {
  height: 32px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .logo-svg { height: 36px; }
}

.site-nav { display: none; }
@media (min-width: 980px) {
  .site-nav { display: block; margin-inline-start: auto; margin-inline-end: 1.75rem; }
  .site-nav ul {
    display: flex;
    gap: 2rem;
  }
  .site-nav a {
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding-block: 0.25rem;
  }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 320ms var(--ease);
  }
  .site-nav a:hover::after { transform: scaleX(1); }
  .site-nav a:hover { color: var(--accent); }
}

/* ---- Language switcher ---- */

.lang-switch {
  display: none;
}
@media (min-width: 980px) {
  .lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-inline-end: 1.5rem;
  }
  .lang-switch a {
    color: var(--mute);
    padding: 0.25rem 0.125rem;
    transition: color 220ms var(--ease);
    position: relative;
  }
  .lang-switch a:hover { color: var(--ink); }
  .lang-switch a[aria-current="page"] { color: var(--ink); }
  .lang-switch .lang-sep {
    color: var(--rule);
    user-select: none;
  }
}

.btn-ghost { display: none; }
@media (min-width: 980px) {
  .btn-ghost {
    display: inline-flex;
    color: var(--ink);
    border-color: var(--ink);
  }
  .btn-ghost:hover { background: var(--ink); color: var(--paper); }
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  align-items: flex-end;
  margin-inline-start: auto;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 320ms var(--ease), opacity 220ms var(--ease), width 320ms var(--ease);
}
.menu-toggle span:last-child { width: 14px; }
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
  width: 22px;
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
  width: 22px;
}
@media (min-width: 980px) {
  .menu-toggle { display: none; }
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem var(--gutter) 2rem;
  z-index: 99;
}
.mobile-nav ul.mobile-primary {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.mobile-nav ul.mobile-primary a {
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-block;
}
.mobile-nav .mobile-lang {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mobile-nav .mobile-lang a {
  color: var(--mute);
  padding: 0.25rem 0.125rem;
}
.mobile-nav .mobile-lang a[aria-current="page"] { color: var(--ink); }
.mobile-nav .mobile-lang .lang-sep { color: var(--rule); user-select: none; }


/* ---------- 5. HERO -------------------------------------------------- */

.hero {
  padding-top: clamp(7rem, 16vh, 11rem);
  padding-bottom: var(--section-y);
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero .container { width: 100%; }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.625rem, 8.4vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0.5rem 0 2rem;
  color: var(--fg);
  max-width: 18ch;
  font-variation-settings: "opsz" 144;
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--fg-mute);
  max-width: 38ch;
  margin: 0 0 3.5rem;
  font-weight: 400;
}

.hero-cta { margin: 0; }


/* ---------- 6. SECTIONS --------------------------------------------- */

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section + .section { border-top: 1px solid var(--rule); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0 0 2rem;
  color: var(--fg);
  max-width: 22ch;
  font-variation-settings: "opsz" 96;
}

.section-title-xl {
  font-size: clamp(2.75rem, 8vw, 6rem);
  letter-spacing: -0.028em;
  line-height: 0.98;
}

.section-tight {
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}

/* ---- Dark section variants ---- */

.section-dark {
  background: var(--ink);
  --bg:        var(--ink);
  --fg:        var(--paper);
  --fg-mute:   #9a9a96;
  --line:      #2a2a2a;
  color: var(--paper);
  border-top: 0 !important;
}

.section-dark + .section { border-top: 0; }
.section + .section-dark { border-top: 0; }

.section-charcoal {
  background: var(--char);
  --bg:        var(--char);
  --fg:        var(--paper);
  --fg-mute:   #9a9a96;
  --line:      #2f2f2f;
  color: var(--paper);
  border-top: 0 !important;
}
.section + .section-charcoal,
.section-charcoal + .section { border-top: 0; }


/* ---------- 7. WHAT WE DO (duo cards) ------------------------------- */

.duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  margin-top: 4rem;
  border-block: 1px solid var(--line);
}

@media (min-width: 820px) {
  .duo { grid-template-columns: 1fr 1fr; }
}

.duo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3.5rem;
  background: var(--bg);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem);
  transition: background-color 360ms var(--ease);
  min-height: 280px;
}
.duo-card:hover { background: #F3F0EA; }
.duo-card .duo-eyebrow { margin: 0 0 1.25rem; color: var(--fg-mute); }
.duo-card .duo-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0;
}


/* ---------- 8. THREE-COLUMN BLOCKS ---------------------------------- */

.cols-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 4rem 0 0;
  border-top: 1px solid var(--line);
}

.col {
  padding: 2.25rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 820px) {
  .cols-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-bottom: 1px solid var(--line);
  }
  .col {
    padding: 2.5rem clamp(1rem, 2.5vw, 2rem) 2.5rem 0;
    border-bottom: 0;
  }
  .col + .col {
    border-left: 1px solid var(--line);
    padding-left: clamp(1rem, 2.5vw, 2rem);
  }
}

.col-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--fg-mute);
  margin: 0 0 1.5rem;
  letter-spacing: 0.04em;
}

.col-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0 0 1rem;
  color: var(--fg);
}

.col-body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg-mute);
  margin: 0;
}


/* ---------- 9. PRICING --------------------------------------------- */

.pricing {
  font-family: var(--sans);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--fg-mute);
  margin: 1rem 0 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 64ch;
}
.pricing strong {
  color: var(--fg);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}


/* ---------- 10. PRINCIPLES (our approach) -------------------------- */

.principles {
  margin: 4.5rem 0 0;
  border-top: 1px solid var(--line);
}

.principle {
  display: grid;
  grid-template-columns: 4rem 1fr;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
}

.principle-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  padding-top: 0.5em;
}

.principle-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--fg);
}

@media (min-width: 768px) {
  .principle { grid-template-columns: 6rem 1fr; }
}


/* ---------- 11. CONTACT -------------------------------------------- */

.section-contact { padding-block: clamp(6rem, 14vw, 11rem); }

.contact-email {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 6.5vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.contact-email a {
  color: var(--fg);
  position: relative;
  display: inline-block;
  padding-bottom: 0.1em;
  border-bottom: 1px solid var(--line);
  transition: color 240ms var(--ease), border-color 240ms var(--ease);
}
.contact-email a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}


/* ---------- 12. FOOTER --------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 4rem;
  border-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer-brand .logo-footer { color: var(--paper); }
.footer-tag {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: #9a9a96;
  margin: 1.25rem 0 0;
  max-width: 36ch;
  line-height: 1.55;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-nav a {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: #9a9a96;
  transition: color 220ms var(--ease);
}
.footer-nav a:hover { color: var(--paper); }

.footer-meta p {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: #9a9a96;
  margin: 0 0 1rem;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-legal a {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: #9a9a96;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 220ms var(--ease), color 220ms var(--ease);
}
.footer-legal a:hover {
  color: var(--paper);
  text-decoration-color: currentColor;
}


/* ---------- 13. REVEAL ANIMATIONS ----------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}


/* ---------- 14. FOCUS STATES (accessibility) ----------------------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.section-dark a:focus-visible,
.section-charcoal a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--gold);
}


/* ---------- 15. PRINT ---------------------------------------------- */

@media print {
  .site-header, .site-footer, .menu-toggle, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 2rem; break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
