/* ============================================================
   Colby Smith — portfolio v2
   Dark theme + green accent kept from v1; console/HUD chrome
   replaced with a clean card-based portfolio layout.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #0B0E0C;
  --bg-alt: #0D110E;
  --surface: #121613;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F0F4F0;
  --text-2: #9CA8A0;
  --accent: #3BE08A;
  --accent-soft: rgba(59, 224, 138, 0.12);
  --accent-line: rgba(59, 224, 138, 0.35);
  --amber: #D9A441;

  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --disp: 'Space Grotesk', var(--sans);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --sect-y: clamp(4rem, 9vw, 7.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #0B0E0C; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
strong { color: var(--text); font-weight: 600; }

.skip-link {
  position: absolute; left: -9999px; top: 0.5rem; z-index: 200;
  padding: 0.5rem 1rem; background: var(--accent); color: #0B0E0C; border-radius: 999px;
}
.skip-link:focus { left: 0.5rem; }
.accent { color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem var(--pad-x);
  background: rgba(11, 14, 12, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms linear;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text); font-family: var(--disp); font-weight: 700; font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: #0B0E0C;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
}
.nav { display: flex; gap: 1.6rem; }
.nav a { color: var(--text-2); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.menu-btn {
  display: none; font: inherit; font-weight: 500; color: var(--text);
  background: none; border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 0.35rem 1rem; cursor: pointer;
}
.mobile-menu {
  position: fixed; inset: 0; top: 56px; z-index: 90; background: var(--bg);
  padding: 2rem var(--pad-x);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.4rem; }
.mobile-menu a { color: var(--text); font-family: var(--disp); font-size: 1.5rem; font-weight: 500; }
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* ---------- layout ----------
   Sections pad themselves to a shared 1120px column so every child
   (kicker, heading, lead, grids) aligns on the same left edge. */
main { display: block; }
.section, .hero {
  padding-left: max(var(--pad-x), calc((100% - var(--maxw)) / 2));
  padding-right: max(var(--pad-x), calc((100% - var(--maxw)) / 2));
}
.section { padding-top: var(--sect-y); padding-bottom: var(--sect-y); }
section[id], .section[id] { scroll-margin-top: 3.5rem; } /* clear the sticky header on anchor jumps */
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.kicker {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--accent); font-family: var(--disp); font-weight: 500;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: 1rem;
}
.kicker::before { content: ''; width: 1.8rem; height: 2px; background: var(--accent); }
h1, h2, h3 { font-family: var(--disp); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.1rem; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.section-lead { color: var(--text-2); max-width: 46rem; margin-bottom: 2.6rem; }

/* ---------- hero ---------- */
.hero {
  min-height: 78svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(5rem, 12vw, 8rem); padding-bottom: var(--sect-y);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 340px at 18% 20%, var(--accent-soft), transparent 70%),
    radial-gradient(480px 300px at 85% 75%, rgba(59, 224, 138, 0.07), transparent 70%);
}
.hero > * { position: relative; width: 100%; }
.eyebrow {
  color: var(--accent); font-family: var(--disp); font-weight: 500;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; line-height: 1.02;
  max-width: 16ch; margin-bottom: 1.3rem;
}
.hero-sub { color: var(--text-2); font-size: 1.1rem; max-width: 42rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.hero-note { color: var(--text-2); font-size: 0.9rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text); font: inherit; font-size: 0.95rem; font-weight: 500;
  background: none; cursor: pointer;
  transition: border-color 160ms linear, transform 160ms var(--ease), background 160ms linear;
}
.btn:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: #0B0E0C; font-weight: 600;
  box-shadow: 0 8px 24px -10px rgba(59, 224, 138, 0.45);
}
.btn-primary:hover { background: #4FE79A; }

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-photo {
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  width: 100%; max-width: 380px; justify-self: center;
}
.about-grid p { color: var(--text-2); margin-bottom: 1rem; max-width: 54ch; }
.about-grid p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; justify-self: start; }
}

/* ---------- work cards ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 220ms var(--ease), border-color 220ms linear, box-shadow 220ms linear;
}
.card:hover {
  transform: translateY(-4px); border-color: var(--accent-line);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}
.card-media { position: relative; border-bottom: 1px solid var(--border); }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* onboarding pipeline diagram — plain documentation-style flow */
.card-diagram { padding: 1.4rem; background: var(--bg); }
.flow { list-style: none; counter-reset: step; max-width: 340px; margin: 0 auto; }
.flow li {
  counter-increment: step;
  display: flex; align-items: center; gap: 0.7rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem; font-size: 0.88rem; color: var(--text);
  position: relative; background: var(--surface);
}
.flow li::before {
  content: counter(step);
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #0B0E0C;
  font-family: var(--disp); font-size: 0.7rem; font-weight: 700;
}
.flow li + li { margin-top: 1.15rem; }
.flow li + li::after {
  content: '↓'; position: absolute; top: -1.15rem; left: 50%;
  transform: translateX(-50%); line-height: 1.15rem;
  color: var(--accent); font-size: 0.8rem;
}
.badge {
  position: absolute; top: 0.9rem; left: 0.9rem;
  background: var(--accent); color: #0B0E0C;
  font-family: var(--disp); font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem; border-radius: 999px;
}
.card-body { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.tag {
  color: var(--accent); font-family: var(--disp); font-weight: 500;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em;
}
.card-body > p { color: var(--text-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  font-family: var(--mono); font-size: 0.75rem; color: var(--text-2);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 0.25rem 0.75rem;
}
.card-links { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: auto; }
.card-links a { font-weight: 500; font-size: 0.95rem; }

/* ---------- demos ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }
.demo .tag { color: var(--amber); }
.demo:hover { transform: none; }

.demo-controls { display: flex; gap: 0.8rem; align-items: flex-end; flex-wrap: wrap; }
.demo-controls .field { display: flex; flex-direction: column; gap: 0.35rem; }
.demo-controls label { font-size: 0.8rem; color: var(--text-2); font-weight: 500; }
.demo-controls input, .demo-controls select {
  font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem; min-width: 200px;
}
.demo-controls input::placeholder { color: var(--text-2); }
@media (max-width: 576px) {
  .demo-controls .field { width: 100%; }
  .demo-controls input, .demo-controls select { width: 100%; min-width: 0; }
}

.demo-out:empty { display: none; }
.demo-out { border-top: 1px solid var(--border); padding-top: 1.2rem; }

/* processing log (demo-internal UI) */
.proc { font-family: var(--mono); font-size: 0.8rem; line-height: 2.1; color: var(--text-2); white-space: pre-wrap; }
.proc .ok { color: var(--accent); }
.proc .amber { color: var(--amber); }

/* audit result */
.audit { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; margin-top: 0.6rem; }
@media (max-width: 576px) { .audit { grid-template-columns: 1fr; } }
.audit-grade {
  font-family: var(--disp); font-weight: 700; font-size: 2.2rem; line-height: 1;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  width: 92px; height: 92px; display: flex; align-items: center; justify-content: center;
}
.audit-grade small { font-size: 1rem; color: var(--text-2); font-weight: 500; margin-top: 0.6rem; }
.audit-grade.good { color: var(--accent); border-color: var(--accent-line); }
.audit-grade.mid { color: var(--amber); border-color: rgba(217, 164, 65, 0.4); }
.audit h4, .demo-out h4 {
  font-family: var(--disp); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-2); margin: 1.1rem 0 0.4rem; font-weight: 500;
}
.audit h4:first-child, .demo-out h4:first-child { margin-top: 0; }
.audit ul, .demo-out ul { list-style: none; }
.audit li, .demo-out li { padding-left: 1.1rem; position: relative; line-height: 1.8; color: var(--text-2); font-size: 0.95rem; }
.audit li::before, .demo-out li::before {
  content: ''; position: absolute; left: 0; top: 0.72em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.audit-summary { color: var(--text-2); font-size: 0.95rem; }
.audit-score-line { font-size: 0.85rem; color: var(--text-2); margin-top: 0.6rem; }
.audit-score-line b { color: var(--text); }

/* lead finder results */
.lead-list { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 0.6rem; }
.lead-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.9rem 1rem; }
.lead-canonical { border-color: var(--accent-line); }
.lead-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.lead-head h4 { margin: 0 !important; color: var(--text) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 0.98rem !important; }
.score-chip {
  font-family: var(--disp); font-weight: 700; font-size: 0.75rem;
  border-radius: 999px; padding: 0.15rem 0.7rem; white-space: nowrap;
}
.score-chip.hot { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.score-chip.warm { background: rgba(217, 164, 65, 0.1); color: var(--amber); border: 1px solid rgba(217, 164, 65, 0.35); }
.lead-area { color: var(--text-2); font-size: 0.8rem; margin: 0.1rem 0 0.4rem; }
.lead-note { color: var(--accent); font-size: 0.82rem; font-weight: 500; margin-top: 0.5rem; }

/* outreach drafts (email + call script) */
.draft {
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg); padding: 1rem 1.1rem; margin-top: 0.3rem;
}
.draft p { color: var(--text-2); font-size: 0.92rem; margin-bottom: 0.7rem; }
.draft p:last-child { margin-bottom: 0; }
.draft-subject { color: var(--text) !important; font-weight: 600; }

.sim-note { font-size: 0.8rem; color: var(--amber); margin-top: 0.9rem; }

/* ---------- skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 860px) { .skills-grid { grid-template-columns: 1fr; } }
.skill-lane {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem;
}
.skill-lane h3 {
  font-size: 1.05rem; padding-bottom: 0.9rem; margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; gap: 0.6rem;
}
.lane-num { color: var(--accent); font-size: 0.9rem; }
.skill-lane ul { list-style: none; }
.skill-lane li { padding: 0.3rem 0 0.3rem 1.1rem; position: relative; color: var(--text-2); font-size: 0.95rem; }
.skill-lane li::before {
  content: ''; position: absolute; left: 0; top: 0.85em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.certs { color: var(--text-2); font-size: 0.9rem; margin-top: 2.4rem; }

/* ---------- contact ---------- */
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.8rem, 5vw, 3rem); max-width: 720px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 260px at 85% 0%, var(--accent-soft), transparent 70%);
}
.contact-card > * { position: relative; }
.contact-card .section-lead { margin-bottom: 1.8rem; }
.contact-rows { display: flex; flex-direction: column; gap: 1rem; }
.contact-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.contact-value { color: var(--text-2); font-size: 0.92rem; }
.btn-copy.copied { border-color: var(--accent); color: var(--accent); }

/* ---------- footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.6rem var(--pad-x); border-top: 1px solid var(--border);
  color: var(--text-2); font-size: 0.88rem;
}
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.seen { opacity: 1; transform: none; transition: opacity 500ms linear, transform 700ms var(--ease); }

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