:root {
  --page: #000000;
  --page-alt: #0b0b0d;
  --surface: #141417;
  --surface-2: #1c1c21;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --ink: #f3f3f3;
  --ink-dim: #9a9aa0;
  --accent: #4cc2ff;
  --accent-deep: #0067b8;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ================= scroll progress ================= */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  z-index: 60;
}

/* ================= promo strip ================= */
.promo {
  background: #16161a;
  color: var(--ink);
  text-align: center;
  font-size: 13px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.promo a { color: var(--accent); text-decoration: underline; }

/* ================= top bar ================= */
.topbar { border-bottom: 1px solid var(--line-soft); background: #0a0a0c; }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 46px; font-size: 13px; }
.topbar .brand { font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .spacer { flex: 1; }
.topbar .crumbs { color: var(--ink-dim); display: flex; gap: 10px; }
@media (max-width: 760px) { .topbar .crumbs { display: none; } }

/* ================= sticky page nav ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav .wrap::-webkit-scrollbar { display: none; }
.nav .title { font-weight: 600; font-size: 15px; margin-right: 20px; white-space: nowrap; text-decoration: none; }
.nav a.link {
  font-size: 14px;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav a.link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.nav a.link.active { color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--accent); }
.nav .cta {
  margin-left: auto;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav .cta:hover { background: #0b7ad1; }

/* ================= buttons ================= */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: #0b7ad1; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #000; }
.btn:active { transform: scale(0.98); }

/* ================= page header / hero ================= */
.page-head {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(110% 120% at 50% 0%, #112033 0%, #07070a 55%, #000 100%);
}
.page-head .wrap { position: relative; text-align: center; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.page-head h1 {
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.page-head p {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-dim);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(100% 90% at 50% 10%, #11243a 0%, #08080b 55%, #000 100%);
}
.hero-art {
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #0067b8, #4cc2ff, #8f7cff, #0067b8);
  filter: blur(80px);
  opacity: 0.3;
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-inner { position: relative; padding: 90px 24px; }
.hero h1 {
  font-size: clamp(28px, 7.5vw, 84px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 35%, #8d8d95);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .supertag {
  margin-top: 20px;
  font-size: clamp(14px, 2.2vw, 21px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero .supertag span { color: var(--accent); transition: opacity 0.25s; }
.hero .lede {
  max-width: 620px;
  margin: 26px auto 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-dim);
}
.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: var(--ink-dim);
  font-size: 22px;
  animation: bob 2s infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.45; }
  50% { transform: translate(-50%, 9px); opacity: 1; }
}

/* ================= sections ================= */
section { padding: 100px 0; }
section.alt { background: var(--page-alt); }
section.band { background: linear-gradient(180deg, #07070a, #101019); }

.kicker {
  font-size: clamp(26px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 1.08;
  text-align: center;
}
h2.head {
  font-size: clamp(27px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-align: center;
}
.sub {
  max-width: 640px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-dim);
}

/* reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ================= process steps ================= */
section.process { background: radial-gradient(90% 70% at 50% 0%, #0f1f33 0%, #08080b 60%, #050507 100%); }
.steps { max-width: 820px; margin: 56px auto 0; display: grid; gap: 18px; }
.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  align-items: start;
  padding: 30px 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10203a 0%, #0c0f18 70%);
  border: 1px solid rgba(76, 194, 255, 0.16);
  border-left: 3px solid rgba(76, 194, 255, 0.55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.step .num {
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  opacity: 0.85;
}
.step h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.step p { font-size: 15px; line-height: 1.8; color: #b4b4bc; }
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 12px; padding: 24px 22px; }
  .step .num { font-size: 34px; }
}

/* ================= stats ================= */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 48px 24px;
  margin-top: 60px;
  text-align: center;
}
.stat .num {
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, #4cc2ff, #b4a0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .lbl { margin-top: 12px; font-size: 14px; color: var(--ink-dim); letter-spacing: 0.04em; }

/* ================= feature grid ================= */
.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 56px; }
.f {
  border-radius: 8px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}
.f:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.26); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.6); }
.f h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.f p { font-size: 15px; line-height: 1.7; color: var(--ink-dim); }
.f.big { grid-column: span 6; }
.f.med { grid-column: span 6; }
.f.third { grid-column: span 4; }
.f.tinted { background: linear-gradient(140deg, #10243a, #1a1630); border-color: rgba(76, 194, 255, 0.25); }
@media (max-width: 860px) { .f.big, .f.med, .f.third { grid-column: span 12; } }

/* ================= switcher ================= */
.switch-row { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.switch-row button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: all 0.25s;
}
.switch-row button.on { background: var(--ink); color: #000; border-color: var(--ink); }
.stage {
  margin: 36px auto 0;
  max-width: 900px;
  border-radius: 10px;
  padding: 56px 40px;
  text-align: center;
  transition: background 0.6s ease;
  min-height: 250px;
  display: grid;
  place-content: center;
  border: 1px solid var(--line);
}
.stage h3 { font-size: clamp(23px, 3.2vw, 33px); font-weight: 600; letter-spacing: -0.02em; }
.stage p { margin: 14px auto 0; font-size: 16px; line-height: 1.75; max-width: 620px; color: rgba(255, 255, 255, 0.82); }
.stage[data-mode="morning"] { background: linear-gradient(135deg, #3a2410, #7a4a15); }
.stage[data-mode="afternoon"] { background: linear-gradient(135deg, #0a3360, #0f6ba8); }
.stage[data-mode="evening"] { background: linear-gradient(135deg, #1c1238, #4b2d82); }

/* ================= trio ================= */
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-top: 56px; }
.trio .col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.trio .col h4 { font-size: 21px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.trio .col p { font-size: 15px; line-height: 1.75; color: var(--ink-dim); }

/* ================= timeline ================= */
.timeline { margin: 56px auto 0; border-left: 2px solid var(--line); padding-left: 32px; max-width: 760px; }
.tl-item { position: relative; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -41px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--page), 0 0 14px rgba(76, 194, 255, 0.7);
}
.tl-item .when { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.tl-item h3 { font-size: 20px; font-weight: 600; margin: 8px 0; }
.tl-item p { font-size: 15px; line-height: 1.75; color: var(--ink-dim); }

/* ================= project cards ================= */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 56px; }
.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}
.pcard:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.26); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.6); }
.pcard .thumb {
  display: block;
  height: 220px;
  padding: 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
}
.pcard .thumb.empty {
  display: grid;
  place-items: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  background: repeating-linear-gradient(135deg, #15151a 0 12px, #18181e 12px 24px);
}
.pcard .thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pcard .pbody { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.pcard h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.pcard .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pcard .tags span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-dim);
}
.pcard p { font-size: 14px; line-height: 1.7; color: var(--ink-dim); flex: 1; }
.pcard .plinks { margin-top: 20px; display: flex; gap: 16px; }
.pcard .plinks a { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.pcard .plinks a:hover { text-decoration: underline; }

/* ================= FAQ ================= */
.faq { max-width: 860px; margin: 48px auto 0; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 48px 22px 4px;
  font-size: 17px;
  font-weight: 600;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
}
details[open] summary::after { content: "\2212"; }
details p { padding: 0 48px 24px 4px; font-size: 15px; line-height: 1.8; color: var(--ink-dim); }

/* ================= contact ================= */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 48px; }
.cpill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.cpill:hover { border-color: var(--accent); transform: translateY(-3px); background: var(--surface-2); }
.cpill b { display: block; font-size: 15px; }
.cpill em { font-style: normal; font-size: 13px; color: var(--ink-dim); }

/* contact form */
.form { max-width: 680px; margin: 48px auto 0; display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form .row2 { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink-dim); }
.form input, .form textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 13px 15px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.form textarea { min-height: 150px; resize: vertical; }
.form .note { font-size: 13px; color: var(--ink-dim); text-align: center; }

/* ================= next-page strip ================= */
.next-strip { border-top: 1px solid var(--line-soft); background: var(--page-alt); padding: 56px 0; }
.next-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.next-strip .t { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
.next-strip h3 { font-size: clamp(22px, 3.4vw, 34px); font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; }

/* ================= footer ================= */
footer { background: #07070a; border-top: 1px solid var(--line-soft); padding: 56px 0 28px; font-size: 13px; }
.fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 32px; }
.fcols h4 { font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.fcols ul { list-style: none; display: grid; gap: 10px; }
.fcols a { color: var(--ink-dim); text-decoration: none; }
.fcols a:hover { color: var(--ink); text-decoration: underline; }
.fbottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-dim);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ================= prose ================= */
.prose { max-width: 720px; margin: 48px auto 0; }
.prose p { font-size: 17px; line-height: 1.95; color: #c9c9d0; margin-bottom: 24px; }
.prose p:last-child { margin-bottom: 0; }
.prose p.lead { font-size: 20px; color: var(--ink); line-height: 1.8; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ================= badges ================= */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(76, 194, 255, 0.14);
  border: 1px solid rgba(76, 194, 255, 0.4);
  color: var(--accent);
  white-space: nowrap;
}
.badge.gold { background: rgba(255, 196, 76, 0.13); border-color: rgba(255, 196, 76, 0.42); color: #ffc44c; }
.badge.plain { background: var(--surface-2); border-color: var(--line); color: var(--ink-dim); }

/* ================= case studies ================= */
.case { border-top: 1px solid var(--line); padding: 60px 0; }
.case:first-of-type { border-top: none; }
.case .case-top { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.case h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-top: 14px;
  line-height: 1.2;
}
.case .meta { margin-top: 10px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.case .blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 36px; margin-top: 30px; }
.case .blocks h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.case .blocks p { font-size: 15px; line-height: 1.85; color: var(--ink-dim); }
.case .blocks .span2 { grid-column: 1 / -1; }

.case-certs { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.case-certs a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  transition: border-color 0.25s, transform 0.25s;
}
.case-certs a:hover { border-color: var(--accent); transform: translateY(-3px); }
.case-certs img { display: block; height: 300px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 620px) { .case-certs img { height: auto; width: 100%; } }

/* ================= tool chips ================= */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chips span {
  font-size: 13px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s;
}
.chips span:hover { border-color: var(--accent); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
