/* ==========================================================================
   RickLFG — public site (light)
   Tokens in :root. New section: <section class="section reveal"> with an
   <h2 class="section__label"> and content below it.
   ========================================================================== */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-hover: #f6f6f4;
  --text: #0f0f10;
  --text-2: #4f4f56;            /* secondary copy */
  --text-3: #72727a;            /* muted — AA on --bg */
  --border: #e8e8e6;
  --border-strong: #d4d4d1;

  /* matches the LFGrowth brand green */
  --green: #077657;
  --green-bg: #ebf7f2;
  --green-border: #bfe5d5;

  --shadow-sm: 0 1px 2px rgba(16, 16, 20, 0.04);
  --shadow-md: 0 1px 2px rgba(16, 16, 20, 0.04), 0 6px 18px -8px rgba(16, 16, 20, 0.12);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;               /* cards */
  --radius-sm: 10px;            /* buttons, logo */
  --control-h: 38px;
  --width: 720px;

  --gap-section: 40px;          /* space between sections */
  --gap-label: 12px;            /* label → content */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: #e2f3ec; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: var(--radius-sm); }

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

/* ---------- Shared ---------- */

.section__label {
  margin: 0 0 var(--gap-label);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.arrow {
  flex: none;
  font-size: 15px;
  line-height: 1;
  color: var(--text-3);
  transition: transform .2s var(--ease), color .2s var(--ease);
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: var(--gap-section);
  margin-bottom: var(--gap-section);
  border-bottom: 1px solid var(--border);
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border), 0 10px 30px -12px rgba(16, 16, 20, 0.25);
  margin-bottom: 20px;
}

.hero__name {
  margin: 0;
  font-size: clamp(34px, 7vw, 46px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.hero__roles {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
}

.hero__roles span { color: var(--text-3); margin: 0 4px; }

.hero__line {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-3);
  text-wrap: balance;
}

.channels {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--control-h);
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

.btn svg { width: 14px; height: 14px; fill: currentColor; flex: none; }

.btn:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ---------- Sections ---------- */

.section { margin-bottom: var(--gap-section); }

.about__lead {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 36ch;
}

.about__sub {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--text-2);
  max-width: 54ch;
}

/* ---------- Project ---------- */

.project {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

.project:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.project:hover .arrow { color: var(--text); transform: translate(2px, -2px); }

.project__logo {
  flex: none;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.project__body { flex: 1; min-width: 0; }

.project__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.project__name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.project__desc {
  margin: 2px 0 2px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-2);
}

.project__link { font-size: 13px; color: var(--text-3); }

.project .arrow { align-self: flex-start; margin-top: 2px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid var(--green-border);
  border-radius: 999px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.badge__dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.badge__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: .5; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

/* ---------- Contact ---------- */

.contact {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.contact li + li { border-top: 1px solid var(--border); }

.contact__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 20px;
  font-size: 15px;
  transition: background-color .2s var(--ease);
}

.contact__row:hover { background: var(--surface-hover); }
.contact__row:hover .arrow { color: var(--text); transform: translateX(2px); }
.contact__row:focus-visible { outline-offset: -2px; border-radius: 0; }

.contact__icon { width: 16px; height: 16px; flex: none; fill: var(--text); }
.contact__icon--stroke { fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

.contact__label {
  width: 84px;
  flex: none;
  font-weight: 500;
}

.contact__value {
  flex: 1;
  min-width: 0;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- Load-in ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  :root { --gap-section: 48px; --gap-label: 14px; }
  .page { padding: 80px 24px 40px; }
  .avatar { width: 116px; height: 116px; margin-bottom: 22px; }
  .about__lead { font-size: 22px; }
  .project { padding: 20px 24px; gap: 18px; }
  .contact__row { padding: 0 24px; }
}

/* ---------- Small phones ---------- */

@media (max-width: 420px) {
  .footer { flex-direction: column; }
  .project { align-items: flex-start; gap: 14px; padding: 16px; }
  .project__logo { width: 44px; height: 44px; }
  .contact__row { padding: 0 16px; gap: 10px; }
  .contact__label { width: 72px; }
}
