/* ===========================================================
   Gregory Hassett — AI/ML & Software Systems Architect
   Modern minimal dark theme
   =========================================================== */

:root {
  --bg:           #0a0b0d;
  --bg-alt:       #101216;
  --panel:        #14171c;
  --panel-hover:  #181c22;
  --border:       #232830;
  --border-soft:  #1b2026;
  --text:         #e9ebef;
  --text-muted:   #9aa1ad;
  --text-faint:   #6b7280;
  --accent:       #5eead4;   /* teal */
  --accent-2:     #7c8cff;   /* indigo */
  --accent-ink:   #06231f;
  --radius:       14px;
  --radius-sm:    9px;
  --maxw:         1080px;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }

.accent { color: var(--accent); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border-soft);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 13px; font-weight: 700; letter-spacing: -0.01em; }
.brand-badge {
  display: inline-flex; align-items: center;
  background: #f4f5f7; border-radius: 8px; padding: 6px 11px;
  box-shadow: 0 2px 10px -4px rgba(0,0,0,0.6);
}
.brand-badge img { display: block; height: 22px; width: auto; }
.brand-text { font-size: 16px; }

@media (max-width: 420px) { .brand-text { display: none; } }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-muted); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 8px;
  transition: border-color 0.2s, background 0.2s !important;
}
.nav-cta:hover { border-color: var(--accent); background: rgba(94,234,212,0.06); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8af0e0);
  color: #04201c;
  box-shadow: 0 6px 24px -8px rgba(94,234,212,0.5);
}
.btn-primary:hover { box-shadow: 0 10px 30px -8px rgba(94,234,212,0.6); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(94,234,212,0.05); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-meta {
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  opacity: 0.7; border: 1px solid currentColor; border-radius: 5px;
  padding: 1px 6px;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 12vh, 130px) 0 clamp(56px, 9vh, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(124,140,255,0.10), transparent 70%),
    radial-gradient(55% 45% at 90% 10%, rgba(94,234,212,0.10), transparent 70%);
}
.hero-inner { max-width: 840px; }
.eyebrow {
  margin: 0 0 22px; font-family: "JetBrains Mono", monospace;
  font-size: 13px; letter-spacing: 0.04em; color: var(--accent);
}
.hero h1 { font-size: clamp(33px, 5.6vw, 60px); font-weight: 800; letter-spacing: -0.03em; }
.hero-lede {
  margin: 26px 0 0; max-width: 660px;
  font-size: clamp(17px, 2vw, 20px); color: var(--text-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 40px;
  list-style: none; margin: 56px 0 0; padding: 36px 0 0;
  border-top: 1px solid var(--border-soft);
}
.hero-stats li { display: flex; flex-direction: column; gap: 3px; }
.stat-num {
  font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 14px; color: var(--text-faint); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 11vh, 110px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border-soft); }
.section-eyebrow {
  margin: 0 0 14px; font-family: "JetBrains Mono", monospace;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.section-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; max-width: 640px; }
.section-intro { margin: 20px 0 0; max-width: 640px; color: var(--text-muted); font-size: 18px; }

/* ---------- Capabilities ---------- */
.cap-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px; margin-top: 52px;
}
.cap-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.cap-card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--panel-hover); }
.cap-card h3 { font-size: 19px; margin-bottom: 12px; }
.cap-card p { margin: 0; color: var(--text-muted); font-size: 15.5px; line-height: 1.6; }

.tag-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 18px 0 0; padding: 0;
}
.tag-list li {
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  color: var(--text-muted); background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 6px; padding: 4px 9px;
}

/* ---------- Selected work ---------- */
.work-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 18px; margin-top: 52px;
}
.work-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.work-card:hover { border-color: var(--accent-2); transform: translateY(-4px); }
.work-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.work-head h3 { font-size: 22px; }
.work-meta {
  font-family: "JetBrains Mono", monospace; font-size: 12.5px;
  color: var(--text-faint); white-space: nowrap;
}
.work-summary { margin: 14px 0 0; font-size: 16px; color: var(--text); }
.work-detail { margin: 12px 0 0; font-size: 15px; color: var(--text-muted); line-height: 1.62; }
.work-card .tag-list { margin-top: auto; padding-top: 20px; }

.work-more { margin: 40px 0 0; color: var(--text-muted); font-size: 16px; }
.work-more a { color: var(--accent); border-bottom: 1px solid rgba(94,234,212,0.35); padding-bottom: 1px; }
.work-more a:hover { border-bottom-color: var(--accent); }

/* ---------- Track record ---------- */
.record-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 18px; margin-top: 52px;
}
.record-item {
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 28px;
  border-left: 3px solid var(--accent);
}
.record-item p { margin: 0; color: var(--text-muted); font-size: 16px; }
.record-item strong { color: var(--text); font-weight: 600; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 80% at 50% 0%, rgba(124,140,255,0.10), transparent 70%);
}
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .section-intro { margin-inline: auto; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 44px 0; background: var(--bg-alt); }
.footer-inner { display: flex; flex-direction: column; gap: 6px; }
.footer-badge {
  display: inline-flex; align-self: flex-start;
  background: #f4f5f7; border-radius: 9px; padding: 9px 15px; margin-bottom: 14px;
  box-shadow: 0 2px 12px -4px rgba(0,0,0,0.5);
}
.footer-badge img { display: block; height: 30px; width: auto; }
.footer-brand { margin: 0; font-weight: 700; font-size: 16px; }
.footer-note { margin: 0; color: var(--text-muted); font-size: 14px; }
.footer-copy { margin: 8px 0 0; color: var(--text-faint); font-size: 13px; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .container { padding-inline: 20px; }
  .work-list, .cap-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .work-head h3 { font-size: 20px; }
}
