:root {
  --bg: #07111c;
  --bg-raise: #0c1828;
  --text: #e7eef7;
  --muted: #b7c3d1;
  --cyan: #5ad8ff;
  --blue: #3c7dff;
  --line: rgba(90, 216, 255, 0.22);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 42% at 12% -8%, rgba(60, 125, 255, 0.2), transparent 58%),
    radial-gradient(ellipse 46% 32% at 100% 0%, rgba(90, 216, 255, 0.1), transparent 52%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

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

a:hover {
  color: #ffffff;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cyan);
  color: var(--bg);
  padding: 0.4rem 0.7rem;
  z-index: 5;
}

.skip:focus {
  top: 0.5rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(7, 17, 28, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand img {
  height: 42px;
  width: auto;
  filter: invert(1);
}

.brand-name {
  font-weight: 650;
  letter-spacing: 0.01em;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

nav a:hover,
nav a[aria-current="page"] {
  color: var(--cyan);
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.hero {
  padding: 3.2rem 0 2.4rem;
}

.hero h1,
.hero .lede {
  max-width: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  max-width: 14ch;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}

.lede {
  margin: 0;
  max-width: 62ch;
  font-size: 1.15rem;
  color: var(--muted);
}

.experience {
  margin: 1rem 0 0;
  color: var(--text);
}

.actions,
.page-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-block;
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--cyan);
  color: var(--bg);
}

.quiet-link {
  color: var(--text);
}

.band {
  padding: 1rem 0 4rem;
}

.cards {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  background: rgba(12, 24, 40, 0.86);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
}

.cards p {
  margin: 0;
  color: var(--muted);
}

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

.prose p {
  max-width: 68ch;
}

.sections {
  display: grid;
  gap: 0.5rem;
  margin-top: 2rem;
}

.sections section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}

.offerings {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 68ch;
}

.offerings li {
  position: relative;
  margin: 0.35rem 0;
  padding-left: 1.1rem;
}

.offerings li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--cyan);
  border-radius: 50%;
}

.result {
  color: var(--muted);
}

.contact-layout {
  display: grid;
  gap: 1.5rem;
}

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

.field {
  display: grid;
  gap: 0.3rem;
}

label {
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  background: #0b1624;
  color: var(--text);
  border: 1px solid rgba(183, 195, 209, 0.35);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: transparent;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
}

.form-status[data-state="error"] {
  color: #ffb4b4;
}

.form-status[data-state="success"] {
  color: var(--cyan);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.footer-inner p {
  margin: 0;
}

@media (min-width: 800px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .cards .card-lead {
    grid-column: 1 / -1;
  }

  .contact-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .brand img {
    height: 34px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .actions,
  .page-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    text-align: center;
  }
}

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