/* ===== Tokens ===== */
:root {
  /* Brand colors, sampled from the PeopleGrowth logo */
  --ink: #111111;
  --paper: #faf8f5;
  --green: #3e7c59;
  --green-bright: #5fbf86;  /* status dots on dark surfaces */
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.26);
  --muted: #5f5f58;
  --surface: rgba(255, 255, 255, 0.55);
  --panel: #111111;
  --panel-line: rgba(250, 248, 245, 0.1);
  --panel-muted: rgba(250, 248, 245, 0.62);

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Type scale (desktop values at 1440px, scaling down on smaller screens) */
  --fs-nav: clamp(22px, 2.15vw, 31px);
  --fs-logo: clamp(22px, 2.22vw, 32px);
  --fs-hero: clamp(44px, 5.6vw, 84px);
  --fs-statement: clamp(30px, 3.4vw, 50px);
  --fs-title: clamp(28px, 2.5vw, 36px);
  --fs-card: clamp(19px, 1.53vw, 22px);
  --fs-lede: clamp(18px, 1.4vw, 21px);
  --fs-footer: clamp(17px, 1.67vw, 24px);
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-label: 11px;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 72px;
  --radius: 12px;
  --card-pad: clamp(28px, 3vw, 44px);
}

/* ===== Base ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Small monospace system labels */
.label,
.idx {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Dark surfaces share one grid texture */
.panel {
  background-color: var(--panel);
  background-image:
    linear-gradient(var(--panel-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--panel-line) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--paper);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-logo);
  font-weight: 500;
  letter-spacing: -0.04em;
}
.logo-mark { height: 1.05em; width: auto; transform: translateY(-0.04em); }

.site-nav {
  display: flex;
  gap: clamp(14px, 1.6vw, 26px);
  font-size: var(--fs-nav);
  line-height: 1.3;
  letter-spacing: -0.045em;
}
.site-nav a { position: relative; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  font: inherit;
  font-size: 20px;
  letter-spacing: -0.02em;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 8px 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--green); border-color: var(--green); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.01em;
}
.panel .chips li { border-color: rgba(250, 248, 245, 0.22); }

/* ===== Hero ===== */
.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: -1px -1px;
}

.hero {
  padding-top: var(--header-h);
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
          mask-image: linear-gradient(#000 80%, transparent);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  min-height: min(86vh, 800px);
  padding-top: clamp(56px, 7vw, 104px);
  padding-bottom: clamp(80px, 9vw, 144px);
}
.hero-title {
  margin: 20px 0 24px;
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.hero-sub {
  max-width: 22em;
  font-size: var(--fs-lede);
  line-height: 1.4;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

/* Agent console */
.console {
  background: var(--panel);
  color: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(17, 17, 17, 0.5);
  font-family: var(--mono);
  font-size: 12.5px;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--panel-line);
  color: var(--panel-muted);
}
.console-dots { display: flex; gap: 6px; }
.console-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(250, 248, 245, 0.18);
}
.console-title { flex: 1; }
.console-tag {
  padding: 2px 8px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.console-log {
  display: grid;
  padding: 10px 18px;
}
.console-log li {
  display: grid;
  grid-template-columns: 10px 120px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--panel-line);
  white-space: nowrap;
}
.console-log li:last-child { border-bottom: 0; }
.console-log .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  transform: translateY(-1px);
}
.console-log .msg { color: var(--panel-muted); overflow: hidden; text-overflow: ellipsis; }
.console-log .human .dot { background: #f2c14e; }
.console-log .human .agent,
.console-log .human .msg { color: #f2c14e; }
.console-log.is-animated li { opacity: 0; transform: translateY(4px); transition: opacity 0.35s, transform 0.35s; }
.console-log.is-animated li.on { opacity: 1; transform: none; }
.console-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--panel-line);
  color: var(--panel-muted);
}
.caret {
  flex-shrink: 0;
  width: 7px; height: 14px;
  background: var(--green-bright);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ===== Sections ===== */
.section { padding-top: clamp(112px, 12vw, 192px); }

.section-title {
  margin-top: 16px;
  font-size: var(--fs-title);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.section-sub {
  margin-top: 16px;
  max-width: 34em;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--muted);
}
.statement {
  margin-top: 20px;
  max-width: 21em;
  font-size: var(--fs-statement);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.lede {
  margin-top: 28px;
  max-width: 30em;
  font-size: var(--fs-lede);
  line-height: 1.45;
  color: var(--muted);
}

/* ===== The team ===== */
.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
}
.role {
  padding: var(--card-pad);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.role h3 {
  margin: clamp(48px, 6vw, 96px) 0 12px;
  font-size: var(--fs-statement);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.role p {
  max-width: 24em;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--muted);
}
.agent-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 18px 24px;
  border-radius: var(--radius);
  background: var(--panel);
  color: rgba(250, 248, 245, 0.85);
  font-family: var(--mono);
  font-size: 13px;
}

/* ===== The system ===== */
.track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: clamp(48px, 6vw, 88px);
}
.track li {
  position: relative;
  padding: 28px 16px 0 0;
  border-top: 1px solid var(--line-strong);
}
.track li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px var(--paper);
}
.track h3 {
  margin: 10px 0 6px;
  font-size: var(--fs-card);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.track p {
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--muted);
}
.track .is-learn::before { background: var(--green); }
.track .is-learn h3,
.track .is-learn .idx { color: var(--green); }
.track-loop {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--green);
}

.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(64px, 8vw, 112px);
  padding: var(--card-pad);
  border-radius: var(--radius);
}
.trust h3 {
  grid-row: span 2;
  max-width: 12em;
  font-size: var(--fs-title);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.trust p {
  max-width: 28em;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--panel-muted);
}
.trust .chips { margin-top: 8px; }

/* ===== Services ===== */
.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
}
.offer {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: var(--card-pad);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.offer:not(.panel) { background: var(--surface); }
.offer h3 {
  margin: clamp(40px, 5vw, 72px) 0 12px;
  font-size: var(--fs-title);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.offer p {
  max-width: 24em;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--muted);
}
.offer .chips { margin-top: auto; padding-top: 32px; }
.offer-lead { border-color: var(--panel); }
.offer-lead .idx { color: var(--green-bright); }
.offer-lead p { color: var(--panel-muted); }

/* ===== Track record ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.stat { padding: 32px 28px 36px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-num {
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}
.stat-text {
  margin-top: 16px;
  max-width: 18em;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--muted);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-grid .lede { max-width: 22em; }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
  padding: var(--card-pad);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.contact-form label { display: grid; gap: 8px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 6px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  outline: none;
  resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--green); }
.contact-form .btn { width: 100%; margin-top: 4px; }

/* ===== Footer ===== */
.site-footer { padding-top: clamp(120px, 13vw, 208px); padding-bottom: 32px; }

.wordmark {
  display: block;
  margin-bottom: clamp(8px, 1.5vw, 20px);
  font-size: 17vw;           /* refined by fitWordmark() in script.js */
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
  white-space: nowrap;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-footer);
  line-height: 1.5;
  letter-spacing: -0.03em;
}
.footer-links a:hover { text-decoration: underline; }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .caret { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .track { grid-template-columns: repeat(4, 1fr); row-gap: 40px; }
  .offers { grid-template-columns: 1fr; }
  .offer { min-height: 0; }
  .offer h3 { margin-top: 32px; }

  :root {
    --header-h: 60px;
    --fs-body: 16px;
  }

  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 6px;
    padding: 12px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    font-size: 32px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .site-nav.open { opacity: 1; transform: none; pointer-events: auto; }

  .hero-inner,
  .contact-grid,
  .roles,
  .trust { grid-template-columns: 1fr; }
  .hero-inner { min-height: 0; }
  .trust h3 { grid-row: auto; }
  .role h3 { margin-top: 40px; }

  .stats { grid-template-columns: 1fr; }
  .stat { padding: 24px 0 28px; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }

  .footer-links { flex-wrap: wrap; justify-content: flex-start; column-gap: 24px; }
}

@media (max-width: 560px) {
  .track { grid-template-columns: 1fr 1fr; }
  .agent-bar { align-items: flex-start; line-height: 1.5; }
  .agent-bar .caret { margin-top: 3px; }
  .console-log li { grid-template-columns: 10px 104px 1fr; gap: 10px; }
  .contact-form { grid-template-columns: 1fr; }
}
