:root {
  --bg: #07090d;
  --card: #10151c;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: #a7b0be;
  --faint: #8b95a6;
  --green: #3ee08a;
  --green-ink: #062114;
  --blue: #5aa6ff;
  --display: "Manrope", "Inter", sans-serif;
  --font: "Inter", system-ui, sans-serif;
  --script: "Caveat", cursive;
  --max: 1180px;
  --header: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 86% 0%, rgba(18, 110, 128, 0.28), transparent 58%),
    radial-gradient(700px 420px at 8% -10%, rgba(48, 86, 170, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { background: rgba(62, 224, 138, 0.28); }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  position: relative;
}
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.header.scrolled {
  background: rgba(7, 9, 13, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.brand-name {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.nav-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  place-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  position: relative;
  content: "";
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a {
  color: #c9d2de;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: var(--green-ink); }
.btn-green:hover { background: #57e79b; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); }
.cv-btn {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  z-index: 2;
  flex: none;
}
.cv-btn svg { width: 15px; height: 15px; }

.hero { padding: 18px 0 78px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d5deea;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(62, 224, 138, 0.65);
  animation: pulse 2.2s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(62, 224, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 224, 138, 0); }
}
.hero h1 {
  margin: 14px 0 16px;
  font-family: var(--display);
  font-size: clamp(52px, 6.5vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.048em;
  font-weight: 800;
}
.lede {
  max-width: 500px;
  margin: 0 0 26px;
  color: #b7c1ce;
  font-size: 17.5px;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.socials { display: flex; gap: 12px; margin-top: 28px; }
.social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  color: #fff;
}
.social:hover { border-color: var(--green); color: var(--green); }

.hero-visual {
  position: relative;
  min-height: 480px;
  border-radius: 28px;
  overflow: hidden;
  background: #071016;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.55), transparent 28%),
    linear-gradient(180deg, transparent 62%, rgba(7, 9, 13, 0.45));
  pointer-events: none;
}
.scribble {
  position: absolute;
  z-index: 2;
  top: 36px;
  right: 34px;
  color: #fff;
  font-family: var(--script);
  font-size: 46px;
  font-weight: 600;
  line-height: 0.9;
  transform: rotate(-8deg);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.scribble span { display: block; }
.scribble-line {
  display: block;
  width: 108px;
  height: 14px;
  margin-top: 2px;
  margin-left: 4px;
  color: var(--green);
}

.section {
  position: relative;
  padding: 72px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker .num {
  color: #d5deea;
  letter-spacing: 0.08em;
}
.section h2, .contact-row h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.accent-green .accent { color: var(--green); }
.accent-blue .accent { color: var(--blue); }

.rail {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  grid-template-areas:
    "kicker ."
    "title content";
  column-gap: 42px;
  row-gap: 8px;
  align-items: start;
}
.rail .kicker { grid-area: kicker; margin-bottom: 0; }
.rail h2 { grid-area: title; }
.rail .content { grid-area: content; }

.about-copy {
  margin: 6px 0 0;
  max-width: 640px;
  color: #c0c8d4;
  font-size: 16.5px;
  line-height: 1.75;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.service {
  min-height: 210px;
  padding: 20px 18px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  background-color: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
}
.svc-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #e7edf5;
  margin-bottom: 34px;
}
.svc-icon img { width: 36px; height: 36px; object-fit: contain; }
.service h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 15.5px;
  letter-spacing: -0.02em;
}
.service p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.jobs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 8px;
}
.jobs::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: linear-gradient(90deg, #3d8bfd, rgba(255, 255, 255, 0.12) 70%);
}
.job-dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 0 18px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--bg);
}
.logo-tile {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #121820;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  overflow: hidden;
}
.logo-tile img { width: 100%; height: 100%; object-fit: cover; }
.job h3, .venture h3 {
  margin: 14px 0 4px;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.02em;
}
.role, .dates, .venture .role {
  margin: 0;
  color: #9aa6b6;
  font-size: 13.5px;
}
.dates { margin-top: 2px; }
.summary {
  margin: 10px 0 0;
  color: #c3cbd6;
  font-size: 14px;
  line-height: 1.55;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #d5deea;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.view-all:hover { color: #fff; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.project {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
a.project:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
}
.project-shot {
  aspect-ratio: 16 / 10.4;
  background: #0c1118;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.project-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-body { padding: 14px 14px 16px; }
.project h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 14.5px;
  letter-spacing: -0.02em;
}
.project p {
  margin: 0;
  min-height: 38px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d5deea;
  font-size: 11px;
}

.mock { width: 100%; height: 100%; display: flex; overflow: hidden; }
.mock.desk { background: #e7eef6; }
.mock.desk .side { width: 22%; background: #1b2430; }
.mock.desk .main { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.mock.desk b { display: block; height: 7px; width: 42%; border-radius: 99px; background: #c5d0df; }
.mock.desk .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mock.desk .cards i { display: block; height: 26px; border-radius: 4px; background: #fff; }
.mock.desk em { display: block; flex: 1; border-radius: 5px; background: #fff; }
.mock.labs { background: #0d1220; padding: 10px; flex-direction: column; gap: 7px; }
.mock.labs i { display: block; height: 8px; width: 72%; border-radius: 99px; background: linear-gradient(90deg, #7c6bff, transparent); }
.mock.labs i.short { width: 46%; background: linear-gradient(90deg, #3ee08a, transparent); }
.mock.labs b { display: block; flex: 1; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent); }
.mock.kyb { background: #f3f6fb; padding: 10px; flex-direction: column; gap: 6px; }
.mock.kyb b { height: 8px; width: 48%; border-radius: 99px; background: #d5deea; }
.mock.kyb i { height: 14px; border-radius: 4px; background: #fff; border: 1px solid #d7e0ec; }
.mock.kyb em { width: 22px; height: 22px; margin-top: auto; align-self: flex-end; border-radius: 50%; background: #3ee08a; }
.mock.map { background: linear-gradient(160deg, #d5e7cf, #9fbfa4); position: relative; }
.mock.map .phone { position: absolute; inset: 12px 28% 12px; background: #111; border-radius: 12px; overflow: hidden; }
.mock.map .phone i { position: absolute; inset: 5px; background: linear-gradient(#d7efcf, #7eae86); border-radius: 8px; }
.mock.map .phone b { position: absolute; left: 46%; top: 42%; width: 8px; height: 8px; border-radius: 50%; background: #13a35a; box-shadow: 0 0 0 4px rgba(62, 224, 138, 0.35); }
.mock.chat { background: #f6f7fb; }
.mock.chat .side { width: 28%; background: #e7ebf3; }
.mock.chat .main { flex: 1; padding: 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; }
.mock.chat i { display: block; height: 12px; width: 72%; border-radius: 8px; background: #e3e8f1; }
.mock.chat i.me { width: 48%; align-self: flex-end; background: #3ee08a; }

.tech-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 8px; }
.tech {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #151b24;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  overflow: hidden;
}
.tech img { width: 100%; height: 100%; object-fit: cover; }
.tech svg { width: 28px; height: 28px; }
.tech-label { font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: -0.04em; }
.tech-csharp { background: #68217a; }
.tech-dotnet { background: #512bd4; font-size: 10px; }
.tech-go { background: #00add8; }
.tech-typescript { background: #3178c6; }
.tech-nextjs { background: #111318; }
.tech-react { background: #0d1420; color: #61dafb; }
.tech-postgres { background: #336791; }
.tech-redis { background: #d82c20; }
.tech-docker { background: #1d63ed; }
.tech-kubernetes { background: #326ce5; }
.tech-azure { background: #008ad6; }
.tech-openai { background: #111318; }
.tech-code { background: #172033; color: var(--green); }
.tech-dotnet .tech-label { font-size: 9px; }

.venture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.venture {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 20px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  color: inherit;
}
a.venture:hover { border-color: rgba(255, 255, 255, 0.18); }
.venture h3 { margin-top: 0; }
.venture .summary { margin-top: 8px; }
.ext {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #d5deea;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(200px, 250px) minmax(180px, 1fr) auto auto;
  gap: 28px;
  align-items: center;
}
.contact-copy {
  margin: 0;
  color: #b7c1ce;
  font-size: 15.5px;
  line-height: 1.6;
}
.channels { display: flex; flex-wrap: wrap; gap: 18px 26px; }
.channel { display: flex; align-items: center; gap: 10px; min-width: 0; }
.channel svg { flex: none; color: #d5deea; }
.channel strong, .channel small { display: block; }
.channel strong { font-size: 14px; font-weight: 600; }
.channel small { color: var(--faint); font-size: 12.5px; }
.channel:hover strong { color: var(--green); }

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  color: #8b95a6;
  font-size: 13.5px;
}
.footer .brand-name { font-size: 12px; }
.footer .mark { width: 32px; height: 32px; font-size: 11px; }
.footer-note { text-align: center; }

.section-edit, .edit-fab {
  background: var(--green);
  color: var(--green-ink);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 10px;
}
.section-edit { position: absolute; top: 16px; right: 0; z-index: 3; }
.hero-visual .section-edit { top: auto; bottom: 16px; right: 16px; }
.edit-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.is-admin .section-head { padding-right: 64px; }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; z-index: 2; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: #0e141c;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .nav-check:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: 10px 12px; border-radius: 10px; }
  .nav-links a:hover { background: rgba(255, 255, 255, 0.04); }
}
@media (max-width: 1100px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .rail, .hero-grid, .venture-grid { grid-template-columns: 1fr; }
  .rail { grid-template-areas: "kicker" "title" "content"; row-gap: 14px; }
  .jobs { grid-template-columns: 1fr; }
  .jobs::before { display: none; }
  .hero-visual, .hero-visual img { min-height: 380px; }
}
@media (max-width: 680px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .project-grid, .service-grid, .contact-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .scribble { font-size: 34px; top: 18px; right: 16px; }
  .hero h1 { font-size: 48px; }
  .section { padding: 56px 0; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .btn, .project { transition: none; }
}
