:root {
  --midnight: #0a0f1e;
  --aqua: #06b6d4;
  --blue: #2563eb;
  --violet: #8b5cf6;
  --cloud: #e5e7eb;
  --ink: #0a0f1e;
  --muted: #4b5563;
  --white: #ffffff;
  --line: #e5e7eb;
  --max: 1120px;
  --header: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1rem);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--aqua);
  color: var(--midnight);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: Montserrat, "Segoe UI", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

.lede,
.section p,
.card p {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header .wrap,
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  display: block;
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.nav a {
  color: var(--midnight);
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: #0e7490;
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

.eyebrow {
  margin: 0;
  color: #0e7490;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--aqua);
  color: var(--midnight);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  border-color: var(--midnight);
}

.section {
  padding: 4.25rem 0;
}

.section.alt {
  background: #f8fafc;
}

.section.dark {
  background: var(--midnight);
  color: var(--white);
}

.section.dark p,
.section.dark .lede {
  color: #d1d5db;
}

.grid-4,
.portfolio {
  display: grid;
  gap: 1rem;
}

.panel,
.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.section.dark .panel {
  background: #12182b;
  border-color: #243049;
}

.section.dark .panel h3,
.section.dark .panel p {
  color: var(--white);
}

.section.dark .panel p {
  color: #d1d5db;
}

.card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.5rem;
  margin-bottom: 0.9rem;
}

.card-logo img {
  max-height: 3.2rem;
  width: auto;
  object-fit: contain;
}

.wordmark {
  margin: 0;
  color: var(--midnight);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}

.domain {
  margin-bottom: auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.visit {
  margin-top: 1rem;
  color: #0e7490;
  font-weight: 700;
  text-decoration: none;
}

.visit::after {
  content: " \2192";
}

.narrow {
  max-width: 42rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  max-width: 40rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.7rem;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

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

.site-footer {
  padding: 2.5rem 0 2rem;
  background: var(--midnight);
  color: #d1d5db;
}

.site-footer .wrap {
  display: grid;
  justify-content: start;
  gap: 1.25rem;
}

.footer-brand img {
  height: 34px;
  width: auto;
}

.tagline {
  margin: 0.6rem 0 0;
  color: var(--white);
}

.footer-nav,
.footer-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a,
.footer-brands a {
  color: #d1d5db;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-brands a:hover,
.visit:hover {
  text-decoration: underline;
}

.copy {
  width: 100%;
  margin: 1.5rem 0 0;
  color: #9ca3af;
  font-size: 0.92rem;
}

.page {
  padding: 4rem 0 5rem;
}

.page h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

@media (min-width: 640px) {
  .grid-4,
  .portfolio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-4,
  .portfolio {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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