:root {
  --ink: #1f2430;
  --muted: #5f6675;
  --paper: #fffdf8;
  --panel: #ffffff;
  --blue: #039494;
  --blue-dark: #026b6b;
  --orange: #f89521;
  --orange-soft: #ffb357;
  --line: #e7e1d7;
  --shadow: 0 20px 60px rgba(3, 148, 148, 0.16);
  --page-gutter: max(clamp(22px, 4vw, 56px), calc((100vw - 1180px) / 2));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  background: var(--paper);
}

img {
  max-width: 100%;
  display: block;
}

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

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 24px), 1320px);
  margin: 0;
  padding: 12px clamp(14px, 2vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(0, 72, 72, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transform: translateX(-50%);
}

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

.brand img {
  width: auto;
  max-width: min(180px, 40vw);
  height: 40px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--blue-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: #ffffff;
  background: var(--blue);
}

.nav .nav-call {
  padding-inline: 16px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(0, 72, 72, 0.18);
}

.nav .nav-call:hover,
.nav .nav-call:focus-visible {
  background: var(--blue-dark);
}

.section {
  padding: clamp(56px, 8vw, 96px) var(--page-gutter);
  scroll-margin-top: 100px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: clamp(520px, 72svh, 700px);
  padding-top: clamp(110px, 10vw, 140px);
  color: #ffffff;
  background: var(--blue);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: min(720px, 58%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  animation: hero-media-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/bg.jpg") center / cover no-repeat;
  opacity: 0.95;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 148, 148, 0.9);
}

@keyframes hero-media-drift {
  from {
    transform: scale(1.01) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.045) translate3d(-0.8%, -0.4%, 0);
  }
}

.hero-waves {
  position: absolute;
  top: 0;
  right: -8%;
  bottom: 0;
  z-index: 1;
  width: min(64vw, 980px);
  overflow: hidden;
  opacity: 0.82;
  mask-image: radial-gradient(ellipse at 62% 48%, #000 16%, rgba(0, 0, 0, 0.86) 52%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 62% 48%, #000 16%, rgba(0, 0, 0, 0.86) 52%, transparent 78%);
  pointer-events: none;
}

.hero-waves::before {
  content: "";
  position: absolute;
  inset: 2% -8% -6% 5%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(700px) rotateY(-18deg) rotateZ(-7deg) scale(1.1);
  transform-origin: center;
  animation: grid-drift 14s linear infinite alternate;
}

.hero-waves::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.92) 0 2px, transparent 3px),
    radial-gradient(circle at 42% 34%, rgba(248, 149, 33, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 54%, rgba(255, 255, 255, 0.85) 0 2px, transparent 3px),
    radial-gradient(circle at 52% 72%, rgba(248, 149, 33, 0.85) 0 2px, transparent 3px),
    radial-gradient(circle at 91% 82%, rgba(255, 255, 255, 0.8) 0 2px, transparent 3px);
  filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.72));
  animation: data-pulse 5s ease-in-out infinite alternate;
}

.hero-waves span {
  position: absolute;
  right: -12%;
  width: 112%;
  height: 34%;
  border-top: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.24));
  transform: rotate(-10deg);
  animation: signal-wave 8s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-waves span:nth-child(1) {
  top: 18%;
}

.hero-waves span:nth-child(2) {
  top: 36%;
  right: -2%;
  border-color: rgba(248, 149, 33, 0.58);
  animation-duration: 11s;
  animation-delay: -3s;
}

.hero-waves span:nth-child(3) {
  top: 54%;
  right: -18%;
  border-color: rgba(255, 255, 255, 0.32);
  animation-duration: 13s;
  animation-delay: -7s;
}

.hero-waves span:nth-child(4) {
  top: 71%;
  right: -5%;
  border-color: rgba(248, 149, 33, 0.4);
  animation-duration: 15s;
  animation-delay: -5s;
}

.hero-waves span::before,
.hero-waves span::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 7px #ffffff, 0 0 18px rgba(255, 255, 255, 0.72);
  animation: node-travel 6s ease-in-out infinite alternate;
}

.hero-waves span::before {
  left: 24%;
}

.hero-waves span::after {
  left: 68%;
  background: var(--orange);
  box-shadow: 0 0 7px var(--orange), 0 0 18px rgba(248, 149, 33, 0.78);
  animation-delay: -3s;
}

@keyframes signal-wave {
  from {
    transform: translate3d(-2%, 8px, 0) rotate(-11deg) scaleY(0.94);
  }

  to {
    transform: translate3d(2%, -10px, 0) rotate(-8deg) scaleY(1.08);
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 48px 24px;
  }
}

@keyframes data-pulse {
  from {
    opacity: 0.48;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes node-travel {
  from {
    transform: translateX(-26px) scale(0.78);
  }

  to {
    transform: translateX(34px) scale(1.15);
  }
}

.hero h1 .accent {
  color: var(--orange);
}

.headline-phrase {
  display: inline-block;
  white-space: nowrap;
}

.hero .eyebrow {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 7vw, 5.4rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  color: var(--blue-dark);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-size: 1.15rem;
}

.hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 72, 72, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  font-weight: 400;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button::after,
.nav-call::after {
  content: "\2192";
  margin-left: 9px;
  transition: transform 180ms ease;
}

.button:hover::after,
.button:focus-visible::after,
.nav-call:hover::after,
.nav-call:focus-visible::after {
  transform: translateX(3px);
}

.primary {
  color: #ffffff;
  border-color: rgba(255, 179, 87, 0.62);
  background: rgba(247, 148, 29, 0.3);
}

.secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
}

.primary:hover,
.primary:focus-visible {
  border-color: rgba(255, 199, 132, 0.82);
  background: rgba(247, 148, 29, 0.42);
}

.button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 64px);
  align-items: start;
  background: #ffffff;
}

.about-copy > p,
.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.capabilities-summary {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.capabilities-summary h3 {
  margin-bottom: 16px;
}

.capabilities-summary ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

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

.card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(3, 148, 148, 0.1);
}

.card span {
  display: block;
  margin-bottom: 34px;
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 800;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
}

.card.featured {
  color: #ffffff;
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.card.featured h3,
.card.featured p {
  color: #ffffff;
}

.portfolio {
  color: #ffffff;
  background: var(--ink);
}

.portfolio-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: clamp(28px, 8vw, 120px);
  margin-bottom: clamp(46px, 7vw, 82px);
}

.portfolio-intro .eyebrow {
  color: var(--orange);
}

.portfolio-intro h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.96;
}

.portfolio-intro > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.04rem;
  line-height: 1.8;
}

.project-index {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.project-row {
  display: grid;
  grid-template-columns: 70px minmax(230px, 0.8fr) minmax(300px, 1fr) 34px;
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
  min-height: 156px;
  padding: 26px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 180ms ease, padding 180ms ease;
}

.project-row:hover {
  padding-inline: 20px;
  background: rgba(3, 148, 148, 0.14);
}

.project-number {
  align-self: start;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 700;
}

.project-name > span {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-name h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
}

.project-row > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.project-arrow {
  color: var(--orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
}

.project-row:hover .project-arrow {
  transform: translate(3px, -3px);
}

.contact {
  text-align: center;
  background: #f9ead4;
}

.contact h2 {
  max-width: 900px;
  margin-inline: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
  text-align: left;
}

.contact-grid a,
.contact-grid p {
  display: grid;
  gap: 8px;
  min-height: 128px;
  margin: 0;
  padding: 24px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue);
  font-size: 1.03rem;
  font-weight: 400;
  box-shadow: var(--shadow);
}

.contact-grid small {
  color: var(--orange-soft);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px var(--page-gutter);
  color: rgba(255, 255, 255, 0.76);
  background: var(--blue-dark);
}

.footer p {
  margin: 0;
}

.footer a {
  color: #ffffff;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero-copy {
    max-width: 68%;
  }

  .hero-media::before {
    background-position: 56% center;
  }

  .hero-waves {
    right: -18%;
    width: 72vw;
    opacity: 0.66;
  }

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

  .project-row {
    grid-template-columns: 54px minmax(0, 1fr) 30px;
  }

  .project-row > p {
    grid-column: 2 / 3;
  }

  .project-arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .cards,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    top: 10px;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    width: calc(100% - 20px);
    padding: 10px 12px;
  }

  .brand img {
    width: auto;
    max-width: 38vw;
    height: 34px;
  }

  .menu-toggle {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(3, 148, 148, 0.24);
    border-radius: 6px;
    color: var(--blue-dark);
    background: rgba(3, 148, 148, 0.08);
    cursor: pointer;
  }

  .menu-toggle span {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: top 180ms ease, transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle span:nth-child(1) {
    top: 13px;
  }

  .menu-toggle span:nth-child(2) {
    top: 20px;
  }

  .menu-toggle span:nth-child(3) {
    top: 27px;
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    color: #ffffff;
    background: var(--blue);
    outline: 2px solid rgba(248, 149, 33, 0.72);
    outline-offset: 2px;
  }

  .nav-open .menu-toggle span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
  }

  .nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .menu-toggle span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
  }

  .nav {
    width: 100%;
    flex: none;
    flex-basis: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border-top: 1px solid transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 240ms ease, padding 180ms ease, opacity 180ms ease, visibility 180ms ease;
  }

  .nav-open .nav {
    max-height: 360px;
    padding-top: 10px;
    border-top-color: rgba(3, 148, 148, 0.18);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .nav .nav-call {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    text-align: center;
  }

  .cards,
  .contact-grid,
  .capabilities-summary ul {
    grid-template-columns: 1fr;
  }

  .portfolio-intro {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 40px;
  }

  .portfolio-intro h2 {
    font-size: clamp(2.8rem, 15vw, 4.6rem);
  }

  .project-row {
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    gap: 14px;
    min-height: 0;
    padding-block: 26px;
  }

  .project-row:hover {
    padding-inline: 0;
  }

  .project-row > p {
    grid-column: 2 / 4;
  }

  .actions,
  .button {
    width: 100%;
  }

  .section {
    padding-block: 48px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-media::before {
    background-position: 60% center;
  }

  .hero-waves {
    top: 18%;
    right: -56%;
    width: 125vw;
    opacity: 0.38;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .hero-waves::before,
  .hero-waves::after,
  .hero-waves span,
  .hero-waves span::before,
  .hero-waves span::after,
  .nav,
  .menu-toggle span,
  .project-row,
  .project-arrow {
    animation: none;
    transition: none;
  }
}
