:root {
  --bg: #1e3a5f;
  --bg-alt: #17293f;
  --card-bg: #24466f;
  --ink: #f5f8fc;
  --ink-soft: #aebedd;
  --line: rgba(255, 255, 255, .15);
  --accent: #e2925f;
  --accent-hover: #ecab7f;
  --sky: #8fb8e6;
  --error: #ff9466;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

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

h1, h2, h3 { line-height: 1.15; font-weight: 800; margin: 0 0 .5em; color: var(--ink); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(30, 58, 95, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand-prompt { color: var(--accent); margin-right: .35em; }
.brand-cursor {
  display: inline-block;
  width: .5em;
  height: 1em;
  margin-left: .15em;
  background: var(--accent);
  vertical-align: -.15em;
}
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--accent-hover); }

/* hero */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(60% 100% at 85% 0%, rgba(226, 146, 95, .14), transparent),
    var(--bg);
}
.hero-inner { max-width: 720px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero .lede { font-size: 1.1rem; max-width: 60ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }

.section-lede { margin-top: -8px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.project-card {
  display: flex;
  align-items: center;
  gap: 18px;
}
.project-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.project-card h3 { margin-bottom: 4px; }
.project-card p { margin: 0; font-size: .95rem; }
.card p { margin: 0; font-size: .95rem; }

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.fineprint { font-size: .9rem; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: .95rem;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-soft); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sky);
}
.contact-form button { align-self: flex-start; border: none; cursor: pointer; }

/* @formspree/ajax injects its own default stylesheet at runtime with
   hardcoded light colors; override it directly on its own attribute
   hooks (with !important) since that injected sheet loads after ours. */
[data-fs-success][data-fs-active] {
  display: block !important;
  padding: 12px !important;
  border-radius: 8px !important;
  margin-bottom: 0 !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  background: rgba(226, 146, 95, .15) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(226, 146, 95, .35) !important;
}
[data-fs-error=""][data-fs-active] {
  display: block !important;
  padding: 12px !important;
  border-radius: 8px !important;
  margin-bottom: 0 !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  background: rgba(255, 148, 102, .15) !important;
  color: var(--error) !important;
  border: 1px solid rgba(255, 148, 102, .35) !important;
}
[data-fs-error]:not([data-fs-error=""])[data-fs-active] {
  color: var(--error) !important;
  font-size: .82rem !important;
  margin-top: -10px !important;
}
[data-fs-field][aria-invalid="true"] {
  border-color: var(--error) !important;
}

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 760px) {
  .nav { gap: 14px; }
  .nav a:not(.nav-cta) { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
