@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --burgundy:   #7A1E3A;
  --burgundy-l: #9C2E50;
  --ardoise:    #1F2937;
  --ivoire:     #F7F3ED;
  --ivoire-d:   #EDE8E0;
  --or:         #9C6A1A;
  --beige:      #D8D0C6;
  --text:       #1F2937;
  --text-muted: #6B6560;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--ivoire);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeIn .5s ease forwards .1s;
}

@keyframes fadeIn { to { opacity: 1; } }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 3rem;
  border-bottom: 1px solid var(--beige);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--burgundy);
  letter-spacing: -.01em;
  text-decoration: none;
}

.logo span { color: var(--or); }

.header-tag {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--beige);
  padding: .3rem .8rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  text-align: center;
}

.eyebrow {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: slideUp .6s ease forwards .25s;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.07;
  color: var(--ardoise);
  max-width: 14ch;
  margin: 0 auto 1.6rem;
  opacity: 0;
  animation: slideUp .6s ease forwards .4s;
}

.hero-title em {
  font-style: italic;
  color: var(--burgundy);
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.75;
  margin: 0 auto 3rem;
  opacity: 0;
  animation: slideUp .6s ease forwards .55s;
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--or);
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeIn .6s ease forwards .7s;
}

.pillars {
  display: flex;
  gap: 0;
  border: 1px solid var(--beige);
  max-width: 720px;
  width: 100%;
  margin: 0 auto 4rem;
  opacity: 0;
  animation: slideUp .6s ease forwards .8s;
}

.pillar {
  flex: 1;
  padding: 1.8rem 1.6rem;
  text-align: left;
  border-right: 1px solid var(--beige);
  transition: background .2s;
}

.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--ivoire-d); }

.pillar-bar {
  width: 24px;
  height: 2px;
  background: var(--burgundy);
  margin-bottom: 1rem;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ardoise);
  margin-bottom: .5rem;
}

.pillar-text {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

.tools-label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  opacity: 0;
  animation: slideUp .5s ease forwards 1s;
}

.tools-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: slideUp .5s ease forwards 1.1s;
}

.tool-pill {
  font-size: .75rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: .35rem .9rem;
  border: 1px solid var(--beige);
  text-decoration: none;
  transition: border-color .2s, color .2s;
  letter-spacing: .02em;
}

.tool-pill:hover { border-color: var(--burgundy); color: var(--burgundy); }

.tool-pill.current {
  border-color: var(--burgundy);
  color: var(--burgundy);
  font-weight: 500;
}

.tool-sep { font-size: .7rem; color: var(--beige); }

footer {
  padding: 1.6rem 3rem;
  border-top: 1px solid var(--beige);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-text {
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .04em;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 680px) {
  header { padding: 1.2rem 1.4rem; }
  main { padding: 4rem 1.4rem; }
  .pillars { flex-direction: column; }
  .pillar { border-right: none; border-bottom: 1px solid var(--beige); }
  .pillar:last-child { border-bottom: none; }
  footer { flex-direction: column; gap: .4rem; text-align: center; padding: 1.2rem; }
}