:root {
  --ink: #071519;
  --ink2: #0d2327;
  --panel: #123034;
  --mint: #5ce5cf;
  --mint-soft: #b3f3e6;
  --cream: #ecf2ef;
  --muted: #a5b9b7;
  --line: rgba(183, 232, 221, .18);
}

.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#enquiry-status { margin: 0; font-size: 16px; color: #244943; }
#enquiry-status[data-state="error"] { color: #a12222; }
.enquiry-form button:disabled { cursor: wait; opacity: .65; }

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

button {
  font: inherit;
}

.shell {
  width: min(100% - 80px, 1380px);
  margin: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 99;
  background: var(--mint);
  color: var(--ink);
  padding: 10px;
}

.skip:focus {
  top: 10px;
}

.site-header {
  height: 88px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
  background: var(--ink);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  position: relative;
  width: 242px;
  height: 55px;
  overflow: hidden;
}

.brand-logo img {
  clip-path: polygon(0 0, 100% 0, 100% 57%, 28% 57%, 28% 100%, 0 100%);
  position: absolute;
  width: 288px;
  height: auto;
  max-width: none;
  left: -24px;
  top: -31px;
}

.brand-logo .brand-logo-light {
  filter: brightness(0) invert(1);
  clip-path: inset(0 0 43% 28%);
}

.brand-logo::after {
  content: '';
  position: absolute;
  left: 59px;
  top: 38px;
  width: 183px;
  height: 13px;
  background: url('megnexa-subtitle.svg') left center / 100% 100% no-repeat;
}

@media (max-width: 900px) {
  .brand-logo { width: 220px; height: 50px; }
  .brand-logo img { width: 262px; left: -22px; top: -28px; }
  .brand-logo::after { left: 54px; top: 35px; width: 166px; height: 12px; }
}

.brand-mark {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--mint);
  color: var(--mint);
  font-family: 'Space Grotesk';
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  position: relative;
}

.mark-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--mint);
  right: -3px;
  top: -3px;
}

.brand-name {
  font-family: 'Space Grotesk';
  font-size: 19px;
  letter-spacing: .12em;
  font-weight: 700;
  line-height: 1;
}

.brand-name small {
  display: block;
  font-size: 9px;
  letter-spacing: .36em;
  color: var(--mint);
  margin-top: 6px;
}

.nav-links {
  display: flex;
  gap: 38px;
  margin-left: auto;
}

.nav-links a,
.nav-cta {
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  color: #bfd0cb;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--mint);
}

.nav-cta {
  border: 1px solid var(--mint);
  color: var(--mint);
  padding: 11px 19px;
  display: flex;
  gap: 32px;
  align-items: center;
  transition: .2s;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--mint);
  color: var(--ink);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero {
  background:
    radial-gradient(circle at 55% 0%, rgba(92, 229, 207, .12), transparent 32%),
    linear-gradient(180deg, #071519 0%, #0a1b1f 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 50.5% 49.5%;
  min-height: 658px;
  position: relative;
}

.hero-grid::before {
  content: '';
  position: absolute;
  left: 50.5%;
  top: 0;
  bottom: -74px;
  width: 1px;
  background: var(--line);
  z-index: 2;
}

.hero-copy {
  padding: 94px 52px 62px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 3;
}

.eyebrow,
.section-kicker {
  font-size: 12px;
  color: var(--mint);
  letter-spacing: .19em;
  font-weight: 700;
  line-height: 1.5;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 31px;
}

.eyebrow-line {
  height: 1px;
  width: 30px;
  background: var(--mint);
}

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

h1,
h2,
h3 {
  font-family: 'Space Grotesk', Arial, sans-serif;
}

h1 {
  font-size: clamp(54px, 6.1vw, 100px);
  line-height: 1.02;
  letter-spacing: -.067em;
  font-weight: 500;
  margin-bottom: 30px;
  white-space: nowrap;
}

h1 em {
  font-style: normal;
  color: var(--mint);
}

.hero-lead {
  font-size: 18px;
  line-height: 1.65;
  max-width: 530px;
  color: #b7cac8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 29px;
  margin-top: 25px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 21px;
  font-weight: 700;
  font-size: 14px;
  transition: .2s;
}

.button-primary {
  background: var(--mint);
  color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #b7f8ec;
  transform: translateY(-2px);
}

.text-link {
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid #a8c9c3;
  padding-bottom: 6px;
  display: inline-flex;
  gap: 25px;
  transition: color .2s;
}

.text-link:hover {
  color: var(--mint);
}

.hero-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #91a7a4;
  font-size: 13px;
  margin-top: auto;
  padding-top: 44px;
}

.mini-cross {
  color: var(--mint);
  font-size: 20px;
}

.hero-visual {
  position: relative;
  min-height: 658px;
  margin-right: -1px;
  background-image:
    linear-gradient(90deg, rgba(7, 21, 25, .54), rgba(7, 21, 25, .02) 28%),
    linear-gradient(0deg, rgba(7, 21, 25, .8), transparent 40%),
    linear-gradient(180deg, rgba(7, 21, 25, .28), transparent 26%),
    url('hero-pcb.png');
  background-size: cover;
  background-position: 52% center;
  isolation: isolate;
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(179, 243, 230, .34);
  pointer-events: none;
  z-index: 1;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(92, 229, 207, .22) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(236, 242, 239, .13) 0 1px, transparent 1px 100%);
  background-size: 84px 84px;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 100%);
  opacity: .34;
}

.visual-top,
.visual-bottom {
  position: absolute;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: .15em;
  font-weight: 700;
  z-index: 2;
}

.visual-top {
  top: 30px;
}

.visual-bottom {
  bottom: 25px;
  justify-content: flex-start;
  gap: 10px;
  color: #e2f4ef;
  letter-spacing: .04em;
  font-size: 12px;
}

.visual-panel {
  position: absolute;
  right: 30px;
  bottom: 74px;
  width: min(315px, calc(100% - 60px));
  padding: 18px 18px 17px;
  background: rgba(7, 21, 25, .78);
  border: 1px solid rgba(179, 243, 230, .28);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
  z-index: 3;
}

.visual-panel span {
  display: block;
  color: var(--mint);
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.visual-panel strong {
  display: block;
  color: var(--cream);
  font-family: 'Space Grotesk';
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: 0;
  font-weight: 500;
}

.orb {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 15px var(--mint);
}

.hero-index {
  min-height: 74px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-index div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 13px;
  align-content: center;
  padding: 13px 26px 13px 0;
  border-right: 1px solid var(--line);
}

.hero-index div:nth-child(2) {
  padding-left: 26px;
}

.hero-index div:last-child {
  border-right: 0;
  padding-right: 0;
  padding-left: 26px;
}

.hero-index span {
  grid-row: span 2;
  color: var(--mint);
  font-family: 'Space Grotesk';
  font-size: 13px;
  font-weight: 700;
}

.hero-index strong {
  color: #d5e5e0;
  font-size: 12px;
  letter-spacing: .28em;
}

.hero-index small {
  color: #829c99;
  font-size: 12px;
  letter-spacing: 0;
  margin-top: 2px;
}

.section-pad {
  padding: 115px 0;
}

.section-kicker {
  margin-bottom: 28px;
}

.intro {
  background: #f0f3ef;
  color: var(--ink);
}

.intro-grid {
  display: grid;
  grid-template-columns: 32% 68%;
}

.intro .section-kicker,
.services .section-kicker,
.contact .section-kicker {
  color: #198d7d;
}

.intro h2,
.section-heading h2,
.approach h2,
.contact h2 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: -.055em;
  font-weight: 500;
  margin-bottom: 25px;
}

.intro .accent,
.services .accent,
.contact .accent {
  color: #159a86;
}

.intro-grid > div {
  max-width: 790px;
}

.intro-grid > div > p {
  font-size: 18px;
  color: #45605d;
  max-width: 650px;
  line-height: 1.7;
  margin-bottom: 0;
}

.services {
  background: #e3eae5;
  color: var(--ink);
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 370px;
  color: #4f6966;
  font-size: 17px;
  margin-bottom: 8px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #c5d6d0;
  border: 1px solid #c5d6d0;
}

.service-card {
  background: #f5f7f3;
  min-height: 345px;
  padding: 27px 27px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .2s, transform .2s;
}

.service-card:hover {
  background: #fff;
  transform: translateY(-5px);
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  font-size: 13px;
  color: #6b8c86;
  font-weight: 700;
}

.service-icon {
  font-family: 'Space Grotesk';
  font-size: 38px;
  line-height: 1;
  color: #179b87;
}

.service-card h3 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.04em;
  margin-bottom: 13px;
}

.service-card p {
  font-size: 15px;
  color: #5d7470;
  line-height: 1.55;
  margin-bottom: 0;
}

.card-rule {
  height: 2px;
  width: 30px;
  background: #169a85;
}

.approach {
  background: #0e292d;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
}

.approach h2 {
  max-width: 620px;
}

.approach-copy {
  color: #a9c0bc;
  font-size: 17px;
  max-width: 490px;
}

.steps {
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 75px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 25px 0 23px;
}

.step > span {
  color: var(--mint);
  font-family: 'Space Grotesk';
  font-size: 14px;
}

.step h3 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -.03em;
  margin-bottom: 7px;
}

.step p {
  color: #9fb6b2;
  font-size: 15px;
  margin-bottom: 0;
  max-width: 420px;
}

.contact {
  background: #d4ebe4;
  color: var(--ink);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .72fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact h2 {
  font-size: clamp(44px, 4.8vw, 68px);
  margin-top: 20px;
  margin-bottom: 34px;
}

.contact-side {
  max-width: none;
}

.contact-side > p:first-child {
  font-size: 18px;
  line-height: 1.6;
  color: #3d5c56;
  margin-bottom: 24px;
}

.contact-details {
  display: grid;
  gap: 24px;
  max-width: 430px;
  border-top: 1px solid #8db9ac;
  padding-top: 28px;
  color: #244943;
  font-size: 16px;
  font-weight: 400;
}

.contact-company { margin: 0 0 2px; color: var(--ink); font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.contact-row { display: flex; align-items: flex-start; gap: 16px; }
.contact-row > div { min-width: 0; }
.contact-icon { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 3px; color: #167c6d; }
.contact-label { display: block; margin-bottom: 5px; font-size: 14px; color: #4a6860; }
.contact-row address { font-style: normal; line-height: 1.65; }
.contact-row a { display: inline-block; line-height: 1.6; }
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .contact-side { margin-top: 0; }
}

.contact-details a {
  overflow-wrap: anywhere;
  color: #086f63;
  width: fit-content;
  text-decoration: none;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: #034c43;
  text-decoration: underline;
}

.enquiry-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(15, 103, 91, .18);
  box-shadow: 0 24px 60px rgba(7, 21, 25, .08);
}

.enquiry-form label {
  display: grid;
  gap: 8px;
  color: #315b55;
  font-size: 14px;
  font-weight: 700;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  border: 1px solid rgba(18, 48, 52, .18);
  background: #f8fbf7;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.enquiry-form textarea {
  resize: vertical;
  min-height: 115px;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  border-color: #159a86;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21, 154, 134, .14);
}

.enquiry-form .button {
  border: 0;
  width: 100%;
  margin-top: 6px;
  cursor: pointer;
}

.contact-note {
  font-size: 14px;
  color: #57716b;
  border-top: 1px solid #8db9ac;
  padding-top: 19px;
  margin-bottom: 0;
}

.footer {
  background: #071519;
  padding: 36px 0;
}

.footer-inner {
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #8ba4a0;
  font-size: 13px;
}

.footer .brand-name {
  color: var(--cream);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  .shell {
    width: min(100% - 48px, 1380px);
  }

  .nav-wrap {
    gap: 25px;
  }

  .nav-links {
    gap: 22px;
  }

  .hero-grid {
    grid-template-columns: 54% 46%;
  }

  .hero-grid::before {
    left: 54%;
  }

  .hero-copy {
    padding-top: 85px;
    padding-right: 34px;
  }

  .hero-visual {
    min-height: 615px;
  }

  h1 {
    font-size: clamp(51px, 6.2vw, 70px);
  }

  .visual-panel {
    right: 24px;
    bottom: 70px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    min-height: 280px;
  }
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 36px, 1380px);
  }

  .site-header {
    height: 72px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-wrap {
    justify-content: space-between;
    gap: 12px;
  }

  .brand-name {
    font-size: 17px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: 0;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 8px;
    cursor: pointer;
  }

  .menu-toggle span {
    height: 2px;
    width: 26px;
    background: var(--mint);
    display: block;
  }

  .mobile-menu:not([hidden]) {
    display: flex;
    flex-direction: column;
    background: #0d2529;
    padding: 12px 18px 22px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu a {
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero-grid::before {
    display: none;
  }

  .hero-copy {
    padding: 44px 0 32px;
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: .13em;
    margin-bottom: 25px;
  }

  h1 {
    font-size: clamp(38px, 11.5vw, 64px);
    white-space: normal;
    margin-bottom: 24px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
  }

  .hero-foot {
    margin-top: 0;
    padding-top: 24px;
  }

  .hero-visual {
    min-height: 430px;
    margin: 0 -18px;
    background-position: center;
  }

  .hero-visual::before {
    inset: 14px;
  }

  .visual-top,
  .visual-bottom {
    left: 24px;
    right: 24px;
  }

  .visual-panel {
    left: 24px;
    right: 24px;
    bottom: 64px;
    width: auto;
  }

  .visual-panel strong {
    font-size: 18px;
  }

  .hero-index {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-index div,
  .hero-index div:nth-child(2),
  .hero-index div:last-child {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-index div:last-child {
    border-bottom: 0;
  }

  .section-pad {
    padding: 64px 0;
  }

  .intro-grid,
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .intro h2,
  .section-heading h2,
  .approach h2,
  .contact h2 {
    font-size: clamp(36px, 9.2vw, 56px);
  }

  .intro-grid > div > p {
    font-size: 16px;
  }

  .section-heading {
    display: block;
    margin-bottom: 35px;
  }

  .section-heading > p {
    font-size: 16px;
    margin-top: 22px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 250px;
    padding: 24px;
    gap: 24px;
  }

  .approach-copy {
    margin-bottom: 36px;
  }

  .contact-inner {
    display: block;
  }

  .contact-side {
    margin-top: 38px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .section-kicker { margin-bottom: 20px; }
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
  .step p, .service-card p { font-size: 16px; }
  .contact-side > p:first-child { font-size: 16px; }
  .enquiry-form { padding: 20px; }
  .footer-inner > span { max-width: 100%; overflow-wrap: anywhere; font-size: 14px; }
  .hero-lead { max-width: 600px; }
  .eyebrow-line { flex-shrink: 0; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { min-height: 540px; }
  .hero-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-index div, .hero-index div:nth-child(2), .hero-index div:last-child { padding: 18px 12px; border-bottom: 0; }
  .hero-index div:first-child { padding-left: 0; }
}

@media (max-width: 480px) {
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-actions .button { width: 100%; min-height: 52px; }
  .hero-actions .text-link { min-height: 48px; align-items: center; justify-content: center; border-bottom: 0; padding: 8px 0; }
  .contact-row { gap: 12px; }
  .visual-top { font-size: 10px; letter-spacing: .08em; gap: 12px; }
  .visual-top > span:last-child { white-space: nowrap; }
  .visual-bottom { font-size: 11px; }
  .enquiry-form { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
