:root {
  color-scheme: light;
  --ink: #101417;
  --muted: #65707a;
  --soft: #f3f5f7;
  --surface: #ffffff;
  --line: #dce2e8;
  --navy: #101b2d;
  --blue: #2563eb;
  --teal: #0f8f7f;
  --lime: #b9e769;
  --amber: #f4b942;
  --rose: #dc5b5b;
  --shadow: 0 24px 80px rgba(16, 20, 23, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(220, 226, 232, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 30px);
  color: #4f5c67;
  font-size: 0.95rem;
}

.nav-links a,
.contact-links a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.contact-links a:hover {
  color: var(--blue);
}

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.header-action,
.secondary-button {
  background: #fff;
  border: 1px solid var(--line);
}

.primary-button {
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.header-action:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.section-band,
.section {
  padding-inline: clamp(18px, 5vw, 72px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.82fr);
  gap: clamp(28px, 5vw, 82px);
  align-items: center;
  min-height: min(810px, calc(100vh - 104px));
  padding-top: 44px;
  padding-bottom: 54px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 22%, rgba(185, 231, 105, 0.2), transparent 28%),
    linear-gradient(135deg, #f7fafc 0%, #f3f5f7 46%, #e8edf3 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(16, 27, 45, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 27, 45, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
}

.hero-content,
.hero-visual {
  position: relative;
}

.hero-content {
  max-width: 850px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 7.4vw, 6.55rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  color: #4d5965;
  font-size: clamp(1.05rem, 1.8vw, 1.26rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin-top: 42px;
}

.hero-proof div {
  min-height: 96px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(220, 226, 232, 0.92);
  border-radius: 8px;
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  font-size: 1.22rem;
}

.hero-proof span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.command-panel {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #eef5ff;
}

.command-panel::before {
  position: absolute;
  inset: 22px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(185, 231, 105, 0.12);
  border-radius: 8px;
}

.command-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #9fb0c5;
}

.command-topbar strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.command-topbar strong::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(185, 231, 105, 0.8);
}

.service-stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-card {
  min-height: 132px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
}

.service-card.active {
  background: rgba(37, 99, 235, 0.28);
  border-color: rgba(185, 231, 105, 0.42);
}

.service-card span,
.terminal-line span,
.project-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card span,
.terminal-line span {
  color: #9fb0c5;
}

.service-card strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.25;
}

.terminal-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #08111f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.terminal-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.terminal-line span {
  flex: 0 0 auto;
  margin: 0;
  color: var(--lime);
}

.terminal-line strong {
  text-align: right;
  font-size: 0.96rem;
}

.section {
  padding-top: clamp(76px, 10vw, 118px);
  padding-bottom: clamp(76px, 10vw, 118px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(280px, 1fr);
  gap: clamp(24px, 6vw, 88px);
  background: #fff;
  border-top: 1px solid var(--line);
}

.intro p:last-child,
.contact-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.13rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.services-section {
  background: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article {
  min-height: 260px;
  padding: 28px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.service-grid p,
.timeline-body p,
.timeline-body ul,
.project-card p {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 54px);
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline-meta {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline-body {
  max-width: 900px;
}

.timeline-body ul {
  display: grid;
  gap: 6px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.projects-band {
  background: #e8eef5;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: grid;
  align-content: start;
  min-height: 250px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(16, 27, 45, 0.07);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 20px 58px rgba(16, 27, 45, 0.11);
}

.featured-project {
  background: var(--navy);
  color: #fff;
}

.featured-project p {
  color: #bdc9d9;
}

.project-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.project-card li {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e9f0f8;
  font-size: 0.82rem;
  font-weight: 800;
}

.skills-section {
  background: #fff;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill-groups > div {
  padding: 24px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 8px;
}

.skill-groups > div:nth-child(2) {
  border-top-color: var(--teal);
}

.skill-groups > div:nth-child(3) {
  border-top-color: var(--amber);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #33404c;
  font-weight: 760;
  font-size: 0.92rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 0.72fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: start;
  background: linear-gradient(135deg, #101b2d 0%, #132b3e 100%);
  color: #fff;
}

.contact-section .section-kicker {
  color: var(--lime);
}

.contact-copy p {
  color: #c5d0dc;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-weight: 850;
}

.contact-links span {
  color: #9fb0c5;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(37, 99, 235, 0.16);
}

.contact-form button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--blue);
  font-weight: 850;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  background: #08111f;
  color: #9fb0c5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1120px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .intro,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .service-grid,
  .project-grid,
  .skill-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
    padding-block: 12px;
  }

  .brand span:last-child {
    max-width: 178px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-action {
    min-height: 40px;
    padding-inline: 13px;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 36px;
  }

  h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.35rem);
  }

  h2 {
    font-size: clamp(1.9rem, 8vw, 2.55rem);
  }

  .hero-proof,
  .service-stack,
  .service-grid,
  .project-grid,
  .skill-groups,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .command-panel {
    padding: 16px;
  }

  .service-card {
    min-height: auto;
  }

  .terminal-line {
    display: grid;
    gap: 4px;
  }

  .terminal-line strong {
    text-align: left;
  }

  .section-heading {
    display: block;
  }

  .timeline-item,
  .project-card,
  .service-grid article {
    min-height: auto;
    padding: 20px;
  }

  .site-footer {
    display: grid;
  }
}
