/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f1e6;
  --bg-2:      #ece1cb;
  --paper:     #fffdf7;
  --ink:       #201b15;
  --ink-soft:  #3a332a;
  --ink-mute:  #756b5c;
  --accent:    #b8763c;   /* brass / horn amber */
  --accent-2:  #3d4f3a;   /* deep forest green */
  --cream:     #f6f1e6;
  --line:      rgba(32, 27, 21, 0.14);

  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans:  "Inter", ui-sans-serif, system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 78px;
}

@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--paper); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.4rem;
}
@media (min-width: 720px) { .container { padding-inline: 2.4rem; } }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0;
}

.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.kicker::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-top: .6rem; }
.section-head h2 em { font-style: italic; color: var(--accent); }

.eyebrow-line {
  border-top: 1px solid var(--line);
  padding-top: 2.4rem;
}

/* =============================================================
   4. Typography
   ============================================================= */
.hero-title, .page-hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  max-width: 16ch;
}
.hero-title em, .page-hero-title em { font-style: italic; color: var(--accent); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.55;
}

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s var(--ease-out), color .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 4px 14px rgba(32,27,21,0.14), 0 1px 3px rgba(32,27,21,0.1);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(32,27,21,0.22), 0 10px 20px rgba(184,118,60,0.22);
  background: var(--accent-2);
}
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.btn-accent {
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 4px 14px rgba(184,118,60,0.25);
}
.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(184,118,60,0.3);
  background: var(--accent-2);
}

.actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* --- Nav --- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav-inner {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav.is-scrolled {
  background: rgba(246, 241, 230, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-brand {
  font-family: var(--serif); font-style: italic; font-size: 1.3rem;
  display: flex; align-items: center; gap: .55rem;
}
.nav-brand img { height: 58px; width: auto; display: block; }
.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; padding: .25rem 0; font-size: .92rem; font-weight: 500;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
@media (min-width: 960px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: grid; place-items: center; width: 42px; height: 42px;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle-bars { position: relative; width: 20px; height: 14px; }
.nav-toggle-bars span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease-soft), opacity .3s;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-mobile[aria-hidden="false"] ~ .nav .nav-toggle-bars span:nth-child(1),
.nav-toggle.is-open .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile nav { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.nav-mobile a { font-family: var(--serif); font-size: 1.8rem; font-style: italic; }

/* --- Cards --- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  transition: transform .55s var(--ease-soft), box-shadow .45s var(--ease-soft), border-color .3s;
}
.has-tilt { transform-style: preserve-3d; }
.card:hover {
  box-shadow: 0 40px 80px -30px rgba(32,27,21,0.22), 0 0 0 1px rgba(184,118,60,0.18);
  border-color: transparent;
}
.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.card p { color: var(--ink-mute); font-size: .96rem; }
.card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.2rem; font-weight: 600; font-size: .9rem; color: var(--accent);
}
.card-link svg { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }
.card:hover .card-link svg { transform: translateX(4px); }

.pillars-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .pillars-grid { grid-template-columns: repeat(3, 1fr); } }
.pillars-grid--2 { max-width: 760px; margin-inline: auto; }
@media (min-width: 720px) { .pillars-grid--2 { grid-template-columns: repeat(2, 1fr); } }

/* --- Sound rings (decorative motif, replaces photography until photos are added) --- */
.sound-rings {
  aspect-ratio: 1;
  display: block;
  color: var(--accent);
}
.sound-rings circle { fill: none; stroke: currentColor; }

.visual-frame {
  position: relative;
  border-radius: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.visual-frame::before {
  content: ""; position: absolute; inset: -20%; z-index: -1;
  background: radial-gradient(50% 50% at 30% 30%, rgba(184,118,60,.16), transparent 65%);
}
.visual-frame img { width: 100%; height: 100%; object-fit: cover; }
.visual-frame.frame-logo img { object-fit: contain; padding: 10%; }
.visual-frame.frame-cover img { object-fit: contain; padding: 5%; }
.visual-frame .sound-rings { width: 46%; opacity: .85; }

/* --- Marquee --- */
.marquee-section { border-block: 1px solid var(--line); overflow: hidden; }
.marquee { overflow: hidden; position: relative; padding-block: 1.4rem; white-space: nowrap; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track {
  display: inline-flex; gap: 2.4rem; white-space: nowrap; will-change: transform;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: var(--ink-soft);
}
.marquee-track + .marquee-track { margin-left: 2.4rem; }
.marquee-track span.dot { color: var(--accent); font-style: normal; }
@keyframes marqueeFallback { to { transform: translateX(-100%); } }

/* --- Podcast embed --- */
.podcast-embed-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(32,27,21,0.25);
}
.podcast-embed-wrap iframe { display: block; width: 100%; }

/* --- Book cover frame --- */
.book-cover-frame {
  aspect-ratio: 3/4;
  max-width: 320px;
}
.book-cover-frame .sound-rings { width: 55%; }

/* --- Forms --- */
.field { position: relative; margin-bottom: 1.2rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 1.3rem 1rem 0.55rem; border: 1px solid var(--line);
  border-radius: 12px; background: var(--paper); color: inherit; font: inherit;
  transition: border-color .3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field label {
  position: absolute; left: 1rem; top: 1.15rem;
  pointer-events: none; transition: all .25s var(--ease-out);
  color: var(--ink-mute); font-size: .95rem;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 0.45rem; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.form-note { font-size: .84rem; color: var(--ink-mute); margin-top: .8rem; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 3.4rem 2.2rem;
}
.footer-grid {
  display: grid; gap: 2.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif); font-style: italic; font-size: 1.5rem; margin-bottom: .6rem; }
.footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1rem; font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: .65rem; }
.footer-contact-link { display: inline-flex; align-items: center; gap: .55rem; }
.footer-contact-link svg { flex-shrink: 0; color: var(--accent); }
.newsletter-form {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: 1.2rem;
}
.newsletter-form input[type="email"] {
  flex: 1 1 180px; min-width: 0;
  padding: .8rem 1.1rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: inherit; font: inherit;
  transition: border-color .3s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--accent); outline: none; }
.newsletter-form .btn { flex-shrink: 0; }
.newsletter-note { font-size: .8rem; color: var(--ink-mute); margin-top: .65rem; }
.newsletter-form-wrap.is-sent .newsletter-form { display: none; }
.newsletter-form-wrap.is-sent .newsletter-note { color: var(--accent); font-weight: 600; }
.newsletter-iframe { display: none; width: 0; height: 0; border: 0; position: absolute; }

.newsletter-band {
  max-width: 620px; margin-inline: auto; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(2.2rem, 5vw, 3.2rem);
}
.newsletter-band .kicker { display: inline-flex; }
.newsletter-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: .8rem 0 1rem; }
.newsletter-band > p:not(.newsletter-note) { color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }
.newsletter-form--large { justify-content: center; max-width: 440px; margin-inline: auto; margin-top: 1.6rem; }
.newsletter-band .newsletter-note { text-align: center; }

.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .82rem; color: var(--ink-mute);
}

/* =============================================================
   6. Sections
   ============================================================= */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; } }
.hero-content { display: flex; flex-direction: column; gap: 1.4rem; }
.hero-content .lede { margin-top: .2rem; }
.hero-actions { margin-top: .6rem; }
.hero-visual { width: 100%; }
.hero-visual .visual-frame { aspect-ratio: 4/5; }

.page-hero {
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 4rem));
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.page-hero .lede { margin-top: 1rem; }

.manifesto-body { max-width: 760px; margin-inline: auto; }
.manifesto-body p { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.5; color: var(--ink-soft); }
.manifesto-body p + p { margin-top: 1.2rem; }

.split-section {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .split-section { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }
.split-section.is-reversed .split-visual { order: -1; }
@media (min-width: 900px) { .split-section.is-reversed .split-visual { order: 2; } }
.split-visual .visual-frame { aspect-ratio: 4/5; }
.split-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1.1rem; }
.split-text p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1rem; }
.split-text .actions { margin-top: 1.6rem; }

.list-plain { display: flex; flex-direction: column; gap: .9rem; margin-top: 1.4rem; }
.list-plain li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink-soft); }
.list-plain li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  margin-top: .55rem; flex-shrink: 0;
}

.cta-band {
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.3fr 0.7fr; align-items: center; } }
.cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.cta-band h2 em { color: var(--accent); font-style: italic; }
.cta-band p { color: rgba(246,241,230,0.72); margin-top: 1rem; max-width: 48ch; }
.cta-band .actions { flex-wrap: wrap; }
.cta-band .btn-ghost { border-color: rgba(246,241,230,0.3); color: var(--cream); }
.cta-band .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.contact-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.contact-direct { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-direct-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .3s, transform .35s var(--ease-soft);
}
.contact-direct-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact-direct-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-direct-item strong { display: block; font-size: 1rem; }
.contact-direct-item span { color: var(--ink-mute); font-size: .88rem; }

/* --- Long-form article (Mi método) --- */
.article-body { max-width: 68ch; margin-inline: auto; }
.article-body h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-top: 3.2rem;
  margin-bottom: 1.3rem;
}
.article-body p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 1.4rem;
}
.article-body .dropcap {
  float: left;
  font-family: var(--serif);
  font-size: 4.4rem;
  line-height: .82;
  margin: .1rem .5rem -.15rem 0;
  color: var(--accent);
  font-style: italic;
}
.article-standout {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  text-align: center;
  color: var(--accent);
  margin: 2.4rem 0;
  line-height: 1.3;
}
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 1.6rem;
  margin: 2.6rem 0;
}
.formula-block {
  text-align: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem 1.4rem;
  margin: 2.6rem 0;
  line-height: 2.1;
}
.formula-block span { color: var(--accent); }

.article-portrait { max-width: 340px; margin: 3rem auto 2.6rem; }
.article-portrait .visual-frame { aspect-ratio: 3/4; }

/* =============================================================
   7. Effects
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform;
}
.cursor-dot { width: 5px; height: 5px; margin: -2.5px; background: var(--cream); border-radius: 50%; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px; border: 1px solid var(--cream); border-radius: 50%;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
}
.cursor.is-interactive .cursor-ring { width: 52px; height: 52px; margin: -26px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

.animate-rotate {
  animation: rotateSlow 40s linear infinite;
  transform-origin: center;
}
@keyframes rotateSlow { to { transform: rotate(360deg); } }
.animate-pulse-ring {
  animation: pulseRing 5s ease-in-out infinite;
}
@keyframes pulseRing {
  0%, 100% { opacity: .35; }
  50% { opacity: .8; }
}

/* =============================================================
   8. Responsive helpers
   ============================================================= */
@media (min-width: 540px)  { }
@media (min-width: 720px)  { }
@media (min-width: 960px)  { }
@media (min-width: 1280px) { .container { max-width: 1260px; } }

/* =============================================================
   9. Reduced-motion — only kills genuinely intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .animate-rotate { animation: none; }
}
