/* ─────────────────────────────────────────────────────────────────
   palito. — design system v2 (brand-aligned)
   Palette: #1E0E3E · #E85A3C · #FFFFFF · #F8F6F2 · #6B6780 · #E5E2EC
   Type: Fraunces (headings) · Inter (body/UI)
   ───────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --purple:   #1E0E3E;
  --coral:    #E85A3C;
  --coral-dk: #c94a2f;
  --white:    #FFFFFF;
  --cream:    #F8F6F2;
  --muted:    #6B6780;
  --rule:     #E5E2EC;
  --rule-dk:  #2e1f4a;

  --max-w:    1280px;
  --pad:      clamp(24px, 5vw, 64px);
  --sv:       clamp(80px, 10vw, 136px);  /* section vertical padding */
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── BASE ── */
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--purple);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── HEADINGS ── */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--purple);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.display {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.h1 {
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.h2 {
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.25;
}

/* ── BODY UTILITIES ── */
.lead {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--coral);
  flex-shrink: 0;
}

.accent { color: var(--coral); }

/* ── LAYOUT ── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.wrap-narrow {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--purple);
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav-logo .dot { color: var(--coral); }
.nav-logo img { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--purple); }
.nav-cta {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--white) !important;
  background: var(--purple);
  padding: 9px 18px;
  letter-spacing: 0.02em;
  transition: background 0.2s !important;
}
.nav-cta:hover {
  background: var(--coral) !important;
  color: var(--white) !important;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 14px 24px;
  border: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary {
  background: var(--coral);
  color: var(--white);
  border: 1px solid var(--coral);
}
.btn-primary:hover { background: var(--coral-dk); border-color: var(--coral-dk); color: var(--white); }

.btn-dark {
  background: var(--purple);
  color: var(--white);
  border: 1px solid var(--purple);
}
.btn-dark:hover { background: var(--coral); border-color: var(--coral); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--rule);
}
.btn-outline:hover { border-color: var(--purple); }

.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--purple);
  background: none;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 0 0 3px;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.btn-text:hover { color: var(--coral); border-color: var(--coral); }

.btn-text-white {
  color: rgba(255,255,255,0.75);
  border-bottom-color: rgba(255,255,255,0.25);
}
.btn-text-white:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.6); }

.cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ── SECTION COLOURS ── */
.bg-white  { background: var(--white); }
.bg-cream  { background: var(--cream); }
.bg-purple {
  background: var(--purple);
  color: var(--white);
}
.bg-purple h1, .bg-purple h2, .bg-purple h3 { color: var(--white); }
.bg-purple .eyebrow { color: rgba(255,255,255,0.4); }
.bg-purple .eyebrow::before { background: var(--coral); }
.bg-purple .lead { color: rgba(255,255,255,0.6); }

/* ── RULES / DIVIDERS ── */
.border-b { border-bottom: 1px solid var(--rule); }
.border-t  { border-top: 1px solid var(--rule); }
.border-b-dk { border-bottom: 1px solid var(--rule-dk); }

/* ── PULL QUOTE ── */
.pullquote-block {
  border-left: 3px solid var(--coral);
  padding-left: 32px;
}
.pullquote-block p {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--purple);
}

/* ── MARQUEE ── */
.marquee-outer {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
  white-space: nowrap;
  background: var(--white);
}
.marquee-track {
  display: inline-flex;
  animation: marquee 24s linear infinite;
  will-change: transform;
}
.marquee-item {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(13px, 1.3vw, 15px);
  color: var(--muted);
  padding: 0 36px;
  display: inline-flex;
  align-items: center;
  gap: 36px;
  flex-shrink: 0;
}
.marquee-item::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── STEP GRID (3-col bordered) ── */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.step-cell {
  background: var(--white);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.step-num {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--coral);
  font-weight: 500;
}
.step-cell h3 { font-size: clamp(18px, 1.9vw, 23px); line-height: 1.2; }
.step-cell p  { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ── PILLAR GRID (4-col dark) ── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule-dk);
  border: 1px solid var(--rule-dk);
}
.pillar-cell {
  background: var(--purple);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pillar-n {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.1em;
}
.pillar-cell h3 { font-size: clamp(18px, 1.8vw, 22px); color: var(--white); line-height: 1.2; }
.pillar-cell h3 .accent { color: var(--coral); }
.pillar-cell p  { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.5); }

/* ── REVEAL ── */
/* Default: visible. JS adds .js-reveal to <html> to enable animations. */
.reveal { opacity: 1; transform: none; }

.js-loaded .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
              transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.js-loaded .reveal.visible { opacity: 1; transform: none; }

/* ── FOOTER ── */
footer {
  background: var(--purple);
  color: var(--white);
  padding: 72px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--rule-dk);
}
.footer-logo-text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  color: var(--white);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 12px;
}
.footer-logo-text .dot { color: var(--coral); }
.footer-tagline {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  line-height: 2;
}
.footer-col-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 9px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.28);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  :root { --pad: 24px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--rule);
    z-index: 200;
    box-shadow: 0 8px 24px rgba(30,14,62,0.08);
  }
  .nav-links.open .nav-cta { align-self: flex-start; }
  .menu-toggle { display: block; }

  .step-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 600px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; }
}
