/* ========================================================
   Elevaide — base styles
   Shared across all theme variants. Variant-specific color
   overrides live in the <style> block of each page.
   ======================================================== */

:root {
  --ink: #03362A;
  --ink-soft: rgba(3,54,42,0.7);
  --ink-faint: rgba(3,54,42,0.5);
  --cream: #FFF7EB;
  --cream-2: #FAEEDA;
  --sand: #EAD8B8;
  --sky: #C6EBF7;
  --ember: #DA3E27;
  --line: rgba(3,54,42,0.14);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-emph: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Rethink Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Navigation ── */
nav.site {
  position: sticky;
  top: 0; z-index: 50;
  padding: 18px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,247,235,0.8);
  border-bottom: 1px solid transparent;
}
nav.site .wrap { gap: 48px; }
.logo {
  display: inline-flex; align-items: center;
  font-weight: 600; font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.navlinks { display: flex; gap: 32px; margin-left: auto; }
.navlinks a {
  position: relative;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  padding: 4px 0;
  transition: opacity .3s;
}
.navlinks a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink); opacity: 0;
  transform: scaleX(0); transform-origin: left; transition: transform .3s, opacity .3s;
}
.navlinks a:hover::after, .navlinks a.active::after { opacity: 1; transform: scaleX(1); }
.nav-right {
  display: flex; align-items: center; gap: 16px;
}
.nav-linkedin {
  color: var(--ink); opacity: 0.4;
  transition: opacity .3s, color .3s;
  display: flex; align-items: center;
}
.nav-linkedin:hover { opacity: 1; color: #0A66C2; }
.nav-cta {
  display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 500;
  background: var(--ink); color: var(--cream);
  padding: 10px 20px; border-radius: 999px;
  transition: background .3s, color .3s, transform .2s;
}
.nav-cta:hover { transform: translateY(-1px); }
.footer-linkedin {
  display: inline-flex; align-items: center;
  font-weight: 500;
}

/* ── Hero / headings ── */
h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 600;
}
h1 {
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 700;
  line-height: 1;
}
h1 .line { display: block; overflow: hidden; }
h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: lineRise 1.1s var(--ease-emph) forwards;
}
h1 .line:nth-child(2) > span { animation-delay: .15s; }
@keyframes lineRise { to { transform: translateY(0); } }

h2 {
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.08;
}
h2 em { font-style: italic; font-weight: 600; }
h1 em { font-style: italic; font-weight: 700; }

.highlight { position: relative; display: inline-block; }
.highlight::after {
  content: ''; position: absolute; left: -4px; right: -4px; bottom: 0.08em;
  height: 0.45em;
  background: rgba(218,62,39,0.18);
  z-index: -1;
  transform-origin: left;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .28s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Sections ── */
section { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px;
  background: var(--ink); opacity: 0.4;
}

.lede {
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 55ch;
  margin: 24px 0 32px;
}

.read-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  transition: color .3s, border-color .3s, gap .3s;
}
.read-more::after { content: '→'; transition: transform .3s; }
.read-more:hover { gap: 12px; }
.read-more:hover::after { transform: translateX(2px); }

/* ── Page header ── */
.page-header {
  padding: 120px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  font-size: clamp(44px, 6.5vw, 88px);
  max-width: 14ch;
}

/* ── Continuous steps grid (home) ── */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(3,54,42,0.2);
}
.steps li {
  padding: 32px 24px 32px 0;
}
.s-num {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ember);
  margin-bottom: 10px;
}
.s-title {
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
}
.s-title em { font-style: italic; }
.steps li p {
  font-size: 14px; line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

/* ── CTA block ── */
.cta {
  padding: 140px 0;
  position: relative;
}
.cta h2 { max-width: 20ch; }
.cta-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 36px;
  background: var(--ink); color: var(--cream);
  font-size: 15px; font-weight: 500;
  padding: 14px 28px; border-radius: 999px;
  transition: background .3s, transform .2s;
}
.cta-link::after { content: '→'; transition: transform .3s; }
.cta-link:hover::after { transform: translateX(3px); }
.cta-sub {
  margin-top: 20px; font-size: 14px;
  color: var(--ink-soft);
}

/* ── Founders list (home legacy) ── */
.ff-list {
  list-style: none; margin: 40px 0 0; padding: 0;
  border-top: 1px solid var(--line);
}
.ff-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px;
}
.ff-name { font-size: 18px; font-weight: 600; color: var(--ink); }
.ff-role { font-size: 14px; color: var(--ember); }

/* ── About: method list rows ── */
.list-block {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.list-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 40px;
  padding: 32px 16px;
  margin: 0 -16px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.list-row:hover {
  background: rgba(3,54,42,0.04);
  transform: translateX(6px);
}
.list-row:hover .list-num {
  color: #03362A;
}
.list-num {
  font-size: 14px; font-weight: 600;
  color: var(--ember);
  letter-spacing: 0.08em;
}
.list-title {
  font-size: 22px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.list-title em { font-style: italic; font-weight: 600; }
.list-desc {
  font-size: 15px; line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 780px) {
  .list-row { grid-template-columns: 60px 1fr; }
  .list-desc { grid-column: 1 / -1; }
}

/* ── Quote band (legacy) ── */
.quote-band {
  padding: 100px 0;
  background: var(--ink);
  color: var(--cream);
}
.quote {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 26ch;
}
.quote em { font-style: italic; color: var(--ember); }
.quote-attr {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-soft);
}
.eyebrow.light { color: rgba(255,247,235,0.55); }
.eyebrow.light::before { background: var(--cream); opacity: 0.5; }

/* ── Footer ── */
footer.site {
  padding: 72px 0 32px;
  background: transparent;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
footer.site .row { align-items: flex-start; gap: 64px; flex-wrap: wrap; }
footer.site .brand { max-width: 260px; }
footer.site .brand p { margin: 12px 0 0; font-size: 13px; color: var(--ink-faint); }
footer.site h5 {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 14px; color: var(--ink-faint);
}
footer.site a {
  display: block; margin-bottom: 8px;
  font-size: 14px; color: var(--ink-soft);
  transition: color .3s;
}
.legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

/* ── Variant switcher (floating) ── */
.variant-switch {
  position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex; align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(3,54,42,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  border: 1px solid rgba(255,247,235,0.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.variant-switch .vs-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,247,235,0.5);
  padding: 0 10px 0 6px;
}
.variant-switch .vs-link {
  font-size: 12px; font-weight: 500;
  color: rgba(255,247,235,0.75);
  padding: 7px 12px;
  border-radius: 999px;
  transition: background .25s, color .25s;
  white-space: nowrap;
}
.variant-switch .vs-link:hover { color: #FFF7EB; background: rgba(255,247,235,0.08); }
.variant-switch .vs-link.active {
  background: #FFF7EB; color: #03362A;
}
@media (max-width: 760px) {
  .variant-switch { flex-wrap: wrap; max-width: calc(100vw - 24px); justify-content: center; }
  .variant-switch .vs-label { width: 100%; text-align: center; padding-bottom: 2px; }
}

/* ── Small screen ── */
@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
  nav.site .wrap { gap: 16px; }
  .navlinks { gap: 18px; }
  footer.site .row { gap: 40px; }
}
