/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --bg:          #ebebeb;
  --card:        #ffffff;
  --ink:         #2b2b2b;
  --ink-strong:  #1a1a1a;
  --ink-soft:    #5b5b5b;
  --accent:      #eab308;   /* the yellow */
  --accent-ink:  #1a1a1a;
  --radius:      18px;
  --shadow:      0 1px 2px rgba(0,0,0,.05);
  --maxcol:      1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #141414;
    --card:       #1e1e1e;
    --ink:        #e7e7e7;
    --ink-strong: #ffffff;
    --ink-soft:   #a3a3a3;
    --shadow:     0 1px 2px rgba(0,0,0,.4);
  }
}

/* Poppins, self-hosted (latin subset, only the four weights this page uses).
   Loading it from fonts.googleapis.com cost two extra DNS+TLS handshakes and a
   render-blocking cross-origin stylesheet before a single word could paint.
   font-display: swap means text shows immediately in the fallback and reflows
   once the file lands, rather than sitting invisible. */
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/poppins-400-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/poppins-600-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/poppins-700-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 900; font-display: swap;
  src: url(fonts/poppins-900-latin.woff2) format("woff2");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Honour the OS "reduce motion" setting — smooth scrolling and the card
   transitions are exactly what triggers motion sickness for some people. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;

  display: grid;
  grid-template-columns: minmax(320px, 40%) 1fr;
  gap: 0;
  max-width: 1600px;
  margin: 0 auto;
}

a { color: inherit; }

/* =========================================================
   Left column — profile (sticky)
   ========================================================= */
.profile {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 40px 48px;
}

.profile-inner { width: 100%; max-width: 420px; margin-left: auto; }

.avatar {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: #f5c451;
  overflow: hidden;
  display: grid; place-items: center;
  margin-bottom: 40px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.name {
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
  margin: 0 0 18px;
  color: var(--ink-strong);
}

.meta {
  display: flex; flex-wrap: wrap; gap: 24px;
  font-weight: 600; font-size: 17px;
  color: var(--ink-strong);
  margin-bottom: 26px;
}
.meta-item { display: inline-flex; align-items: center; gap: 8px; }
.mi { width: 20px; height: 20px; fill: currentColor; opacity: .85; }

.quote {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 20px;
  font-size: 17px;
}

.newsletter-line { margin: 0 0 16px; font-size: 17px; }
.newsletter-line a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pitch { margin: 0 0 22px; font-size: 17px; }

/* Subscribe form */
.subscribe {
  display: flex;
  border: 2px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  max-width: 400px;
}
.subscribe input {
  flex: 1; min-width: 0;
  border: 0; outline: 0;
  padding: 14px 16px;
  font: inherit; font-size: 16px;
  background: transparent;
  color: var(--ink);
}
.subscribe button {
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit; font-weight: 700;
  padding: 14px 22px;
  cursor: pointer;
}
.subscribe button:hover { filter: brightness(.95); }
.subscribe button:disabled { opacity: .6; cursor: default; }

.subscribe-msg {
  margin: 10px 2px 0;
  font-size: 14px;
  min-height: 20px;
}
.subscribe-msg.ok  { color: #15803d; }
.subscribe-msg.err { color: #b91c1c; }
@media (prefers-color-scheme: dark) {
  .subscribe-msg.ok  { color: #6ee7a0; }
  .subscribe-msg.err { color: #f88; }
}

/* Socials */
.socials { display: flex; gap: 26px; margin: 34px 0 0; }
.socials a { color: var(--ink-soft); display: inline-flex; }
.socials svg { width: 26px; height: 26px; fill: currentColor; }
.socials a:hover { color: var(--ink-strong); }

/* CTA */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 44px;
  background: #1b1b2e;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.cta:hover { background: #262640; }

/* =========================================================
   Right column — project grid
   ========================================================= */
.grid {
  padding: 40px 48px 80px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-content: start;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.09);
}

.card-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.card-logo-mark {
  width: 30px; height: 30px;
  flex: 0 0 auto;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700; line-height: 1;
  color: hsl(var(--h) 55% 38%);
  background: hsl(var(--h) 60% 94%);
}
@media (prefers-color-scheme: dark) {
  .card-logo-mark {
    color: hsl(var(--h) 65% 78%);
    background: hsl(var(--h) 35% 22%);
  }
}
.card-logo-img {
  width: 30px; height: 30px;
  border-radius: 7px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #fff;
}
.card-title {
  font-weight: 700; font-size: 19px;
  color: var(--ink-strong);
  margin: 0;
  flex: 1; min-width: 0;
}

.badge {
  font-size: 13px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.badge-mrr        { background: #e8f0ff; color: #1c4ed8; }
.badge-soon       { background: #f3e8ff; color: #7127c8; }
.badge-acquired   { background: #dbeafe; color: #1e40af; }
.badge-discontinued { background: #fee2e2; color: #b91c1c; }
@media (prefers-color-scheme: dark) {
  .badge-mrr        { background: #1e2a4a; color: #93b4ff; }
  .badge-soon       { background: #2c1f3d; color: #c9a3f5; }
  .badge-acquired   { background: #1e2a4a; color: #93b4ff; }
  .badge-discontinued { background: #3a1c1c; color: #f88; }
}

.card-desc { margin: 0; color: var(--ink); font-size: 16px; }
.card-note { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; }

/* Sparkline chart */
.chart { margin-top: 18px; }
.chart svg { display: block; width: 100%; height: 130px; overflow: visible; }
.chart .axis {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-soft);
  margin-top: 6px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body { display: block; }
  .profile {
    position: static; height: auto;
    padding: 40px 24px 10px;
  }
  .profile-inner { margin: 0 auto; }
  .grid { padding: 24px; }
  .avatar { width: 150px; height: 150px; margin-bottom: 24px; }
}
