:root {
  --ink: #2D1B47;
  --purple: #8947AD;
  --purple-deep: #693682;
  --bg: #FEFEFE;
  --gray: #6B6475;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Welcome page ---------- */
.welcome {
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3vh 6vw;
  overflow: hidden;
}

.welcome-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mark {
  width: min(66vh, 78vw, 720px);
  height: auto;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}

.wordmark {
  font-size: clamp(2.2rem, 6.2vh, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.tagline {
  font-size: clamp(0.85rem, 1.8vh, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-deep);
  margin: 0.5rem 0 0;
}

.enter {
  align-self: flex-start;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  padding: 0.6rem 0;
  border-bottom: 2px solid var(--purple);
  transition: gap 0.2s ease, color 0.2s ease;
}

.enter:hover {
  gap: 0.85rem;
  color: var(--purple);
}

.enter-arrow {
  font-size: 1.3rem;
  line-height: 1;
}

@media (max-width: 480px) {
  .enter { font-size: 1rem; }
}

/* ---------- Proven Process page ---------- */
.pp-page {
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pp-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 5vw 0.3rem;
  flex-wrap: wrap;
}

.pp-header .mini-mark { width: 48px; height: auto; flex-shrink: 0; }

.pp-header .brand-text h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.pp-header .brand-text p {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-deep);
  font-weight: 600;
}

.pp-intro {
  padding: 0.4rem 5vw 0;
  color: var(--gray);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  margin: 0;
  max-width: 700px;
}

.timeline-wrap {
  padding: 0.4rem 3vw;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.3rem 5vw 0;
  text-align: left;
}

.legend-item { display: flex; align-items: center; gap: 0.6rem; font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.legend-swatch { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; }
.legend-swatch.a { background: var(--ink); }
.legend-swatch.b { background: var(--purple); }

.closing {
  max-width: 1200px;
  margin: 0.6rem auto 0;
  padding: 0 5vw;
  font-style: italic;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--ink);
  border-top: 1px solid #e6e1ea;
  padding-top: 0.6rem;
  width: 100%;
}

.site-footer {
  border-top: 1px solid #e6e1ea;
  padding: 0.6rem 5vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--gray);
}

.site-footer a { color: var(--gray); text-decoration: none; }
.site-footer a:hover { color: var(--purple); }

@media (max-width: 760px) {
  .legend-item { font-size: 0.95rem; }
}
