:root {
  --bg: #14181B;
  --bg-2: #182430;
  --text: #F6F7F5;
  --muted: #9aa7b3;
  --accent: #E8A33D;
  --circuit: #24425E;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 50% 20%, var(--bg-2), var(--bg) 70%) fixed;
  color: var(--text);
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

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

/* global site nav, same on every page: brand on the left, links on the right */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px;
}

.site-nav-brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  padding: 10px 0;
}

.site-nav-brand:hover,
.site-nav-brand:focus-visible {
  color: var(--accent);
}

.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 6px 4px;
}

.site-nav-links a:hover,
.site-nav-links a:focus-visible {
  color: var(--accent);
}

/* pill-shaped label, used for eyebrow text and status badges */
.pill {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(232, 163, 61, 0.08);
  border: 1px solid rgba(232, 163, 61, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
}

/* reusable card, used for project links on the home page and
   "more work" links at the bottom of case studies */
.work-grid {
  display: grid;
  gap: 12px;
}

.work-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--circuit);
  border-radius: 10px;
  background: rgba(36, 66, 94, 0.15);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.work-card:hover,
.work-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.work-card .work-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.work-card .work-desc {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* amber call-to-action button, used to push visitors toward
   scheduling a call or emailing directly */
.cta-btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bg);
  background: var(--accent);
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 163, 61, 0.25);
}

/* round social icon links, used in the footer of every page */
.links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.links a:hover,
.links a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-footer {
  margin-top: 48px;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* FlyRank graduate badge slot. While the real badge/verification link is
   pending, this renders as an honest "pending" pill instead of a fake link —
   see the HTML comment beside it for the swap-in markup. */
.grad-badge,
.grad-badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px dashed var(--muted);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.grad-badge {
  border-style: solid;
  border-color: var(--accent);
  color: var(--text);
  text-decoration: none;
}

.grad-badge img {
  display: block;
  height: 20px;
  width: auto;
}

/* working contact form, wired to a free form service */
.contact {
  text-align: left;
  margin: 0 0 36px;
}

.contact h2 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 18px;
}

.contact form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(36, 66, 94, 0.15);
  border: 1px solid var(--circuit);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(154, 167, 179, 0.6);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.contact .cta-btn {
  border: none;
  cursor: pointer;
  justify-self: start;
}

.contact .cta-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  margin: 0;
}

.form-status.ok {
  color: var(--accent);
}

.form-status.error {
  color: #ff8f8f;
}

@media (max-width: 420px) {
  .pill {
    font-size: 0.7rem;
    padding: 5px 12px;
  }
}

@media (max-width: 600px) {
  .site-nav {
    justify-content: center;
    flex-direction: column;
  }

  .site-nav-links {
    gap: 6px;
    justify-content: center;
  }

  .site-nav-links a {
    font-size: 1rem;
    padding: 10px 8px;
  }

  .site-footer {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact .cta-btn {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .more-work .work-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
