/* ============================================================
   Prosperon LLC — clean light corporate editorial
   Palette: warm off-white base, near-black ink, brand teal accent
   Type: Fraunces (serif display) + Inter (sans body)
   ============================================================ */

:root {
  --bg: #f8f7f4;
  --bg-tint: #f1f0eb;
  --surface: #ffffff;
  --ink: #0d0c22;
  --ink-soft: #2c3e4c;
  --muted: #6e6d7a;
  --line: rgba(13, 12, 34, 0.14);
  --teal: #1e999b;
  --teal-deep: #15706f;
  --teal-tint: rgba(30, 153, 155, 0.10);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--teal); color: #fff; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo { height: 40px; width: auto; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s ease;
}
.main-nav a:hover { color: var(--teal-deep); }
.nav-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-pill {
  background: var(--teal);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 50px;
}
.btn-pill:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn-small { padding: 0.55rem 1.3rem; font-size: 0.85rem; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--teal); color: #fff; }

.link-underline {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}
.link-underline:hover { color: var(--teal-deep); }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + clamp(4rem, 10vh, 7rem)) 0 clamp(4rem, 9vh, 6.5rem);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 2.25rem;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: riseIn 1s var(--ease) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes riseIn { to { transform: translateY(0); } }

.scribble-wrap { position: relative; font-style: normal; white-space: nowrap; }
.scribble {
  position: absolute;
  left: -6%; top: -18%;
  width: 112%; height: 136%;
  pointer-events: none;
  overflow: visible;
}
.scribble-path {
  stroke: var(--teal);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawScribble 1.4s var(--ease) 0.7s forwards;
}
@keyframes drawScribble { to { stroke-dashoffset: 0; } }

.hero-sub {
  max-width: 620px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(3.5rem, 8vh, 5.5rem);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2.25rem;
}
.hero-stats dt {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  color: var(--teal-deep);
  margin-bottom: 0.5rem;
}
.hero-stats dd {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 220px;
}

/* ---------- Sections: asymmetric split ---------- */
.section { padding: clamp(4.5rem, 11vh, 8rem) 0; }
.section-tint { background: var(--bg-tint); }

.split {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.split-label { position: sticky; top: calc(var(--header-h) + 2rem); }

.section-index {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
}
.section-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.section-note {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 240px;
}

.section-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  margin-bottom: clamp(2.5rem, 5vh, 3.5rem);
  max-width: 720px;
}

/* ---------- Migration pathway rows ---------- */
.path-list { list-style: none; border-bottom: 1px solid var(--line); }

.path-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0.25rem;
  border-top: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease), background 0.45s var(--ease);
}
.path-row:hover { padding-left: 1.1rem; background: var(--teal-tint); }

.path-num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--muted);
}
.path-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.path-title .arrow { color: var(--teal); }
.path-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Capability block ---------- */
.capability-block { margin-top: clamp(2.5rem, 5vh, 3.5rem); }
.capability-heading {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 1.25rem;
}
.capability-list { list-style: none; }
.capability-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.capability-list li::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 0.9rem;
  vertical-align: middle;
}

/* ---------- AI agent rows ---------- */
.agent-list { list-style: none; border-bottom: 1px solid var(--line); }

.agent-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0.25rem;
  border-top: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease), background 0.45s var(--ease);
}
.agent-row:hover { padding-left: 1.1rem; background: rgba(30, 153, 155, 0.07); }

.agent-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--teal-deep);
  padding-top: 0.2rem;
}
.agent-row h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.agent-row p {
  font-size: 0.97rem;
  color: var(--muted);
  max-width: 560px;
}

.pull-quote {
  margin: clamp(2.5rem, 5vh, 3.5rem) 0;
  padding-left: 1.75rem;
  border-left: 3px solid var(--teal);
}
.pull-quote p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.tech-note {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- About ---------- */
.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vh, 3.5rem);
}
.about-body p { font-size: 0.98rem; color: var(--ink-soft); }

.industries { margin-bottom: clamp(2.5rem, 5vh, 3.5rem); }
.industry-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.industry-tags li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 0.45rem 1.1rem;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.industry-tags li:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
  background: var(--teal-tint);
}

.about-goal {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 680px;
}

/* ---------- Contact (dark) ---------- */
.section-dark {
  background: var(--ink-soft);
  color: #fff;
}
.section-dark .section-index { color: var(--teal); }

.contact-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 1.5rem 0 clamp(2.5rem, 5vh, 3.5rem);
  max-width: 800px;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  column-gap: clamp(2.5rem, 7vw, 6rem);
  row-gap: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2.25rem;
  margin-bottom: clamp(2.5rem, 5vh, 3.5rem);
}
.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.5rem;
}
.contact-value {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: #fff;
  text-decoration: none;
}
a.contact-value { border-bottom: 1px solid var(--teal); transition: color 0.25s ease; }
a.contact-value:hover { color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo {
  height: 64px;
  width: auto;
}
.footer-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-nav a:hover { color: var(--teal); }
.footer-legal { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title .line > span { transform: none; animation: none; }
  .scribble-path { stroke-dashoffset: 0; animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split-label { position: static; }
  .section-note { max-width: none; }
  .about-body { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem clamp(1.25rem, 4vw, 3rem) 2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.45s var(--ease);
  }
  .main-nav.open { transform: translateY(0); }
  .nav-cta { margin-left: 0; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .path-row { grid-template-columns: 2.2rem 1fr; }
  .path-tag { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
