@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #FBFAF7;
  --bg-hero: #F0F4FA;
  --surface: #FFFFFF;
  --accent: #2F6FE4;
  --accent-soft: #EAF1FC;
  --on-accent: #FFFFFF;
  --text-primary: #1A2233;
  --text-secondary: #5B6472;
  --text-muted: #8A93A3;
  --border: #E2E5EA;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

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

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; }
.nav { display: flex; gap: 24px; font-size: 13px; }
.nav a { color: var(--text-secondary); padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text-primary); }
.nav a.active { color: var(--text-primary); font-weight: 500; border-bottom-color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  padding: 20px 32px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links a { margin-left: 16px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text-primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
  border: none;
}
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Hero */
.hero {
  position: relative;
  background-color: var(--bg-hero);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Crect x='4' y='4' width='7' height='7' rx='1' fill='none' stroke='%239DC3EE' stroke-width='0.75' opacity='0.45'/%3E%3Cline x1='5.5' y1='2' x2='5.5' y2='4' stroke='%239DC3EE' stroke-width='0.6' opacity='0.4'/%3E%3Cline x1='9.5' y1='2' x2='9.5' y2='4' stroke='%239DC3EE' stroke-width='0.6' opacity='0.4'/%3E%3Cline x1='5.5' y1='11' x2='5.5' y2='13' stroke='%239DC3EE' stroke-width='0.6' opacity='0.4'/%3E%3Cline x1='9.5' y1='11' x2='9.5' y2='13' stroke='%239DC3EE' stroke-width='0.6' opacity='0.4'/%3E%3Crect x='14' y='13' width='7' height='7' rx='1' fill='none' stroke='%239DC3EE' stroke-width='0.75' opacity='0.35'/%3E%3Cline x1='15.5' y1='11' x2='15.5' y2='13' stroke='%239DC3EE' stroke-width='0.6' opacity='0.3'/%3E%3Cline x1='19.5' y1='11' x2='19.5' y2='13' stroke='%239DC3EE' stroke-width='0.6' opacity='0.3'/%3E%3Cline x1='15.5' y1='20' x2='15.5' y2='22' stroke='%239DC3EE' stroke-width='0.6' opacity='0.3'/%3E%3Cline x1='19.5' y1='20' x2='19.5' y2='22' stroke='%239DC3EE' stroke-width='0.6' opacity='0.3'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 24px 24px;
  padding: 64px 32px 56px;
  text-align: center;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 8px;
}
.hero h1 { font-size: 32px; margin-bottom: 10px; }
.hero p.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 28px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
}
.card i { font-size: 20px; color: var(--accent); }
.card p.card-title { font-weight: 500; font-size: 14px; margin: 10px 0 2px; }
.card p.card-sub { font-size: 13px; color: var(--text-secondary); margin: 0; }

section { padding: 40px 32px; }
section:not(.hero) {
  max-width: var(--max-width);
  margin: 0 auto;
  box-sizing: border-box;
}
section.tight-top { padding-top: 24px; }
.section-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

/* Project cards */
.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  margin-bottom: 16px;
}
.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.project-card h3 { font-size: 16px; }
.project-card-period { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.project-card p.desc { font-size: 14px; color: var(--text-secondary); margin: 8px 0 12px; }
.project-card .tag-row { margin-bottom: 0; }

/* Timeline */
.timeline-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-date {
  width: 130px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.timeline-role { font-weight: 500; font-size: 14px; margin: 0; }
.timeline-org { font-size: 13px; color: var(--text-secondary); margin: 2px 0 8px; }
.timeline-item ul { margin: 6px 0 0; padding-left: 18px; }
.timeline-item li { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }

/* Tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.tag-outline {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Page header (non-home pages) */
.page-header { padding: 48px 32px 16px; text-align: left; }
.page-header h1 { font-size: 26px; }
.page-header p { color: var(--text-secondary); margin-top: 8px; }

/* Responsive embed wrapper (Looker Studio dashboard on /architecture) */
.embed-responsive {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 ratio, matches the 600x450 embed */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 640px) {
  .header-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
  .timeline-item { flex-direction: column; gap: 4px; }
  .timeline-date { width: auto; }
}
