:root {
  --background-color: #f4f4f6;
  --section-alt: #ececef;
  --surface: #ffffff;
  --border-color: #d6d6dc;
  --text-color: #26273b;
  --muted-color: #5f6076;
  --button-color: #26273b;
  --button-hover: #3b3c52;
  --alt-text-color: #ffffff;
  --hero-bg: #1c1d2b;
  --hero-text: #f0f0f4;
  --hero-muted: #a3a3ad;
  --accent: #6b6df2;
  --shadow: 0 4px 12px rgba(38, 39, 59, 0.08);
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
}

h1, h2, h3 {
  font-family: 'Roboto Slab', Georgia, serif;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.4em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.6em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

.eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--accent);
  margin: 0 0 0.5em;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background-color: var(--section-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-intro {
  color: var(--muted-color);
  max-width: 70ch;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: var(--hero-bg);
  color: var(--hero-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
}

.nav-brand {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hero-text);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  color: var(--hero-text);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--hero-text);
}

.nav-links .nav-cta {
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.nav-links .nav-cta:hover {
  background-color: var(--button-hover);
  color: #ffffff;
}

/* Hero */
.hero {
  background-color: var(--hero-bg);
  color: var(--hero-text);
  padding: 80px 0 72px;
}

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

.hero-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-blurb {
  font-size: 1.1rem;
  color: var(--hero-muted);
  margin-bottom: 1.5em;
  max-width: 60ch;
}

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

.hero-photo-wrap {
  flex-shrink: 0;
}

.hero-photo {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--button-hover);
  box-shadow: 10px 10px 0 rgba(107, 109, 242, 0.25);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  margin: 0 12px 0 0;
}

.btn:last-child {
  margin-right: 0;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--button-hover);
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--hero-text);
  border-color: var(--button-hover);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--hero-text);
}

.cta-row {
  margin-bottom: 1.5em;
}

/* Social links */
.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--button-hover);
  color: var(--hero-text);
  background-color: transparent;
  text-decoration: none;
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

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

.contact-section .social-links a {
  color: var(--hero-text);
  border-color: var(--button-hover);
  width: auto;
  padding: 0 14px;
  height: 40px;
  font-size: 0.95rem;
}

.contact-section .social-links a:hover {
  color: var(--accent);
}

/* Stats band */
.stats {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--button-color);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--muted-color);
}

/* Company row */
.company-row {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.company-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted-color);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.company-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.company-badge {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 700;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1rem;
  color: var(--muted-color);
}

/* Cards (skills) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(107, 109, 242, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

.card h3 {
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted-color);
}

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.work-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.work-tags span {
  background-color: rgba(107, 109, 242, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.work-card h3 {
  font-size: 1.05rem;
}

.work-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted-color);
}

.work-card p a {
  color: var(--accent);
}

/* Services */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px 32px;
  margin-top: 28px;
}

.service {
  border-top: 2px solid var(--button-color);
  padding-top: 14px;
}

.service h3 {
  font-size: 1.05rem;
}

.service p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted-color);
}

/* Articles */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 24px;
}

.article {
  display: block;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text-color);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease;
}

.article:hover {
  border-color: var(--accent);
}

.article-meta {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.article h3 {
  margin: 0;
  font-size: 1.1rem;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--surface);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-family: 'Roboto Slab', Georgia, serif;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  padding: 0 22px 18px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-color);
}

/* Contact */
.contact-section {
  background-color: var(--hero-bg);
  color: var(--hero-text);
  padding: 80px 0;
}

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

.contact-section h2 {
  color: var(--hero-text);
}

.contact-section .section-intro {
  color: var(--hero-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  margin-top: 32px;
}

.contact-direct .btn {
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: var(--hero-text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  margin-bottom: 16px;
  border: 1px solid var(--button-hover);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--hero-text);
  color: var(--text-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Footer */
.site-footer {
  background-color: var(--section-alt);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--button-color);
}

.footer-inner .nav-links a {
  color: var(--text-color);
}

.footer-inner .nav-links a:hover {
  color: var(--accent);
  background-color: transparent;
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--muted-color);
  margin: 0;
}

.footer-legal a {
  color: var(--muted-color);
}

/* Responsive */
@media only screen and (max-width: 800px) {
  .hero {
    padding: 56px 0 48px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 32px;
  }

  .hero-photo {
    width: 200px;
    height: 200px;
  }

  .hero-blurb {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row .btn {
    margin-bottom: 8px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav {
    flex-direction: column;
    gap: 8px;
  }

  .nav-links {
    justify-content: center;
  }

  .section {
    padding: 56px 0;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #14151f;
    --section-alt: #1c1d2b;
    --surface: #232438;
    --border-color: #3a3b4d;
    --text-color: #f0f0f4;
    --muted-color: #a3a3ad;
    --button-color: #26273b;
    --button-hover: #3b3c52;
    --alt-text-color: #f0f0f4;
    --accent: #8b8df5;
    --hero-bg: #0e0f17;
    --hero-text: #f0f0f4;
    --hero-muted: #a3a3ad;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .stat-number {
    color: var(--text-color);
  }

  .contact-form input,
  .contact-form textarea {
    background-color: #0e0f17;
    color: var(--text-color);
    border-color: #3a3b4d;
  }

  .company-badge {
    background-color: var(--section-alt);
  }
}