/* ProcessWorks — shared styles (single font, dark theme) */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0F172A;          /* slate-900 */
  --surface: #111827;     /* gray-900 */
  --orange: #EE741B;
  --orange-dark: #D55F08;
  --ink: #F3F4F6;         /* gray-100 */
  --ink-soft: #CBD5E1;    /* slate-300 */
  --muted: #94A3B8;       /* slate-400 */
  --rule: rgba(255,255,255,0.10);
  --max: 680px;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography — single family, no italics, tight scale */
h1, h2, h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  line-height: 1.25;
  font-style: normal;
}
h1 { font-size: 28px; }
h2 { font-size: 20px; margin-top: 40px; color: var(--ink-soft); }
h3 { font-size: 17px; margin-top: 20px; font-weight: 600; color: var(--ink-soft); }

p { margin: 0 0 16px; color: var(--ink); }
ul { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 8px; color: var(--ink); }
li strong { color: var(--ink); font-weight: 600; }

small, .caption { color: var(--muted); font-size: 14px; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 32px 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
section.hero { padding: 32px 0 28px; border-bottom: 1px solid var(--rule); }

/* ---------- Header / Nav ---------- */
.site-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  gap: 16px;
}
.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand img { height: 40px; width: auto; }
.brand .wordmark-fallback {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.brand .wordmark-fallback .works { color: var(--orange); }
.brand .wordmark-fallback .process { color: var(--ink); }
.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
}
.nav-links a:hover { color: var(--orange); }
@media (max-width: 520px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.portrait {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1f2937;
  border: 1px solid var(--rule);
}
.hero-text { flex: 1; min-width: 220px; }
.hero-text h1 { margin-bottom: 8px; font-size: 32px; }
.hero-tag {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 16px;
}
.hero-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}

@media (min-width: 640px) {
  h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  .portrait { width: 160px; height: 160px; }
  .hero-text h1 { font-size: 36px; }
  .brand img { height: 48px; }
}

/* ---------- Numbers strip ---------- */
.numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
  padding: 16px 0;
}
.number .figure {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.number .label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
@media (min-width: 640px) {
  .numbers { grid-template-columns: repeat(4, 1fr); }
  .number .figure { font-size: 26px; }
}

/* ---------- CTA buttons (uniform orange pills) ---------- */
.cta-primary,
.cta-secondary {
  display: inline-block;
  background: var(--orange);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--orange-dark);
  text-align: center;
  transition: background 0.15s;
  line-height: 1.2;
}
.cta-primary:hover,
.cta-secondary:hover { background: var(--orange-dark); color: #ffffff; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

/* ---------- Panels ---------- */
.panel-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.panel-split > div { padding: 20px 0; }
.panel-split > div + div { border-top: 1px solid var(--rule); }
.panel-split h3 { margin-top: 0; color: var(--ink); }

@media (min-width: 640px) {
  .panel-split {
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
  }
  .panel-split > div { padding: 24px 0; }
  .panel-split > div + div { border-top: 0; border-left: 1px solid var(--rule); padding-left: 32px; }
}

/* ---------- View I work from ---------- */
.view {
  border-left: 3px solid var(--orange);
  padding: 4px 0 4px 20px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}
.view p { margin-bottom: 12px; color: var(--ink); }
.view p:last-child { margin-bottom: 0; }

/* ---------- Sector links ---------- */
.sector-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}
.sector-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}
.sector-link:hover {
  border-color: var(--orange);
  background: #1a2233;
}
.sector-link .arrow { color: var(--orange); font-weight: 600; }

/* ---------- Logo row ---------- */
.logos {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 15px;
  padding: 8px 0;
  line-height: 2.2;
}
.logos .sep { color: var(--rule); }

/* ---------- Lists ---------- */
.list-problems, .list-plain {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.list-problems li, .list-plain li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.5;
  margin: 0;
  color: var(--ink);
}
.list-problems li:last-child, .list-plain li:last-child { border-bottom: 0; }

/* ---------- Credentials ---------- */
.credentials {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}
.credentials strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 24px 48px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: 32px;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
