:root {
  --bg: #0a0a0a;
  --bg-elevated: rgba(255, 255, 255, 0.05);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --accent-green: #4caf50;
  --accent-blue: #0a84ff;
  --radius-pill: 999px;
  --radius-card: 20px;
  --font: 'Poppins', sans-serif;
  --container-width: 960px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* Nav */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.wordmark {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}

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

.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}

/* Hero */

.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 20px;
}

.glass-headline {
  height: clamp(220px, 34vw, 420px);
  margin: 0 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero .subhead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Cards */

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  backdrop-filter: blur(10px);
  padding: 32px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 40px 0;
}

.section-grid .card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.section-grid .card ul {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-grid .card ul li {
  margin-bottom: 10px;
}

/* Pills / buttons */

.pill {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--accent-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.pill:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.stat-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: var(--accent-green);
  font-size: 0.9rem;
  font-weight: 500;
}

/* About page */

.about-hero {
  padding: 100px 0 40px;
}

.about-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 24px;
}

.about-body p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
}

.pull-quote {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0;
  max-width: 680px;
}

/* Case study */

.case-study {
  margin: 40px 0;
}

.case-study h4 {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.case-study-highlight {
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
}

.case-study-highlight h5 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.case-study-highlight p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Admin */

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 24px 0;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
}

.admin-field textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-fieldset {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 16px;
  margin: 0;
}

.admin-fieldset legend {
  padding: 0 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

footer {
  padding: 60px 24px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
