/* Layout: sticky nav, two column hero with the quote form beside the headline (stacked on phones, form directly under the headline), then service tiles and closing band. */
:root {
  --logo: url("../img/logo.png");
  --ink: #070a08;
  --panel: #0c120e;
  --panel-2: #111a14;
  --line: #1d2a22;
  --text: #e8eee9;
  --muted: #8d9f94;
  --green: #22c27a;
  --green-deep: #0e3a28;
  --gold: #c8a864;
  --display: "Instrument Serif", "Times New Roman", serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  padding-block: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.nav-in { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-family: var(--display); font-size: 26px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.mark { display: inline-block; width: 38px; height: 38px; background: var(--logo) center / contain no-repeat; flex: none; }
.brand .mark { margin-right: 2px; }
footer .mark { width: 44px; height: 44px; display: block; margin-bottom: 12px; }
.hero.home::after { content: ""; position: absolute; right: -40px; top: 10px; width: 420px; height: 420px; background: var(--logo) center / contain no-repeat; opacity: .07; pointer-events: none; z-index: -1; }
/* motion: light, transform and opacity only */
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,194,122,0); } 50% { box-shadow: 0 0 34px 2px rgba(34,194,122,.22); } }
@keyframes sheen { 0% { transform: translateX(-120%) skewX(-20deg); } 60%, 100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(6deg); } }
.hero > div:first-child > * { animation: up .7s cubic-bezier(.2,.7,.2,1) both; }
.hero > div:first-child > *:nth-child(2) { animation-delay: .08s; }
.hero > div:first-child > *:nth-child(3) { animation-delay: .16s; }
.hero > div:first-child > *:nth-child(4) { animation-delay: .24s; }
form.quote { animation: up .8s .15s cubic-bezier(.2,.7,.2,1) both, glow 4.5s 1.2s ease-in-out infinite; }
.btn { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: sheen 4.5s 1.5s ease-in-out infinite; pointer-events: none; }
.hero.home::after { animation: drift 9s ease-in-out infinite; }
.mark { transition: transform .6s ease; }
.brand:hover .mark { transform: rotate(40deg); }
.rv { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease, border-color .2s ease, background .2s ease; }
.rv.in { opacity: 1; transform: none; }
.svc, .ind { transition: opacity .55s ease, transform .55s ease, border-color .2s ease, background .2s ease; }
.svc:hover { border-color: var(--green); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .hero > div:first-child > *, form.quote, .btn::after, .hero.home::after { animation: none !important; }
  .rv { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 860px) { .hero.home::after { width: 260px; height: 260px; right: -60px; } }
.brand i { width: 10px; height: 10px; background: var(--green); border-radius: 50%; box-shadow: 0 0 14px var(--green); }
.links { display: flex; gap: 4px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.links::-webkit-scrollbar { display: none; }
.links a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.links a:hover { color: var(--text); }
.links a[aria-current="page"] { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }

/* hero */
.hero { position: relative; padding-block: 56px 72px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.hero::before {
  content: ""; position: absolute; inset: -120px -20vw auto -20vw; height: 520px; z-index: -1;
  background: radial-gradient(60% 70% at 20% 0%, rgba(34,194,122,0.16), transparent 70%);
  pointer-events: none;
}
.hero > * { min-width: 0; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 22px; text-wrap: balance; }
h1 em, h2 em { color: var(--green); font-style: italic; }
.sub { color: var(--muted); font-size: 18px; max-width: 54ch; margin: 0 0 28px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; font-size: 15px; color: var(--text); }
.ticks li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; background: var(--green); transform: rotate(45deg); }

/* quote form */
.quote { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 0 0 1px rgba(34,194,122,0.08), 0 30px 80px -30px rgba(34,194,122,0.25); }
.quote h2 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 0 0 4px; }
.quote p.lead { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  width: 100%; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; font: inherit; font-size: 15px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,194,122,0.18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  background: var(--green); color: #04130b; font: inherit; font-weight: 700; font-size: 15px;
  border: 0; border-radius: 10px; padding: 14px 22px;
}
.btn:hover { filter: brightness(1.1); }
.quote .btn { width: 100%; }
.slot-note { font-family: var(--mono); font-size: 11px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
.sent { display: none; border: 1px solid var(--green); border-radius: 10px; padding: 14px; font-size: 14px; margin-top: 14px; color: var(--text); background: rgba(34,194,122,0.08); }
.sent.on { display: block; }

/* sections */
section.block { padding-block: 72px; border-top: 1px solid var(--line); }
h2.title { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.05; margin: 0 0 12px; text-wrap: balance; }
.intro { color: var(--muted); max-width: 60ch; margin: 0 0 40px; }
.rows { border-top: 1px solid var(--line); }
.rowi { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.rowi > * { min-width: 0; }
.rowi .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); padding-top: 4px; }
.rowi h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 0 0 6px; }
.rowi p { margin: 0; color: var(--muted); max-width: 62ch; }

/* pipeline */
.pipe { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stage { flex: 1 1 150px; padding: 20px 18px; border-right: 1px solid var(--line); background: var(--panel); min-width: 0; }
.stage:last-child { border-right: 0; }
.stage small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.stage b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.15; }
.stage:last-child { background: var(--green-deep); }
.stage:last-child small { color: #8fd9b4; }

/* industry grid on home */
.grid5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ind { display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; min-width: 0; transition: opacity .55s ease, transform .55s ease, border-color .2s ease; }
.ind:hover { border-color: var(--green); transform: translateY(-3px); }
.ind .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.ind h3 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; margin: 0; }
.ind p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.ind span.go { color: var(--green); font-weight: 600; font-size: 14px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding-block: 20px; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--display); font-size: 24px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font-family: var(--body); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); max-width: 66ch; margin: 12px 0 0; }

/* closing band */
.band { margin-block: 24px 0; padding: 56px 32px; border-radius: 18px; background: radial-gradient(70% 120% at 80% 0%, rgba(34,194,122,0.22), transparent 70%), var(--green-deep); border: 1px solid rgba(34,194,122,0.3); text-align: left; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; margin: 0; max-width: 20ch; }
.band .btn { background: var(--text); }

footer { padding-block: 48px 40px; margin-top: 72px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a:hover { color: var(--text); }

/* blog and case studies */
.field textarea { width: 100%; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; font: inherit; font-size: 15px; line-height: 1.5; resize: vertical; min-height: 110px; }
.field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,194,122,0.18); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.tab[aria-pressed="true"] { color: var(--text); background: var(--panel-2); border-color: var(--green); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.badge { display: inline-block; width: fit-content; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--gold); color: var(--gold); }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0; }
.ind h3 a:hover { color: var(--green); }
.ind a.go { color: var(--green); font-weight: 600; font-size: 14px; }
.editor { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin-bottom: 40px; }
.editor .hint { font-size: 14px; color: var(--muted); margin: 0 0 20px; max-width: 64ch; }
.err { color: #ffb4a8; font-size: 14px; margin-top: 12px; min-height: 1em; }
.prose { max-width: 68ch; }
.prose h3 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 36px 0 10px; }
.prose p, .prose li { color: #cdd8d0; font-size: 17px; line-height: 1.75; }
.prose p { margin: 0 0 18px; }
.prose ul { padding-left: 20px; margin: 0 0 18px; }
.empty { border: 1px dashed var(--line); border-radius: 14px; padding: 40px 28px; color: var(--muted); }
.empty b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--text); margin-bottom: 6px; }
.back { color: var(--green); font-weight: 600; font-size: 14px; }

.svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.svc { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: var(--panel); font-family: var(--display); font-size: 22px; line-height: 1.2; min-width: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 36px 48px; }
  .rowi { grid-template-columns: 1fr; gap: 6px; }
  section.block { padding-block: 52px; }
  .quote { padding: 22px; }
  .stage { flex-basis: 45%; border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; gap: 0; } .nav-in { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ind { transition: none; } }

/* keep decorative glows from causing sideways scrolling */
html, body { overflow-x: clip; }
