:root {
  --ivory: #faf7f1;
  --ivory-soft: #f0ebe1;
  --charcoal: #1c1a17;
  --charcoal-soft: #353129;
  --warm: #7a5a2e;
  --warm-soft: #a6814f;
  --muted: #807a70;
  --rule: rgba(28, 26, 23, 0.1);
  --rule-strong: rgba(28, 26, 23, 0.16);
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--charcoal);
  color: var(--ivory);
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.4s ease, color 0.4s ease;
}

a:hover {
  border-color: var(--charcoal);
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

header.site {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #f3ecdc;
  border-bottom: 1px solid transparent;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

header.site.scrolled {
  border-color: var(--rule);
  box-shadow: 0 1px 0 rgba(31, 29, 26, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  border: none;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 1;
  min-width: 0;
}

.brand img {
  height: 96px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: 0.01em;
  max-width: 160px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav.links {
  display: flex;
  gap: 32px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
}

nav.links a {
  border: none;
  color: var(--charcoal);
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

nav.links a:hover,
nav.links a.current {
  opacity: 1;
}

.nav-cta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
  border: 1px solid var(--rule-strong);
  padding: 10px 18px;
  white-space: nowrap;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.nav-cta:hover {
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--charcoal);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 220px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse at 70% 40%,
      rgba(176, 138, 85, 0.22),
      transparent 60%
    ),
    radial-gradient(
      ellipse at 20% 80%,
      rgba(31, 29, 26, 0.08),
      transparent 55%
    );
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--muted);
}

h1.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

h1.hero-title em,
h2 em.warm {
  font-style: italic;
  color: var(--warm);
}

.hero-sub {
  max-width: 30em;
  font-size: 19px;
  line-height: 1.7;
  color: var(--charcoal-soft);
  margin: 0 0 36px;
}

.hero-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  padding: 16px 28px;
  border-bottom: 1px solid var(--charcoal);
  transition: background 0.4s ease, color 0.4s ease;
  margin-bottom: 56px;
}

.hero-cta:hover {
  background: var(--charcoal);
  color: #fff;
}

.hero-meta {
  display: flex;
  gap: 28px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta span + span {
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

.hero-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ivory-soft);
}

.hero-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---------- Section base ---------- */

section {
  padding: 160px 0;
  position: relative;
  scroll-margin-top: 80px;
}

section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 1px;
  background: var(--rule-strong);
}

/* Subpages: extra top space since there's no hero pushing content down */
section.page-first {
  padding-top: 220px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--muted);
}

h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 48px;
  max-width: 18em;
}

/* ---------- About / El Círculo (home teaser) ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  align-items: start;
}

.lede {
  font-size: 21px;
  line-height: 1.7;
  max-width: 32em;
  color: var(--charcoal-soft);
}

.about-body p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--charcoal-soft);
}

.about-body p:first-child::first-letter {
  font-size: 3.6em;
  line-height: 0.85;
  float: left;
  padding: 6px 12px 0 0;
  font-weight: 400;
  color: var(--warm);
}

.pullquote {
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  color: var(--charcoal);
  border-left: 1px solid var(--warm);
  padding: 6px 0 6px 24px;
  margin: 40px 0;
}

/* ---------- Experience list (home teaser) ---------- */

.exp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: exp;
}

.exp-list li {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 60px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}

.exp-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.exp-list li::before {
  counter-increment: exp;
  content: counter(exp);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-weight: 400;
}

.exp-list h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  margin: 0;
  line-height: 1.2;
}

.exp-list p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal-soft);
}

/* ---------- Long-form reading column ---------- */

.longform {
  max-width: 36em;
  margin: 0 auto;
}

.longform .eyebrow {
  justify-content: flex-start;
}

.longform h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.15;
  margin: 0 0 56px;
  max-width: none;
}

.longform p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.85;
  color: var(--charcoal-soft);
  margin: 0 0 28px;
}

.longform p.lead {
  font-size: 22px;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 36px;
}

.longform .ornament {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--rule-strong);
  margin: 56px auto;
  border: none;
}

.longform .accent {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.45;
  color: var(--charcoal);
  text-align: center;
  margin: 56px 0;
  padding: 0 12px;
}

.longform .accent::before,
.longform .accent::after {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--warm);
  margin: 0 auto 20px;
}

.longform .accent::after {
  margin: 20px auto 0;
}

.longform .figure {
  margin: 64px 0;
}

.longform .figure img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.08) contrast(0.98);
}

/* ---------- CTA (Membresía) ---------- */

.cta-wrap {
  margin-top: 56px;
  text-align: center;
}

.cta-mail {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  padding: 18px 36px;
  transition: background 0.4s ease, color 0.4s ease;
}

.cta-mail:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

.cta-note {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 18px 0 0;
}

/* ---------- Una noche de CAG (numbered ritual) ---------- */

.ritual-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.8vw, 30px);
  line-height: 1.3;
  color: var(--charcoal);
  text-align: center;
  margin: 0 0 40px;
}

.ritual {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ritual;
  border-top: 1px solid var(--rule);
}

.ritual li {
  counter-increment: ritual;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}

.ritual li::before {
  content: counter(ritual) ".";
  font-family: var(--serif);
  font-size: 20px;
  color: var(--warm);
}

.ritual li span {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  color: var(--charcoal);
}

/* ---------- Feature blocks ---------- */

.features {
  margin-top: 64px;
}

.features .feature {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}

.features .feature:last-child {
  border-bottom: 1px solid var(--rule);
}

.features h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  color: var(--charcoal);
  margin: 0 0 12px;
}

.features p {
  margin: 0;
  font-size: 19px;
  line-height: 1.75;
  color: var(--charcoal-soft);
}

/* ---------- Temas (grid) ---------- */

.themes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.theme {
  border-bottom: 1px solid var(--rule);
  padding: 36px 0;
  display: flex;
  align-items: baseline;
  gap: 32px;
  transition: padding-left 0.5s ease, color 0.5s ease;
}

.theme:nth-child(odd) {
  padding-right: 40px;
  border-right: 1px solid var(--rule);
}

.theme:nth-child(even) {
  padding-left: 40px;
}

.theme:hover {
  color: var(--warm);
}

.theme .num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
  min-width: 32px;
}

.theme .name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.2;
}

.theme .name em {
  font-style: italic;
  color: var(--warm);
  font-weight: 300;
}

/* ---------- Footer ---------- */

footer.site {
  padding: 100px 0 80px;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.footer-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.45;
  color: var(--charcoal);
  margin: 0;
  position: relative;
}

.footer-quote::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--warm);
  margin: 48px auto 0;
  opacity: 0.6;
}

.footer-mark {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.footer-mark img {
  height: 140px;
  width: auto;
  display: block;
  opacity: 0.9;
  transition: opacity 0.5s ease;
}

.footer-mark img:hover {
  opacity: 1;
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  body {
    font-size: 17px;
  }
  .wrap {
    padding: 0 24px;
  }
  .nav {
    padding: 10px 24px;
    gap: 12px;
  }
  .brand {
    gap: 12px;
  }
  .brand img {
    height: 56px;
  }
  .brand-name {
    font-size: 15px;
    white-space: normal;
    line-height: 1.15;
    max-width: 130px;
  }
  .hero {
    padding: 170px 0 80px;
  }
  .nav-right {
    display: none;
  }
  .nav-right.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-top: 1px solid var(--rule);
    padding: 8px 24px 24px;
  }
  .nav-right.open nav.links {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .nav-right.open nav.links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav-right.open .nav-cta {
    margin-top: 18px;
    text-align: center;
  }
  .nav-toggle {
    display: inline-block;
  }
  section {
    padding: 90px 0;
  }
  section.page-first {
    padding-top: 140px;
  }
  .hero {
    min-height: auto;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-figure {
    aspect-ratio: 5 / 4;
    order: -1;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .exp-list li {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 32px 0;
  }
  .themes {
    grid-template-columns: 1fr;
  }
  .theme:nth-child(odd),
  .theme:nth-child(even) {
    padding: 28px 0;
    border-right: none;
  }
  .footer-mark img {
    height: 96px;
  }
}
