/* ============================================================
   Introtwine — Website Styles
   Paper-and-ink, generous whitespace, hairline structure.
   ============================================================ */

:root {
  /* paper & ink */
  --paper-0:  #FBF7F1;
  --paper-1:  #F5EFE6;
  --paper-2:  #ECE4D6;
  --paper-3:  #DCD2BF;

  --ink-0:    #1B1A18;
  --ink-1:    #2E2C28;
  --ink-2:    #5C5750;
  --ink-3:    #8C857A;
  --ink-4:    #B8B0A1;

  --twine-0:  #B84C2A;
  --twine-1:  #9C3E20;
  --twine-2:  #D8714F;
  --twine-tint: #F2D9CC;

  --bg:        var(--paper-0);
  --fg:        var(--ink-0);
  --fg-muted:  var(--ink-2);
  --fg-faint:  var(--ink-3);
  --border:    var(--paper-3);
  --hairline:  rgba(27, 26, 24, 0.14);
  --accent:    var(--twine-0);
  --accent-press: var(--twine-1);

  --font-serif: 'EB Garamond', 'Iowan Old Style', Georgia, serif;
  --font-sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease:     cubic-bezier(0.32, 0.72, 0.24, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-thread: 1100ms;

  --content-w: 700px;
  --content-w-wide: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

@media (max-width: 760px) {
  html { scroll-padding-top: 112px; }
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--twine-tint); color: var(--ink-0); }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink-0); color: var(--paper-0);
  padding: 8px 12px; font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 4vw, 40px);
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-0);
}
.brand-mark { width: 28px; height: 28px; flex: 0 0 auto; }
.brand-word {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  padding-top: 3px; /* optical alignment with mark */
}

.site-nav {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  flex: 1;
  justify-content: center;
}
.site-nav a {
  color: var(--ink-2);
  padding: 6px 0;
  white-space: nowrap;
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}
.site-nav a:hover { color: var(--ink-0); }
.site-nav a[aria-current="true"] {
  color: var(--ink-0);
}
.site-nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink-0);
}
.nav-sep { color: var(--ink-4); }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--ink-0);
  border-radius: 999px;
  color: var(--ink-0);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-cta:hover {
  background: var(--ink-0);
  color: var(--paper-0);
}

/* ---------- Main / sections ---------- */
main {
  display: block;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 56px);
  position: relative;
}

.section-head {
  max-width: var(--content-w-wide);
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: left;
}
.section-head::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-0);
  margin-bottom: 22px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink-0);
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-2);
  display: block;
}

.section-lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--ink-2);
  margin-top: 28px;
  max-width: 38ch;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 56px) clamp(56px, 7vw, 88px);
  max-width: var(--content-w-wide);
  margin: 0 auto;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 6.6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  margin: 0 auto;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-2);
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--ink-2);
  margin: clamp(22px, 3vw, 32px) auto 0;
  max-width: 56ch;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex; align-items: center; justify-content: center;
  gap: 28px;
  margin-top: clamp(28px, 4vw, 44px);
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 14px 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  letter-spacing: 0.005em;
}
.btn-primary {
  background: var(--accent);
  color: var(--paper-0);
}
.btn-primary:hover { background: var(--accent-press); }
.btn-primary:active { background: var(--accent-press); }

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

.btn-text {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-0);
  padding: 14px 4px;
  border-bottom: 1px solid var(--ink-4);
  transition: border-color var(--dur-fast) var(--ease);
}
.btn-text:hover { border-color: var(--ink-0); }

/* ---------- Razón ---------- */
.section-razon {
  background: var(--paper-1);
}
.prose {
  max-width: var(--content-w);
  margin: 0 auto;
}
.prose p {
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.6;
  color: var(--ink-1);
  margin: 0;
  text-wrap: pretty;
}
.prose p + p { margin-top: 28px; }
.prose .pull {
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--ink-0);
  margin: 48px 0 !important;
  padding-left: clamp(20px, 4vw, 40px);
  border-left: 2px solid var(--accent);
  max-width: 28ch;
}

/* ---------- Proceso ---------- */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--content-w-wide);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: baseline;
  padding: clamp(32px, 5vw, 48px) 0;
  border-top: 1px solid var(--hairline);
}
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.step-body h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  color: var(--ink-0);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.step-body p {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}

/* ---------- Expectativa ---------- */
.section-expectativa {
  background: var(--paper-1);
}
.pillars {
  max-width: var(--content-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.pillar {
  background: var(--paper-1);
  padding: clamp(36px, 4vw, 52px) clamp(24px, 3vw, 36px);
}
.pillar-num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.pillar h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 30px);
  color: var(--ink-0);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.pillar p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Final CTA ---------- */
.cta-final {
  text-align: center;
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 56px);
}
.cta-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto clamp(28px, 4vw, 40px);
  width: 100%;
  max-width: 160px;
}
.cta-rule .rail {
  flex: 1;
  height: 1px;
  background: var(--ink-0);
}
.cta-rule .rail:first-child { opacity: 1; }
.cta-rule .rail:last-child { opacity: 0.55; }
.cta-rule .meeting-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-0);
  flex: 0 0 auto;
}
.cta-line {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  color: var(--ink-0);
  margin: 0 auto;
  max-width: 22ch;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.cta-line em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-2);
}
.cta-q {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--ink-2);
  margin: clamp(28px, 4vw, 40px) 0 clamp(28px, 4vw, 36px);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px clamp(20px, 5vw, 56px);
  background: var(--paper-0);
}
.footer-inner {
  max-width: var(--content-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-3);
}
.brand-footer .brand-mark { width: 22px; height: 22px; }
.brand-footer .brand-word { font-size: 18px; padding-top: 2px; white-space: nowrap; }
.footer-email {
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: border-color var(--dur-fast) var(--ease);
}
.footer-email:hover { border-bottom-color: var(--ink-2); }
.footer-copy { color: var(--ink-3); white-space: nowrap; }

/* ---------- Focus styles ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* Tablet & below — header stacks: brand+CTA top row, nav links second row */
@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    padding: 12px 18px 0;
    gap: 10px;
  }
  .brand-mark { width: 24px; height: 24px; }
  .brand-word { font-size: 19px; }

  .brand { order: 1; }
  .nav-cta {
    order: 2;
    padding: 7px 14px;
    font-size: 13px;
  }
  .site-nav {
    order: 3;
    flex: 1 1 100%;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    padding: 8px 0 10px;
    margin-top: 4px;
    border-top: 1px solid var(--hairline);
  }
  .site-nav a { padding: 4px 0; }
  .nav-sep { color: var(--ink-4); }

  .section {
    padding: 64px 22px;
  }
  .section-head { margin-bottom: 36px; }

  .hero {
    padding: 56px 22px 56px;
  }
  .section-head::before { width: 4px; height: 4px; margin-bottom: 18px; }
  .cta-rule { gap: 10px; max-width: 140px; }
  .hero-title {
    font-size: clamp(32px, 8.5vw, 42px);
    line-height: 1.1;
    max-width: none;
  }
  .hero-title br { display: none; }
  .hero-title em { display: block; margin-top: 4px; }
  .hero-sub {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 22px;
    max-width: 32ch;
  }
  .hero-ctas {
    gap: 8px;
    margin-top: 32px;
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .btn-primary { padding: 16px 24px; font-size: 16px; }
  .btn-text {
    padding: 14px 0;
    text-align: center;
    border-bottom: 0;
    color: var(--ink-2);
  }

  .section-title { font-size: clamp(28px, 7vw, 36px); }

  .prose p {
    font-size: 18px;
    line-height: 1.55;
  }
  .prose p + p { margin-top: 20px; }
  .prose .pull {
    font-size: 20px;
    line-height: 1.35;
    margin: 32px 0 !important;
    padding-left: 16px;
    max-width: none;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }
  .step-num {
    font-size: 28px;
    margin-bottom: 4px;
  }
  .step-body h3 { font-size: 22px; margin-bottom: 10px; }
  .step-body p { font-size: 16px; line-height: 1.55; }

  .pillars {
    grid-template-columns: 1fr;
    gap: 1px;
  }
  .pillar { padding: 32px 24px; }
  .pillar-num { margin-bottom: 18px; font-size: 20px; }
  .pillar h3 { font-size: 22px; }

  .cta-final { padding: 72px 22px; }
  .cta-line { font-size: clamp(26px, 7.5vw, 36px); line-height: 1.18; }
  .cta-q { margin: 24px 0 28px; font-size: 18px; }

  .site-footer { padding: 28px 22px; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* Phone — tighten further */
@media (max-width: 420px) {
  .section { padding: 56px 20px; }
  .hero { padding: 48px 20px 48px; }
  .hero-title { font-size: 32px; }
  .section-title { font-size: 26px; }
  .section-lede { font-size: 17px; margin-top: 20px; }
  .step-body h3 { font-size: 20px; }
  .pillar h3 { font-size: 20px; }
  .cta-final { padding: 56px 20px; }
  .cta-line { font-size: 26px; }
}
