:root {
  --navy-900: #060d1a;
  --navy-800: #0a1628;
  --navy-700: #0f2038;
  --navy-600: #16304f;
  --line: rgba(124, 161, 209, 0.16);
  --line-strong: rgba(124, 161, 209, 0.3);
  --white: #f5f8fd;
  --slate-300: #aebfd6;
  --slate-400: #8295b3;
  --slate-500: #5f739a;
  --accent: #18b6e8;
  --accent-2: #1ee0c6;
  --accent-glow: rgba(24, 182, 232, 0.4);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--navy-800);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--navy-900); }

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- NAV ---------- */
header.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
header.nav.scrolled {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 18, 33, 0.9);
}
.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 0 22px var(--accent-glow);
}
.logo span.accent { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a.link {
  color: var(--slate-300);
  transition: color 0.2s;
  position: relative;
}
.nav-links a.link:hover { color: var(--white); }
.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-radius: 9px;
  transition: transform 0.18s, box-shadow 0.25s, background 0.25s;
  display: inline-block;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--navy-900);
  padding: 12px 22px;
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px var(--accent-glow); }
.nav-cta { display: inline-block; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--accent);
  color: var(--navy-900);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; outline: 3px solid var(--accent-2); outline-offset: 2px; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.menu-toggle:hover { background: rgba(124,161,209,0.1); }
.menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mobile-menu { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 188px 0 130px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(620px 520px at 78% 8%, rgba(24,182,232,0.18), transparent 60%),
    radial-gradient(520px 480px at 12% 92%, rgba(30,224,198,0.10), transparent 55%),
    var(--navy-800);
  z-index: -2;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black, transparent 75%);
  z-index: -1;
  opacity: 0.6;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--line-strong);
  background: rgba(24,182,232,0.06);
  padding: 7px 15px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}
h1.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 880px;
  text-wrap: balance;
}
h1.hero-title .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--slate-300);
  max-width: 580px;
  line-height: 1.65;
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-primary.lg, .btn-ghost.lg { padding: 15px 28px; font-size: 16px; }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line-strong);
  padding: 12px 22px;
}
.btn-ghost:hover { background: rgba(124,161,209,0.08); border-color: var(--slate-400); transform: translateY(-2px); }

/* ---------- SECTION SHELL ---------- */
section { position: relative; }
.section-pad { padding: 110px 0; }
.section-head { max-width: 660px; margin-bottom: 62px; }
.section-tag {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
h2.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-lead {
  margin-top: 18px;
  font-size: 1.12rem;
  color: var(--slate-300);
  text-wrap: pretty;
}

/* ---------- SERVICES ---------- */
#services { background: var(--navy-900); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 32px 40px;
  transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 24px 50px rgba(0,0,0,0.4); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(24,182,232,0.1);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  margin-bottom: 26px;
  color: var(--accent);
}
.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  margin-bottom: 13px;
  line-height: 1.25;
}
.card p { color: var(--slate-300); font-size: 1rem; line-height: 1.65; text-wrap: pretty; }
.card-num {
  position: absolute;
  top: 30px; right: 32px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: 0.1em;
}

/* ---------- ABOUT / EXPERIENCE ---------- */
#about { background: var(--navy-900); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
.about-copy p.body {
  color: var(--slate-300);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-top: 20px;
  text-wrap: pretty;
}
.about-copy strong { color: var(--white); font-weight: 600; }
.accent-text { color: var(--accent-2); font-weight: 600; }
.programs {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.program {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--navy-700);
}
.program .pmark {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(30,224,198,0.1);
  color: var(--accent-2);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
}
.program .ptxt h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 3px;
}
.program .ptxt h4 a { color: inherit; border-bottom: 1px solid var(--line-strong); transition: color 0.2s, border-color 0.2s; }
.program .ptxt h4 a:hover { color: var(--accent); border-color: var(--accent); }
.program .ptxt p { font-size: 0.92rem; color: var(--slate-400); }
.case-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 20px; font-size: 0.88rem; font-weight: 500; color: var(--accent); transition: gap 0.18s; }
.case-link:hover { gap: 9px; }

.about-visual {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  padding: 44px 40px;
  overflow: hidden;
}
.about-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 300px at 80% 0%, rgba(24,182,232,0.16), transparent 60%);
  pointer-events: none;
}
.big-stat { position: relative; z-index: 1; }
.big-stat .yr {
  font-family: var(--display);
  font-weight: 700;
  font-size: 6rem;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.big-stat .yr-lbl {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  margin-top: 6px;
}
.mini-grid {
  position: relative; z-index: 1;
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.mini {
  background: var(--navy-800);
  padding: 22px 20px;
}
.mini .mn {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--accent);
}
.mini .ml { font-size: 0.85rem; color: var(--slate-400); margin-top: 5px; }

/* ---------- CONTACT ---------- */
#contact { background: var(--navy-900); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}
.contact-left h2 { margin-bottom: 0; }
.contact-points { margin-top: 34px; display: flex; flex-direction: column; gap: 22px; }
.cpoint { display: flex; gap: 15px; align-items: flex-start; }
.cpoint .ci {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
  background: rgba(24,182,232,0.1); border: 1px solid var(--line-strong);
  color: var(--accent); display: grid; place-items: center;
}
.cpoint h4 { font-family: var(--display); font-weight: 600; font-size: 1rem; margin-bottom: 2px; }
.cpoint p { color: var(--slate-400); font-size: 0.95rem; }

form.contact-form {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px 36px;
}
.field { margin-bottom: 22px; }
.inquiry-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.itype { display: block; cursor: pointer; }
.itype input { position: absolute; opacity: 0; pointer-events: none; }
.itype-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  background: var(--navy-900);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 13px 15px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.itype-t { font-family: var(--display); font-weight: 600; font-size: 0.98rem; color: var(--white); }
.itype-d { font-size: 0.82rem; color: var(--slate-400); line-height: 1.4; }
.itype:hover .itype-box { border-color: var(--slate-400); }
.itype input:checked + .itype-box {
  border-color: var(--accent);
  background: rgba(24,182,232,0.08);
  box-shadow: 0 0 0 3px rgba(24,182,232,0.14);
}
.itype input:checked + .itype-box .itype-d { color: var(--slate-300); }
.itype input:focus-visible + .itype-box { border-color: var(--accent); }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-300);
  margin-bottom: 9px;
}
.field label .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 15px;
  color: var(--white);
  background: var(--navy-900);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-500); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(24,182,232,0.16);
}
.field textarea { min-height: 130px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
/* honeypot — invisible to humans, present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}
button.submit {
  width: 100%;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--navy-900);
  font-weight: 700;
  font-size: 16px;
  padding: 15px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.25s;
  box-shadow: 0 6px 24px var(--accent-glow);
  font-family: var(--body);
}
button.submit:hover { transform: translateY(-2px); box-shadow: 0 10px 34px var(--accent-glow); }
button.submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.form-msg {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  display: none;
}
.form-msg.ok { display: block; background: rgba(30,224,198,0.1); border: 1px solid rgba(30,224,198,0.4); color: var(--accent-2); }
.form-msg.err { display: block; background: rgba(232,84,84,0.1); border: 1px solid rgba(232,84,84,0.4); color: #ff9b9b; }

/* ---------- CASE STUDIES ---------- */
#work { background: var(--navy-800); }
.case-studies { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.case-card {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
}
.case-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.case-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 50px rgba(0,0,0,0.4); }
.case-card:hover::before { transform: scaleX(1); }
.case-header { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.case-badge {
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  background: rgba(30,224,198,0.1);
  border: 1px solid rgba(30,224,198,0.3);
  border-radius: 9px;
  padding: 10px 14px;
  line-height: 1;
}
.case-meta h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.case-client { font-size: 0.88rem; color: var(--accent); font-weight: 500; }
.case-body { color: var(--slate-300); font-size: 1rem; line-height: 1.7; text-wrap: pretty; }
.case-stat {
  margin-top: 26px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(24,182,232,0.06);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.cs-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cs-lbl { font-size: 0.92rem; color: var(--slate-300); }

/* ---------- FOUNDER ---------- */
#founder { background: var(--navy-800); }
.founder-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}
.founder-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.founder-photo-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--slate-500); }
.founder-photo-placeholder svg { opacity: 0.35; }
.founder-photo-placeholder span { font-size: 12px; letter-spacing: 0.04em; }
.founder-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-top: 18px;
}
.founder-title { font-size: 0.9rem; color: var(--accent); font-weight: 500; margin-top: 4px; }
.founder-bio p {
  color: var(--slate-300);
  font-size: 1.08rem;
  line-height: 1.75;
  text-wrap: pretty;
  margin-top: 22px;
}
.founder-bio p:first-child { margin-top: 0; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--navy-900);
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-inner .copy { color: var(--slate-500); font-size: 14px; }
.foot-links { display: flex; gap: 28px; font-size: 14px; }
.foot-links a { color: var(--slate-400); transition: color 0.2s; }
.foot-links a:hover { color: var(--accent); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .cards { grid-template-columns: 1fr; }
  .case-studies { grid-template-columns: 1fr; }
  .about-grid, .contact-grid, .founder-grid { grid-template-columns: 1fr; gap: 44px; }
  .nav-links .link { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .nav.open .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 20px;
    border-top: 1px solid var(--line);
  }
  .mobile-menu a {
    color: var(--slate-300);
    font-size: 15px;
    font-weight: 500;
    padding: 11px 12px;
    border-radius: 9px;
    transition: color 0.2s, background 0.2s;
  }
  .mobile-menu a:hover { color: var(--white); background: rgba(124,161,209,0.08); }
  .mobile-menu .mobile-cta { margin-top: 6px; width: 100%; display: block; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 150px 0 90px; }
  .section-pad { padding: 76px 0; }
  .row-2 { grid-template-columns: 1fr; }
  .big-stat .yr { font-size: 4.4rem; }
  form.contact-form { padding: 28px 22px; }
}
