/* ============================================================
   mivorent — design tokens
   ============================================================ */
:root {
  --bg: #F6F7F3;
  --bg-panel: #EFF1EA;
  --bg-panel-2: #E7E9DF;
  --ink: #161B18;
  --ink-soft: #4B564F;
  --ink-faint: #7C877E;
  --accent: #2F5D4E;
  --accent-ink: #1F4238;
  --accent-tint: #DCE6DE;
  --gold: #B08D57;
  --line: #D8D9CE;
  --line-strong: #C4C7B8;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1140px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 26px;
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; } /* site is intentionally light-only */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow.muted { color: var(--ink-faint); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   Nav
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 247, 243, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.nav-links a {
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); border-color: var(--line-strong); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--ink);
  color: var(--bg) !important;
  padding: 10px 18px;
  border-radius: 100px;
  border-bottom: none !important;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--accent); }

.nav-toggle { display: none; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }

.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  margin: 18px 0 22px;
  max-width: 12ch;
}

.hero-copy .lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
}

.hero-art svg { width: 100%; height: auto; }

.path-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  fill: var(--ink-faint);
}

/* draw-in animation for the signature branching-line mark */
.draw-path {
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: draw 1.4s cubic-bezier(.4,0,.2,1) forwards;
}
.draw-path.d2 { animation-delay: 0.15s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ============================================================
   Section scaffolding
   ============================================================ */
section { padding: 88px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-top: 14px;
}
.section-head .lede {
  color: var(--ink-soft);
  margin-top: 16px;
  font-size: 16.5px;
}

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ============================================================
   Two-path section (signature content block)
   ============================================================ */
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.path-card {
  background: var(--bg);
  padding: 44px 40px;
}

.path-card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.path-card h3 {
  font-size: 26px;
  margin-bottom: 14px;
}

.path-card p {
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.path-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.path-card li {
  font-size: 15px;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
}
.path-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ============================================================
   Principles list
   ============================================================ */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.principle {
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.principle .tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.principle h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
}

.principle p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* ============================================================
   Apps showcase
   ============================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.app-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.app-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
}

.app-card h3 {
  font-size: 19px;
}

.app-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  flex: 1;
}

.app-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  display: flex;
  gap: 10px;
  align-items: center;
}

.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

/* ============================================================
   Stats strip
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 34px 30px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--accent);
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 6px;
}

/* ============================================================
   Contact / CTA
   ============================================================ */
.cta-panel {
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius-l);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
}
.cta-panel h2 {
  color: var(--bg);
  font-size: clamp(26px, 3vw, 36px);
  max-width: 16ch;
}
.cta-panel .lede {
  color: #D7E4DD;
  margin-top: 14px;
  max-width: 42ch;
}
.cta-panel .btn-primary {
  background: var(--bg);
  color: var(--accent-ink);
}
.cta-panel .btn-primary:hover { background: #fff; }
.cta-panel .contact-line {
  font-family: var(--font-mono);
  font-size: 15px;
}
.cta-panel .contact-line a { border-bottom: 1px solid rgba(246,247,243,0.4); }
.cta-panel .contact-line a:hover { border-color: var(--bg); }
.cta-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { width: 24px; height: 24px; }
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}
.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col .eyebrow { margin-bottom: 6px; }
.footer-col a {
  font-size: 14.5px;
  color: var(--ink-soft);
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   Legal / policy page
   ============================================================ */
.legal {
  padding: 64px 0 100px;
}
.legal .wrap { max-width: 760px; }
.legal-header { margin-bottom: 48px; }
.legal-header h1 {
  font-size: clamp(32px, 4vw, 46px);
  margin: 14px 0 12px;
}
.legal-header .updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
}
.legal-body h2 {
  font-size: 21px;
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 14px;
}
.legal-body ul { padding-left: 20px; margin-bottom: 14px; }
.legal-body a { color: var(--accent); border-bottom: 1px solid var(--accent-tint); }
.legal-body a:hover { border-color: var(--accent); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.back-link:hover { color: var(--ink); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 340px; }
  .paths { grid-template-columns: 1fr; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .cta-panel { grid-template-columns: 1fr; padding: 44px 28px; }
  .cta-right { align-items: flex-start; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}
