:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-muted: #eef3f6;
  --text: #18212b;
  --muted-text: #5b6773;
  --border: #dce3ea;
  --accent: #1f6f8b;
  --accent-dark: #155270;
  --shadow: 0 10px 28px rgba(24, 33, 43, 0.08);
  --radius: 8px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent-dark);
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  background: rgba(247, 248, 250, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--muted-text);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.active {
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hero,
.page-header,
.section,
.cta-band {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px;
}

.hero {
  display: grid;
  min-height: 440px;
  align-items: center;
}

.hero-content,
.page-header {
  max-width: 780px;
}

.hero-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.18;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.15rem, 6vw, 4.25rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 12px 0 0;
  color: var(--muted-text);
}

.hero-text,
.page-header p {
  max-width: 720px;
  font-size: 1.15rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus {
  text-decoration: none;
}

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

.button.primary:hover,
.button.primary:focus {
  background: var(--accent-dark);
  color: #ffffff;
}

.button.secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border);
}

.button.secondary:hover,
.button.secondary:focus {
  border-color: var(--accent);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.muted {
  background: var(--surface-muted);
  max-width: none;
}

.muted > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card,
.contact-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.card-body,
.contact-card {
  padding: 24px;
}

.card-body h2,
.card-body h3 {
  margin-bottom: 8px;
}

.card-body .button {
  margin-top: 18px;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.service-item {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
}

.narrow {
  max-width: 840px;
}

.about-header {
  padding-bottom: 32px;
}

.about-content {
  padding-top: 28px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 42px;
  align-items: start;
}

.about-main {
  max-width: 720px;
}

.about-sidebar {
  display: grid;
  gap: 18px;
}

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

.compact-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted-text);
}

.compact-list li + li {
  margin-top: 7px;
}

.contact-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li + li {
  margin-top: 10px;
}

.case-study {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 24px 72px;
}

.case-study section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.case-study .wide-section {
  width: min(calc(100vw - 48px), var(--max-width));
  margin-left: 50%;
  transform: translateX(-50%);
}

.case-study .wide-section > h2,
.case-study .wide-section > p {
  max-width: 780px;
}

.live-dashboard-section {
  padding-bottom: 18px;
}

.feature-list {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted-text);
}

.feature-list li + li {
  margin-top: 8px;
}

.case-image {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.screenshot-stack {
  display: grid;
  gap: 24px;
  margin-top: 18px;
}

.screenshot-card {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.screenshot-card img {
  width: 100%;
  height: auto;
}

.screenshot-card figcaption {
  padding: 18px 20px 20px;
}

.screenshot-card figcaption strong,
.screenshot-card figcaption span {
  display: block;
}

.screenshot-card figcaption strong {
  color: var(--text);
}

.screenshot-card figcaption span {
  margin-top: 6px;
  color: var(--muted-text);
}

.power-bi-embed {
  width: 100%;
  margin-top: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.power-bi-embed iframe {
  display: block;
  width: 100%;
  height: 625px;
  min-height: 625px;
  border: 0;
}

.workflow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.workflow-strip span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 700;
}

.workflow-strip span:not(:last-child)::after {
  content: ">";
  margin-left: 12px;
  color: var(--accent);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .card-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-main {
    max-width: none;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px 20px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .hero-logo {
    width: 116px;
    height: 116px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 12px;
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .page-header,
  .section,
  .cta-band {
    padding: 52px 20px;
  }

  .about-header {
    padding-bottom: 24px;
  }

  .about-content {
    padding-top: 22px;
  }

  .hero {
    min-height: 380px;
  }

  .card-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .case-study {
    padding: 4px 20px 52px;
  }

  .case-study .wide-section {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .power-bi-embed iframe {
    height: 560px;
    min-height: 520px;
  }
}
