:root {
  --bg: #ffffff;
  --bg-muted: #f4fbff;
  --bg-panel: #ffffff;
  --bg-panel-strong: #eaf6ff;
  --bg-dark: #11567f;
  --bg-dark-strong: #0b3651;
  --accent: #00a1d9;
  --accent-hover: #29b5e8;
  --accent-bright: #29b5e8;
  --accent-strong: #3ea8ff;
  --accent-deep: #11567f;
  --accent-soft: rgba(0, 161, 217, 0.1);
  --accent-line: rgba(17, 86, 127, 0.16);
  --text: #0b1b2b;
  --text-muted: #60788d;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.76);
  --border: rgba(17, 86, 127, 0.12);
  --shadow: 0 10px 24px rgba(17, 86, 127, 0.06);
  --radius: 20px;

  /* Layout */
  --max-width: 1200px;
  --content-pad: clamp(1rem, 4vw, 2rem);

  /* Type scale */
  --text-sm: clamp(0.9rem, 0.86rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
  --text-lg: clamp(1.1rem, 1.02rem + 0.6vw, 1.35rem);

  --h1: clamp(2.4rem, 4vw, 3.6rem);
  --h2: clamp(1.6rem, 1.25rem + 1.4vw, 2.4rem);
  --h3: clamp(1.1rem, 1.02rem + 0.6vw, 1.4rem);

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-base: 1.6;

  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(41, 181, 232, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 52%, #f4fbff 100%);
  color: var(--text);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

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

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

h1 {
  font-size: var(--h1);
  line-height: var(--lh-tight);
}

h2 {
  font-size: var(--h2);
  line-height: var(--lh-snug);
}

h3 {
  font-size: var(--h3);
  line-height: var(--lh-snug);
}

main {
  width: min(100%, calc(var(--max-width) + (var(--content-pad) * 2)));
  margin: 0 auto;
  padding: 0 var(--content-pad) 4rem;
}

section[id] {
  scroll-margin-top: 7rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem var(--content-pad);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  flex-shrink: 0;
}

.logo-image {
  display: block;
  width: auto;
  height: clamp(44px, 5vw, 58px);
  object-fit: cover;
  object-position: center;
}

.wordmark {
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #0b1b2b;
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.site-nav a[aria-current='true'],
.mobile-menu a[aria-current='true'] {
  color: var(--accent-deep);
  font-weight: 600;
}

.site-nav a.accent,
.mobile-menu a.accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 161, 217, 0.18);
  background: rgba(0, 161, 217, 0.08);
  color: var(--accent-deep);
  font-weight: 600;
}

.site-nav a.accent:hover,
.mobile-menu a.accent:hover {
  background: rgba(0, 161, 217, 0.12);
  border-color: rgba(0, 161, 217, 0.28);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
}

.mobile-toggle span {
  width: 26px;
  height: 2px;
  background: var(--accent-deep);
  display: block;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem var(--content-pad);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 18px rgba(17, 86, 127, 0.06);
}

.mobile-menu a {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding: 4.25rem 0 3.5rem;
  align-items: start;
}

.hero-copy h1 {
  font-size: var(--h1);
  line-height: var(--lh-tight);
  margin-bottom: 1rem;
}

.hero-copy .lede {
  color: var(--text-muted);
  max-width: 60ch;
  font-size: var(--text-lg);
}

.hero-note {
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent-deep);
  margin-bottom: 0.75rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.btn {
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 161, 217, 0.18);
}

.btn.ghost {
  border-color: rgba(0, 161, 217, 0.22);
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.72);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 22px rgba(0, 161, 217, 0.22);
}

.btn.ghost:hover {
  border-color: rgba(0, 161, 217, 0.36);
  background: #ffffff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.hero-stats > div {
  padding: 1rem 1rem 0;
  border-top: 2px solid rgba(0, 161, 217, 0.14);
}

.hero-stats dt {
  font-size: 1.45rem;
  font-weight: 600;
}

.hero-stats dd {
  margin: 0;
  color: var(--text-muted);
}

.hero-panel {
  background: linear-gradient(180deg, #f4fbff 0%, #eaf6ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: var(--shadow);
  color: var(--text);
}

.hero-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-badge span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 161, 217, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-deep);
  font-size: 0.82rem;
}

.hero-panel h3,
.hero-panel p,
.hero-panel li {
  color: var(--text);
}

.pipeline-glimpse ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.pipeline-glimpse li {
  background: rgba(255, 255, 255, 0.86);
  padding: 0.7rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(17, 86, 127, 0.1);
}

.pipeline-glimpse span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 161, 217, 0.2);
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  font-weight: 600;
  background: rgba(0, 161, 217, 0.08);
}

.signal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.72);
}

.signal-card .label {
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.priority-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.75rem;
}

.priority-list li {
  line-height: 1.5;
}

.section-header {
  text-align: left;
  max-width: 760px;
  margin-bottom: 2.25rem;
}

.capabilities,
.process,
.work,
.service-area,
.stack,
.cta {
  padding: 5rem 0;
}

.capabilities,
.work,
.service-area {
  background: rgba(255, 255, 255, 0.96);
}

.process,
.stack {
  background: rgba(244, 251, 255, 0.96);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.capability-grid article {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.capability-grid article:hover,
.process-steps article:hover,
.work-grid article:hover,
.stack-grid > div:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 161, 217, 0.2);
  box-shadow: 0 12px 28px rgba(17, 86, 127, 0.08);
}

.capability-grid article h3,
.process-steps article h3,
.work-grid article h3,
.stack-grid h4 {
  text-wrap: balance;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.process-steps article {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.work-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg-panel);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.work-tag {
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.work-grid ul {
  padding-left: 1.2rem;
  color: var(--text-muted);
}

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

.stack-grid > div {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-area-grid,
.page-grid,
.link-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.service-area-grid article,
.page-grid article,
.link-card-grid article {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.service-area-grid h3,
.page-grid h3,
.link-card-grid h3 {
  margin-bottom: 0.6rem;
}

.service-area-grid a,
.section-links a,
.rich-text a,
.breadcrumb a,
.link-card-grid a {
  color: var(--accent-deep);
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.section-links a {
  font-weight: 600;
}

.subpage-main {
  width: min(100%, calc(var(--max-width) + (var(--content-pad) * 2)));
  margin: 0 auto;
  padding: 0 var(--content-pad) 4rem;
}

.subpage-hero {
  padding: 3.5rem 0 2rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.breadcrumb span {
  color: var(--text-muted);
}

.subpage-hero .lede,
.rich-text,
.page-grid p,
.link-card-grid p {
  color: var(--text-muted);
}

.subpage-hero .lede {
  max-width: 64ch;
  font-size: var(--text-lg);
}

.subpage-panel {
  background: linear-gradient(180deg, #f4fbff 0%, #eaf6ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-top: 1.75rem;
}

.subpage-panel ul,
.rich-text ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.rich-text {
  max-width: 70ch;
}

.subpage-section {
  padding: 3rem 0;
}

.subpage-section.alt {
  background: rgba(244, 251, 255, 0.96);
}

.cta-band {
  border: 1px solid rgba(17, 86, 127, 0.22);
  border-radius: var(--radius);
  padding: 2rem;
  background: linear-gradient(180deg, #0f5f88 0%, #11567f 100%);
  box-shadow: var(--shadow);
  color: var(--text-on-dark);
}

.cta-band h2,
.cta-band p,
.cta-band a {
  color: var(--text-on-dark);
}

.cta-band .cta-group {
  margin-bottom: 0;
}

.cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.cta-card,
.cta-details {
  border: 1px solid rgba(17, 86, 127, 0.22);
  border-radius: var(--radius);
  padding: 2rem;
  background: linear-gradient(180deg, #0f5f88 0%, #11567f 100%);
  box-shadow: var(--shadow);
  color: var(--text-on-dark);
}

.cta-details {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.cta-card p,
.cta-card h2,
.cta-details p,
.cta-details h4 {
  color: var(--text-on-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .btn[disabled] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 86, 127, 0.16);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #7c92a5;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(62, 168, 255, 0.12);
}

label {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}

.status {
  min-height: 1.5rem;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
}

.status[data-state='pending'] {
  color: var(--text-on-dark-muted);
}

.status[data-state='success'] {
  color: #ffffff;
}

.status[data-state='error'] {
  color: #ff8d8d;
}

.cta-details h4 {
  margin-bottom: 0.3rem;
}

.cta-details a {
  color: #ffffff;
  display: block;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem var(--content-pad);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  background: linear-gradient(180deg, #11567f 0%, #0b3651 100%);
  color: var(--text-on-dark);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
}

.footer-logo {
  display: block;
  width: 140px;
  height: auto;
  opacity: 0.92;
}

.site-footer a,
.footer-brand p {
  color: var(--text-on-dark);
}

.site-footer a {
  font-weight: 500;
}

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

[data-observe] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-observe].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-menu.open {
    display: flex;
  }

  .site-header {
    padding: 0.5rem var(--content-pad);
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wordmark {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 2rem;
  }

  .hero,
  .cta,
  .service-area-grid,
  .page-grid,
  .link-card-grid {
    gap: 1.5rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .hero-stats > div {
    padding-top: 0.85rem;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
