:root {
  --ink: #07100d;
  --ink-soft: #101a16;
  --paper: #f2f4ee;
  --white: #fbfdf9;
  --green: #29f08a;
  --green-deep: #087746;
  --muted: #8e9b95;
  --line: rgba(223, 244, 232, 0.14);
  --font-geist-sans: Arial, Helvetica, sans-serif;
  --font-geist-mono: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1400px, calc(100% - 64px));
  height: 100px;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  width: 128px;
  height: 58px;
  align-items: center;
}
.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}
.desktop-nav a {
  color: #cdd7d1;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.25s ease;
}
.desktop-nav a:hover {
  color: var(--green);
}

.mobile-menu {
  display: none;
  position: relative;
}
.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  color: #dce8e1;
  font-size: 12px;
  font-weight: 700;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.mobile-menu summary span {
  margin-left: 7px;
  color: var(--green);
}
.mobile-menu nav {
  position: absolute;
  top: 38px;
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 10px;
  border: 1px solid rgba(167, 224, 193, 0.16);
  background: rgba(5, 16, 11, 0.97);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
.mobile-menu nav a {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(167, 224, 193, 0.08);
  color: #cbd8d0;
  font-size: 12px;
}
.mobile-menu nav a:last-child {
  border-bottom: 0;
}

.header-cta {
  justify-self: end;
  padding: 14px 19px;
  border: 1px solid rgba(41, 240, 138, 0.45);
  border-radius: 100px;
  background: rgba(41, 240, 138, 0.08);
  color: #dffbed;
  font-size: 13px;
  font-weight: 700;
}
.header-cta span {
  margin-left: 14px;
  color: var(--green);
}

.hero {
  position: relative;
  min-height: 840px;
  padding: 178px max(32px, calc((100vw - 1400px) / 2)) 90px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr);
  align-items: center;
  gap: 64px;
  overflow: hidden;
  background: #07100d;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/mas-engineering-hero.png") center center / cover
    no-repeat;
  filter: saturate(0.9) contrast(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #07100d 0%,
      rgba(7, 16, 13, 0.98) 19%,
      rgba(7, 16, 13, 0.88) 39%,
      rgba(7, 16, 13, 0.16) 70%,
      rgba(7, 16, 13, 0.22) 100%
    ),
    linear-gradient(0deg, rgba(7, 16, 13, 0.75) 0%, transparent 35%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(173, 232, 200, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173, 232, 200, 0.08) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent 87%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.hero-orb-one {
  width: 430px;
  height: 430px;
  right: 5%;
  top: 20%;
  border: 1px solid rgba(41, 240, 138, 0.11);
}
.hero-orb-two {
  width: 650px;
  height: 650px;
  right: -2%;
  top: 6%;
  border: 1px solid rgba(41, 240, 138, 0.06);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 28px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 30px;
  color: #b1c0b8;
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  color: #f5f8f4;
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: clamp(56px, 6vw, 94px);
  font-weight: 580;
  line-height: 0.98;
  letter-spacing: -0.064em;
}
.hero h1 em {
  color: var(--green);
  font-style: normal;
}

.hero-copy > p {
  max-width: 620px;
  margin: 32px 0 0;
  color: #a9b7af;
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 38px;
}
.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 0 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.button-primary {
  background: var(--green);
  color: #04170e;
  box-shadow: 0 16px 40px rgba(41, 240, 138, 0.12);
}
.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(41, 240, 138, 0.25);
}
.text-link {
  color: #d8e2dc;
  font-size: 13px;
  font-weight: 700;
}
.text-link span {
  margin-left: 10px;
  color: var(--green);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 45px;
}
.hero-trust span {
  padding: 8px 12px;
  border: 1px solid rgba(219, 245, 231, 0.11);
  border-radius: 100px;
  color: #86988e;
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1.08;
  border: 1px solid rgba(138, 213, 172, 0.13);
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(10, 28, 20, 0.04),
    rgba(4, 13, 10, 0.02)
  );
  box-shadow: inset 0 0 70px rgba(25, 204, 112, 0.018);
}
.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(91, 225, 155, 0.045);
  transform: rotate(45deg) scale(0.7);
}
.hero-stage::after {
  inset: 23%;
  border-style: dashed;
  animation: rotate 26s linear infinite;
}

.stage-topline,
.stage-caption {
  position: absolute;
  z-index: 4;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  color: #6d8377;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stage-topline {
  top: 22px;
}
.stage-caption {
  bottom: 22px;
}
.live-dot {
  color: var(--green);
}
.live-dot::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.stage-scan {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(41, 240, 138, 0.7),
    transparent
  );
  box-shadow: 0 0 18px rgba(41, 240, 138, 0.45);
  animation: scan 5s ease-in-out infinite;
}

.system-core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
}
.core-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(41, 240, 138, 0.28);
  border-radius: 50%;
}
.core-ring-one {
  box-shadow:
    inset 0 0 44px rgba(41, 240, 138, 0.06),
    0 0 44px rgba(41, 240, 138, 0.06);
}
.core-ring-two {
  inset: 24px;
  border-style: dashed;
  animation: rotate 18s linear infinite reverse;
}
.core-mark {
  position: absolute;
  inset: 51px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 240, 138, 0.58);
  border-radius: 50%;
  background: rgba(41, 240, 138, 0.08);
  color: var(--green);
  font-family: var(--font-geist-mono), monospace;
  font-size: 23px;
  font-weight: 700;
  box-shadow: 0 0 45px rgba(41, 240, 138, 0.13);
}

.metric-card {
  position: absolute;
  z-index: 5;
  width: 155px;
  padding: 16px;
  border: 1px solid rgba(154, 231, 190, 0.14);
  background: rgba(5, 17, 12, 0.82);
  backdrop-filter: blur(12px);
}
.metric-card-one {
  top: 24%;
  left: 7%;
}
.metric-card-two {
  right: 7%;
  bottom: 23%;
}
.metric-card small {
  display: block;
  margin-bottom: 8px;
  color: #718278;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.metric-card strong {
  color: #dffbed;
  font-family: var(--font-geist-mono), monospace;
  font-size: 16px;
}
.metric-line {
  height: 2px;
  margin-top: 14px;
  background: #193526;
}
.metric-line span {
  display: block;
  width: 83%;
  height: 100%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.signal-bars {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 14px;
  margin-top: 10px;
}
.signal-bars i {
  width: 4px;
  background: var(--green);
}
.signal-bars i:nth-child(1) {
  height: 4px;
  opacity: 0.45;
}
.signal-bars i:nth-child(2) {
  height: 7px;
  opacity: 0.6;
}
.signal-bars i:nth-child(3) {
  height: 10px;
  opacity: 0.8;
}
.signal-bars i:nth-child(4) {
  height: 14px;
}

.node {
  position: absolute;
  z-index: 4;
  width: 8px;
  height: 8px;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: #06140d;
  box-shadow: 0 0 12px rgba(41, 240, 138, 0.5);
}
.node-a {
  top: 23%;
  right: 27%;
}
.node-b {
  bottom: 21%;
  left: 24%;
}
.node-c {
  top: 57%;
  right: 13%;
}
.connection {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 240, 138, 0.35));
  transform-origin: left;
}
.connection-a {
  top: 31%;
  left: 49%;
  width: 28%;
  transform: rotate(-21deg);
}
.connection-b {
  bottom: 29%;
  left: 29%;
  width: 25%;
  transform: rotate(-24deg);
}

.system-core,
.node,
.connection {
  opacity: 0.16;
}

.scroll-note {
  position: absolute;
  z-index: 4;
  bottom: 34px;
  left: max(32px, calc((100vw - 1400px) / 2));
  display: flex;
  align-items: center;
  gap: 12px;
  color: #65766c;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-note span {
  width: 42px;
  height: 1px;
  background: #2c4136;
}

.services-section {
  padding: 120px max(32px, calc((100vw - 1400px) / 2)) 130px;
  background: var(--paper);
  color: var(--ink);
}
.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 66px;
}
.section-index {
  color: var(--green-deep);
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-heading h2 {
  margin: 22px 0 0;
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 590;
}
.section-heading > p {
  max-width: 460px;
  margin: 0;
  color: #5d6a63;
  font-size: 15px;
  line-height: 1.8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #cbd4ce;
  border-bottom: 1px solid #cbd4ce;
}
.service-card {
  min-height: 365px;
  padding: 28px 30px 30px;
  border-right: 1px solid #cbd4ce;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}
.service-card:first-child {
  border-left: 1px solid #cbd4ce;
}
.service-card:hover {
  transform: translateY(-5px);
  background: var(--ink-soft);
  color: var(--white);
}
.service-top {
  display: flex;
  justify-content: space-between;
  color: #718078;
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
}
.service-card:hover .service-top {
  color: var(--green);
}
.service-card h3 {
  margin: 108px 0 18px;
  font-size: 27px;
  letter-spacing: -0.035em;
}
.service-card p {
  min-height: 74px;
  margin: 0;
  color: #647169;
  font-size: 14px;
  line-height: 1.72;
}
.service-card:hover p {
  color: #9eaca4;
}
.service-tags {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.service-tags span {
  padding: 7px 10px;
  border: 1px solid #c6d0ca;
  border-radius: 100px;
  color: #526159;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
}
.service-card:hover .service-tags span {
  border-color: #294637;
  color: #9ab1a4;
}

.section-index.light {
  color: var(--green);
}

.expertise-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 100px;
  padding: 130px max(32px, calc((100vw - 1400px) / 2));
  background: #0a1410;
}

.expertise-intro {
  align-self: start;
  position: sticky;
  top: 50px;
}
.expertise-intro h2 {
  max-width: 570px;
  margin: 26px 0 28px;
  font-size: clamp(46px, 5.2vw, 76px);
  font-weight: 540;
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.expertise-intro h2 em {
  display: block;
  color: #819188;
  font-style: normal;
}
.expertise-intro > p {
  max-width: 460px;
  margin: 0;
  color: #8f9e96;
  font-size: 15px;
  line-height: 1.8;
}
.outline-link {
  display: inline-flex;
  gap: 45px;
  margin-top: 40px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(41, 240, 138, 0.4);
  color: #dce9e1;
  font-size: 13px;
  font-weight: 700;
}
.outline-link span {
  color: var(--green);
}

.expertise-list {
  border-top: 1px solid rgba(214, 239, 226, 0.14);
}
.expertise-row {
  display: grid;
  grid-template-columns: 45px 1fr 30px;
  gap: 25px;
  padding: 34px 0 38px;
  border-bottom: 1px solid rgba(214, 239, 226, 0.14);
  transition:
    padding 0.3s ease,
    background 0.3s ease;
}
.expertise-row:hover {
  padding-left: 18px;
  padding-right: 18px;
  background: rgba(41, 240, 138, 0.025);
}
.expertise-number {
  padding-top: 5px;
  color: var(--green);
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
}
.expertise-row h3 {
  margin: 0 0 14px;
  color: #eef4f0;
  font-size: 24px;
  font-weight: 570;
  letter-spacing: -0.025em;
}
.expertise-row p {
  max-width: 530px;
  margin: 0 0 18px;
  color: #84948b;
  font-size: 13px;
  line-height: 1.7;
}
.expertise-stack {
  color: #54675c;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.row-arrow {
  color: #52655a;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}
.expertise-row:hover .row-arrow {
  color: var(--green);
  transform: translate(3px, -3px);
}

.portfolio-section {
  padding: 130px max(32px, calc((100vw - 1400px) / 2));
  background:
    radial-gradient(
      circle at 82% 12%,
      rgba(41, 240, 138, 0.075),
      transparent 27%
    ),
    #07100d;
  color: var(--white);
}
.portfolio-heading {
  margin-bottom: 62px;
}
.portfolio-heading h2 {
  color: #f2f7f4;
}
.portfolio-heading > p {
  color: #84958c;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.portfolio-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  outline: none;
  border: 1px solid rgba(205, 235, 219, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(41, 240, 138, 0.08),
      transparent 32%
    ),
    linear-gradient(145deg, #0c1813, #07100d 66%);
  box-shadow:
    0 26px 74px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  isolation: isolate;
}
.portfolio-seven,
.portfolio-five {
  grid-column: span 1;
}
.portfolio-full {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 960px);
}
.portfolio-image {
  position: absolute;
  inset: 10px;
  z-index: -3;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border-radius: 7px;
  object-fit: contain;
  object-position: center;
  transform: scale(0.965);
  transition:
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.55s ease;
}
.portfolio-shade {
  position: absolute;
  inset: 10px;
  z-index: -2;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(3, 10, 7, 0.02) 36%, rgba(3, 10, 7, 0.8) 100%),
    linear-gradient(90deg, rgba(3, 10, 7, 0.13), transparent 52%);
  transition: background 0.45s ease;
}
.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.35s ease;
}
.portfolio-topline {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  color: rgba(230, 242, 235, 0.7);
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  letter-spacing: 0.11em;
}
.portfolio-topline span:last-child {
  color: var(--green);
}
.portfolio-popup {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 20px;
  left: 20px;
  min-height: 248px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(194, 230, 211, 0.16);
  border-radius: 8px;
  background: rgba(5, 15, 10, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  transform: translateY(calc(100% - 99px));
  transition:
    transform 0.48s cubic-bezier(0.2, 0.75, 0.2, 1),
    border-color 0.35s ease,
    background 0.35s ease;
}
.portfolio-category {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.portfolio-popup h3 {
  margin: 0;
  color: #f3f8f5;
  font-size: clamp(21px, 2.1vw, 31px);
  font-weight: 570;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.portfolio-reveal {
  opacity: 0;
  transform: translateY(13px);
  transition:
    opacity 0.28s ease 0.04s,
    transform 0.38s ease 0.04s;
}
.portfolio-reveal p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #a7b6ae;
  font-size: 12px;
  line-height: 1.62;
}
.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}
.portfolio-tags span {
  padding: 6px 9px;
  border: 1px solid rgba(160, 207, 181, 0.19);
  border-radius: 100px;
  color: #82978b;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}
.portfolio-reveal > a {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  margin-top: 20px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(41, 240, 138, 0.45);
  color: #e7f3ec;
  font-size: 11px;
  font-weight: 700;
}
.portfolio-reveal > a span {
  color: var(--green);
}
.portfolio-card:hover .portfolio-popup,
.portfolio-card:focus .portfolio-popup,
.portfolio-card:focus-within .portfolio-popup,
.portfolio-card.is-active .portfolio-popup {
  transform: translateY(0);
  border-color: rgba(41, 240, 138, 0.35);
  background: rgba(5, 15, 10, 0.94);
}
.portfolio-card:hover .portfolio-reveal,
.portfolio-card:focus .portfolio-reveal,
.portfolio-card:focus-within .portfolio-reveal,
.portfolio-card.is-active .portfolio-reveal {
  opacity: 1;
  transform: translateY(0);
}
.portfolio-card:hover .portfolio-image,
.portfolio-card:focus .portfolio-image,
.portfolio-card:focus-within .portfolio-image,
.portfolio-card.is-active .portfolio-image {
  transform: scale(0.99);
  filter: brightness(0.72) saturate(0.88);
}
.portfolio-card:hover .portfolio-shade,
.portfolio-card:focus .portfolio-shade,
.portfolio-card:focus-within .portfolio-shade,
.portfolio-card.is-active .portfolio-shade {
  background: linear-gradient(
    180deg,
    rgba(3, 10, 7, 0.24),
    rgba(3, 10, 7, 0.92)
  );
}
.portfolio-card:hover::after,
.portfolio-card:focus::after,
.portfolio-card:focus-within::after,
.portfolio-card.is-active::after {
  box-shadow:
    inset 0 0 0 1px rgba(41, 240, 138, 0.38),
    inset 0 0 70px rgba(41, 240, 138, 0.04);
}

.process-section {
  padding: 130px max(32px, calc((100vw - 1400px) / 2));
  background: #08110e;
}
.process-head {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  align-items: end;
  margin-bottom: 70px;
}
.process-head h2 {
  margin: 0;
  font-size: clamp(46px, 5.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 540;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(214, 239, 226, 0.14);
}
.process-card {
  min-height: 340px;
  padding: 28px 24px 30px;
  border-right: 1px solid rgba(214, 239, 226, 0.14);
}
.process-card:first-child {
  border-left: 1px solid rgba(214, 239, 226, 0.14);
}
.process-card > span {
  color: #607268;
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
}
.process-mark {
  width: 11px;
  height: 11px;
  margin-top: 60px;
  border: 1px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(41, 240, 138, 0.25);
}
.process-card h3 {
  margin: 40px 0 15px;
  font-size: 24px;
}
.process-card p {
  margin: 0;
  color: #7e8f86;
  font-size: 13px;
  line-height: 1.72;
}

.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 140px max(32px, calc((100vw - 1400px) / 2)) 70px;
  background: #0d1a14;
  text-align: center;
}
.contact-glow {
  position: absolute;
  z-index: -1;
  top: -260px;
  left: 50%;
  width: 780px;
  height: 780px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(32, 219, 123, 0.17),
    transparent 66%
  );
}
.contact-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #9baca2;
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-kicker span {
  width: 25px;
  height: 1px;
  background: var(--green);
}
.contact-section h2 {
  margin: 30px auto 26px;
  font-size: clamp(48px, 6.3vw, 92px);
  font-weight: 540;
  line-height: 1;
  letter-spacing: -0.064em;
}
.contact-section h2 em {
  color: var(--green);
  font-style: normal;
}
.contact-section > p {
  max-width: 650px;
  margin: 0 auto;
  color: #8e9e95;
  font-size: 15px;
  line-height: 1.8;
}
.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-top: 42px;
}
.contact-button {
  min-width: 220px;
}
.contact-email {
  padding-bottom: 8px;
  border-bottom: 1px solid #325443;
  color: #d5e4db;
  font-size: 13px;
}
.contact-email span {
  margin-left: 14px;
  color: var(--green);
}
.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 110px;
  border-top: 1px solid rgba(214, 239, 226, 0.12);
  text-align: left;
}
.contact-details div {
  min-height: 105px;
  padding: 25px 26px;
  border-right: 1px solid rgba(214, 239, 226, 0.12);
}
.contact-details div:first-child {
  border-left: 1px solid rgba(214, 239, 226, 0.12);
}
.contact-details span {
  display: block;
  margin-bottom: 12px;
  color: #586d61;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-details a,
.contact-details strong {
  color: #d7e3dc;
  font-size: 13px;
  font-weight: 600;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 50px max(32px, calc((100vw - 1400px) / 2));
  border-top: 1px solid rgba(214, 239, 226, 0.1);
  background: #050c09;
}
.footer-brand {
  width: 105px;
  height: 72px;
  display: flex;
  align-items: center;
}
.footer-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.site-footer > p {
  justify-self: end;
  margin: 0;
  color: #52645a;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.site-footer nav {
  display: flex;
  gap: 30px;
}
.site-footer nav a {
  color: #91a097;
  font-size: 11px;
}
.site-footer small {
  justify-self: end;
  color: #425248;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  letter-spacing: 0.05em;
}

.ai-chat {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  display: grid;
  justify-items: end;
  gap: 14px;
  font-family: var(--font-geist-sans), Arial, sans-serif;
}
.ai-chat-panel {
  width: min(390px, calc(100vw - 32px));
  height: min(610px, calc(100vh - 112px));
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  border: 1px solid rgba(83, 255, 165, 0.24);
  border-radius: 20px;
  background: rgba(7, 16, 13, 0.98);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 45px rgba(41, 240, 138, 0.07);
  backdrop-filter: blur(18px);
  animation: chat-in 0.24s ease-out;
}
.ai-chat-header {
  display: grid;
  grid-template-columns: 44px 1fr 34px;
  align-items: center;
  gap: 11px;
  padding: 16px;
  border-bottom: 1px solid rgba(214, 239, 226, 0.1);
  background: linear-gradient(
    135deg,
    rgba(41, 240, 138, 0.1),
    rgba(41, 240, 138, 0.01)
  );
}
.ai-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 240, 138, 0.55);
  border-radius: 13px;
  background: rgba(41, 240, 138, 0.1);
  color: var(--green);
  font-family: var(--font-geist-mono), monospace;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 18px rgba(41, 240, 138, 0.08);
}
.ai-chat-header strong {
  display: block;
  color: #eef8f2;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.ai-chat-header span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #7f9388;
  font-size: 10px;
}
.ai-chat-header span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(41, 240, 138, 0.8);
}
.ai-chat-header > button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #8ea096;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.ai-chat-header > button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ai-chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 18px 16px;
  scrollbar-width: thin;
  scrollbar-color: #1d4a34 transparent;
}
.ai-message {
  max-width: 87%;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.58;
  white-space: pre-wrap;
}
.ai-message.assistant {
  align-self: flex-start;
  border: 1px solid rgba(214, 239, 226, 0.1);
  border-bottom-left-radius: 4px;
  background: #111f19;
  color: #c8d6ce;
}
.ai-message.user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--green);
  color: #052012;
  font-weight: 560;
}
.ai-quick-prompts {
  display: grid;
  gap: 7px;
  margin-top: 3px;
}
.ai-quick-prompts button {
  padding: 10px 11px;
  border: 1px solid rgba(41, 240, 138, 0.17);
  border-radius: 10px;
  background: rgba(41, 240, 138, 0.035);
  color: #9db0a5;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  text-align: left;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}
.ai-quick-prompts button:hover {
  border-color: rgba(41, 240, 138, 0.42);
  background: rgba(41, 240, 138, 0.07);
  color: #d7e8de;
}
.ai-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 54px;
}
.ai-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #789187;
  animation: typing 1s infinite ease-in-out;
}
.ai-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.ai-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
.ai-chat-form {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 9px;
  padding: 12px 14px 8px;
  border-top: 1px solid rgba(214, 239, 226, 0.1);
}
.ai-chat-form input {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(214, 239, 226, 0.12);
  outline: none;
  border-radius: 12px;
  background: #0d1914;
  color: #e7f1eb;
  font: inherit;
  font-size: 12px;
}
.ai-chat-form input::placeholder {
  color: #5f7368;
}
.ai-chat-form input:focus {
  border-color: rgba(41, 240, 138, 0.55);
  box-shadow: 0 0 0 3px rgba(41, 240, 138, 0.07);
}
.ai-chat-form button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #052012;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
}
.ai-chat-form button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}
.ai-chat-note {
  padding: 0 14px 11px;
  color: #506359;
  font-size: 8px;
  text-align: center;
}
.ai-chat-trigger {
  position: relative;
  min-width: 184px;
  min-height: 60px;
  display: grid;
  grid-template-columns: 38px 1fr 7px;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 10px;
  border: 1px solid rgba(64, 255, 155, 0.4);
  border-radius: 18px;
  background: #0c1913;
  color: #f0f7f3;
  cursor: pointer;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.38),
    0 0 30px rgba(41, 240, 138, 0.08);
  text-align: left;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.ai-chat-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(64, 255, 155, 0.75);
}
.ai-trigger-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--green);
  color: #062114;
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  font-weight: 900;
}
.ai-trigger-copy strong,
.ai-trigger-copy small {
  display: block;
}
.ai-trigger-copy strong {
  font-size: 12px;
}
.ai-trigger-copy small {
  margin-top: 3px;
  color: #6f8579;
  font-size: 9px;
}
.ai-chat-trigger > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes rotate {
  to {
    transform: rotate(405deg);
  }
}
@keyframes scan {
  0%,
  100% {
    top: 13%;
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    top: 88%;
    opacity: 0;
  }
}

@media (max-width: 1050px) {
  .site-header {
    width: calc(100% - 40px);
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 22px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-left: 40px;
    padding-right: 40px;
  }
  .hero::before {
    background-position: 67% center;
    opacity: 0.42;
  }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(7, 16, 13, 0.98), rgba(7, 16, 13, 0.64)),
      linear-gradient(0deg, #07100d 0%, transparent 42%);
  }
  .hero-copy {
    padding-top: 20px;
  }
  .hero-stage {
    width: min(700px, 100%);
    justify-self: center;
    aspect-ratio: 1.45;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .expertise-section {
    grid-template-columns: 1fr;
    gap: 70px;
  }
  .expertise-intro {
    position: static;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 820px;
    margin-inline: auto;
  }
  .portfolio-card,
  .portfolio-full {
    grid-column: 1;
    width: 100%;
  }
  .process-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-card {
    border-bottom: 1px solid rgba(214, 239, 226, 0.14);
  }
  .contact-details {
    grid-template-columns: 1fr;
  }
  .contact-details div,
  .contact-details div:first-child {
    border-left: 1px solid rgba(214, 239, 226, 0.12);
    border-bottom: 1px solid rgba(214, 239, 226, 0.12);
  }
}

@media (max-width: 700px) {
  .site-header {
    height: 82px;
    width: calc(100% - 32px);
  }
  .brand {
    width: 100px;
    height: 48px;
  }
  .header-cta {
    padding: 11px 14px;
    font-size: 11px;
  }
  .header-cta span {
    margin-left: 7px;
  }
  .hero {
    min-height: auto;
    padding: 130px 20px 72px;
    gap: 52px;
  }
  .hero::before {
    background-position: 70% center;
    opacity: 0.3;
  }
  .hero h1 {
    font-size: clamp(49px, 15vw, 68px);
  }
  .hero-copy > p {
    font-size: 15px;
    line-height: 1.7;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 21px;
  }
  .button {
    width: 100%;
  }
  .hero-stage {
    aspect-ratio: 0.9;
  }
  .metric-card {
    width: 130px;
    padding: 12px;
  }
  .metric-card-one {
    left: 4%;
  }
  .metric-card-two {
    right: 4%;
  }
  .system-core {
    width: 150px;
    height: 150px;
  }
  .core-mark {
    inset: 43px;
  }
  .scroll-note {
    display: none;
  }
  .services-section {
    padding: 86px 20px 90px;
  }
  .section-heading {
    margin-bottom: 44px;
  }
  .section-heading h2 {
    font-size: 43px;
  }
  .service-grid {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }
  .service-card,
  .service-card:first-child {
    min-height: 290px;
    border-left: 1px solid #cbd4ce;
    border-bottom: 1px solid #cbd4ce;
  }
  .service-card h3 {
    margin-top: 65px;
  }
  .header-cta {
    display: none;
  }
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .expertise-section,
  .portfolio-section,
  .process-section {
    padding: 88px 20px;
  }
  .expertise-intro h2 {
    font-size: 45px;
  }
  .expertise-row {
    grid-template-columns: 30px 1fr 18px;
    gap: 12px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .portfolio-card,
  .portfolio-full {
    grid-column: 1;
    width: 100%;
    min-height: 0;
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 10px;
  }
  .portfolio-image {
    position: relative;
    inset: auto;
    z-index: 0;
    display: block;
    width: calc(100% - 16px);
    height: auto;
    margin: 8px;
    aspect-ratio: auto;
    object-fit: contain;
    transform: none;
  }
  .portfolio-shade {
    z-index: 1;
    inset: 8px 8px auto;
    height: calc((100vw - 56px) * 0.625);
    border-radius: 7px;
    background: linear-gradient(
      180deg,
      rgba(3, 10, 7, 0.03),
      rgba(3, 10, 7, 0.42)
    );
  }
  .portfolio-topline {
    z-index: 2;
    top: 21px;
    left: 23px;
    right: 23px;
  }
  .portfolio-popup {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 3;
    min-height: 0;
    padding: 23px 20px 25px;
    border: 0;
    border-top: 1px solid rgba(194, 230, 211, 0.13);
    background: #0b1712;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
  }
  .portfolio-popup h3 {
    font-size: 25px;
  }
  .portfolio-reveal {
    opacity: 1;
    transform: none;
  }
  .portfolio-card:hover .portfolio-image,
  .portfolio-card:focus .portfolio-image,
  .portfolio-card:focus-within .portfolio-image {
    transform: none;
    filter: none;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-card,
  .process-card:first-child {
    min-height: 270px;
    border-left: 1px solid rgba(214, 239, 226, 0.14);
  }
  .process-mark {
    margin-top: 35px;
  }
  .process-card h3 {
    margin-top: 30px;
  }
  .contact-section {
    padding: 95px 20px 40px;
  }
  .contact-section h2 {
    font-size: 48px;
  }
  .contact-actions {
    flex-direction: column;
  }
  .contact-details {
    margin-top: 75px;
  }
  .site-footer {
    grid-template-columns: 1fr;
    padding: 44px 20px;
  }
  .site-footer > p,
  .site-footer small {
    justify-self: start;
  }
  .site-footer nav {
    flex-wrap: wrap;
    gap: 18px 24px;
  }
  .ai-chat {
    right: 12px;
    bottom: 12px;
  }
  .ai-chat-panel {
    width: calc(100vw - 24px);
    height: min(640px, calc(100vh - 88px));
    border-radius: 18px;
  }
  .ai-chat-trigger {
    min-width: 58px;
    grid-template-columns: 38px;
    padding: 9px;
    border-radius: 16px;
  }
  .ai-trigger-copy,
  .ai-chat-trigger > i {
    display: none;
  }
}

@media (hover: none) and (min-width: 701px) {
  .portfolio-popup {
    min-height: 220px;
    transform: translateY(calc(100% - 99px));
  }
  .portfolio-card:focus .portfolio-popup,
  .portfolio-card:focus-within .portfolio-popup {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
