:root {
  --navy-950: #041124;
  --navy-900: #071a33;
  --navy-800: #0b2a50;
  --blue-700: #0b5ca8;
  --blue-600: #1478cb;
  --blue-500: #2d9de4;
  --cyan-400: #46c6ee;
  --ink: #102139;
  --text: #4a5c72;
  --muted: #718096;
  --line: #dfe7f0;
  --surface: #f4f7fb;
  --soft-blue: #eef4fb;
  --soft-blue-2: #e7f0f8;
  --soft-blue-3: #dceaf6;
  --white: #ffffff;
  --shadow-sm: 0 12px 30px rgba(8, 34, 66, 0.08);
  --shadow-lg: 0 30px 80px rgba(3, 19, 39, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  --header-height: 84px;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.dialog-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  border: 0;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

p {
  color: var(--text);
}

::selection {
  color: var(--white);
  background: var(--blue-600);
}

:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy-950);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(8, 34, 66, 0.09);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  transition:
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(4, 17, 36, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: max-content;
}

.brand img {
  width: 78px;
  height: auto;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name strong {
  font-size: 0.91rem;
  letter-spacing: 0.02em;
}

.brand-name small {
  margin-top: 3px;
  color: var(--blue-700);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}

.primary-nav a {
  position: relative;
  color: #31445c;
  font-size: 0.92rem;
  font-weight: 700;
}

.primary-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--blue-600);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease);
}

.primary-nav a:hover,
.primary-nav a[aria-current="true"] {
  color: var(--blue-700);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-nav .nav-cta {
  padding: 11px 17px;
  color: var(--white);
  background: var(--blue-700);
  border-radius: 999px;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.primary-nav .nav-cta:hover,
.primary-nav .nav-cta:focus-visible {
  color: var(--white);
  background: var(--blue-700);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue-700);
  border-radius: 2px;
  transition: 220ms ease;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--soft-blue);
  aspect-ratio: 20 / 9;
  min-height: 560px;
  max-height: 780px;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 800ms ease,
    visibility 800ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 13, 31, 0.72), rgba(2, 13, 31, 0.02) 58%),
    linear-gradient(0deg, rgba(2, 13, 31, 0.38), transparent 42%);
  content: "";
}

.hero-copy {
  position: absolute;
  top: 50%;
  left: max(6vw, calc((100% - var(--container)) / 2));
  z-index: 3;
  width: min(570px, 42vw);
  padding: 32px;
  color: var(--ink);
  background: rgba(238, 244, 251, 0.9);
  border: 1px solid rgba(20, 120, 203, 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 70px rgba(8, 34, 66, 0.16);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition:
    opacity 320ms ease,
    transform 320ms ease;
}

.hero.has-moved .hero-copy {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-50% + 12px));
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.mission-content .eyebrow,
.contact-copy .eyebrow {
  color: var(--blue-700);
}

.hero-copy h1 {
  margin-bottom: 17px;
  color: var(--ink);
  font-size: clamp(2.15rem, 4vw, 4.25rem);
  letter-spacing: -0.05em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 510px;
  margin-bottom: 26px;
  color: var(--text);
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  box-shadow: 0 12px 30px rgba(20, 120, 203, 0.28);
}

.button-primary:hover {
  box-shadow: 0 16px 34px rgba(20, 120, 203, 0.38);
}

.button-ghost {
  color: var(--blue-700);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 120, 203, 0.32);
}

.button-ghost:hover {
  background: var(--white);
  border-color: var(--blue-600);
}

.button-light {
  color: var(--navy-900);
  background: var(--white);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.16);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 50px;
  height: 58px;
  place-items: center;
  color: var(--white);
  background: rgba(4, 17, 36, 0.57);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.hero-arrow:hover {
  background: var(--blue-700);
}

.hero-arrow span {
  margin-top: -5px;
  font-size: 2.4rem;
  font-weight: 300;
}

.hero-prev {
  left: 22px;
  border-radius: 0 12px 12px 0;
}

.hero-next {
  right: 22px;
  border-radius: 12px 0 0 12px;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 30px;
  height: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.46);
  border-radius: 99px;
  cursor: pointer;
  transition:
    width 220ms ease,
    background-color 220ms ease;
}

.hero-dot.is-active {
  width: 54px;
  background: var(--cyan-400);
}

.proof-bar {
  color: var(--ink);
  background: var(--soft-blue-3);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-grid > div {
  min-height: 126px;
  padding: 28px 32px;
  border-right: 1px solid rgba(8, 34, 66, 0.09);
}

.proof-grid > div:first-child {
  border-left: 1px solid rgba(8, 34, 66, 0.09);
}

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

.proof-grid strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.2;
}

.proof-grid span {
  color: #48627c;
  font-size: 0.78rem;
}

.section {
  padding: 112px 0;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 56px;
}

.section-heading-centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.contact-copy h2,
.mission-content h2,
.location-card h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.section-heading > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 1.04rem;
}

.section-heading-centered > p:last-child {
  margin-inline: auto;
}

.about-section {
  position: relative;
  overflow: hidden;
}

.about-section::before {
  position: absolute;
  top: 80px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(45, 157, 228, 0.12), transparent 68%);
  border-radius: 50%;
  content: "";
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.45fr);
  gap: 70px;
  align-items: start;
}

.about-story {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding: 35px;
  background: var(--soft-blue-2);
  border: 1px solid rgba(20, 120, 203, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 65px rgba(8, 34, 66, 0.12);
}

.story-kicker {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 12px;
  color: var(--cyan-400);
  background: rgba(70, 198, 238, 0.1);
  border: 1px solid rgba(70, 198, 238, 0.2);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-story h3 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(1.65rem, 2.7vw, 2.4rem);
}

.about-story p {
  color: var(--text);
  font-size: 0.93rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-600);
  font-size: 0.88rem;
  font-weight: 800;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.about-story .text-link {
  margin-top: 6px;
  color: var(--cyan-400);
}

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

.value-card {
  min-height: 270px;
  padding: 29px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition:
    transform 240ms var(--ease),
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.value-card:nth-child(2),
.value-card:nth-child(3) {
  background: var(--white);
  border-color: var(--line);
}

.value-card:hover {
  border-color: rgba(20, 120, 203, 0.22);
  box-shadow: var(--shadow-sm);
  transform: translateY(-6px);
}

.value-number {
  display: block;
  margin-bottom: 42px;
  color: var(--blue-600);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.value-card h3 {
  margin-bottom: 11px;
  font-size: 1.35rem;
}

.value-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.products-section {
  background: var(--surface);
}

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

.brand-card {
  position: relative;
  display: flex;
  min-height: 238px;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(180deg, #e4e4e4 0 76%, var(--white) 76% 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 20px rgba(8, 34, 66, 0.035);
  transition:
    transform 240ms var(--ease),
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.brand-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms var(--ease);
}

.brand-card:hover {
  border-color: rgba(20, 120, 203, 0.22);
  box-shadow: var(--shadow-sm);
  transform: translateY(-7px);
}

.brand-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.brand-card img {
  position: relative;
  z-index: 1;
  width: min(88%, 320px);
  height: 178px;
  margin: 0 auto;
  padding: 0;
  object-fit: contain;
}

.brand-card-featured img {
  width: min(88%, 320px);
}

.brand-card img[alt="Optix"] {
  width: min(88%, 320px);
}

.brand-card span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 16px 22px;
  color: #405269;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 750;
}

.brand-card b {
  color: var(--blue-600);
  font-size: 1rem;
}

.brand-card-featured {
  /* background:
    radial-gradient(circle at 22% 15%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(180deg, #e4e4e4 0 76%, var(--white) 76% 100%); */
  border-color: rgba(20, 120, 203, 0.3);
}

.mission-banner {
  position: relative;
  overflow: hidden;
  padding: 105px 0;
  background:
    linear-gradient(105deg, rgba(238, 244, 251, 0.96) 16%, rgba(220, 234, 246, 0.88)),
    url("../img/hero/slide3.webp") center 62% / cover no-repeat;
}

.mission-banner::after {
  position: absolute;
  top: -110px;
  right: 7vw;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(70, 198, 238, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(70, 198, 238, 0.03),
    0 0 0 90px rgba(70, 198, 238, 0.02);
  content: "";
}

.mission-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.mission-content h2 {
  color: var(--ink);
}

.mission-content p:not(.eyebrow) {
  max-width: 670px;
  margin-bottom: 30px;
  color: var(--text);
}

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

.service-card {
  position: relative;
  min-height: 340px;
  padding: 30px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition:
    color 260ms ease,
    background-color 260ms ease,
    transform 260ms var(--ease),
    box-shadow 260ms ease;
}

.service-card::after {
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 190px;
  height: 190px;
  background: rgba(45, 157, 228, 0.08);
  border-radius: 50%;
  content: "";
  transition: transform 320ms var(--ease);
}

.service-card:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-color: rgba(20, 120, 203, 0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.service-card:hover::after {
  transform: scale(1.5);
}

.service-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin-bottom: 38px;
  place-items: center;
  background: var(--surface);
  border-radius: 18px;
  transition: background-color 260ms ease;
}

.service-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.service-card:hover .service-icon {
  background: var(--white);
}

.service-card > span {
  position: absolute;
  top: 28px;
  right: 29px;
  color: #99a7b8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.service-card h3 {
  position: relative;
  z-index: 1;
  min-height: 50px;
  margin-bottom: 13px;
  font-size: 1.3rem;
  transition: color 260ms ease;
}

.service-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  font-size: 0.88rem;
  transition: color 260ms ease;
}

.service-card:hover h3 {
  color: var(--white);
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.65);
}

.projects-section {
  color: var(--ink);
  background: var(--soft-blue);
}

.projects-section h2 {
  color: var(--ink);
}

.projects-section .section-heading > p:last-child {
  color: var(--text);
}

.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}

.projects-header .section-heading {
  margin-bottom: 0;
}

.project-filters {
  display: flex;
  min-width: max-content;
  gap: 7px;
  padding: 6px;
  background: var(--white);
  border: 1px solid rgba(20, 120, 203, 0.12);
  border-radius: 999px;
}

.project-filters button {
  padding: 8px 15px;
  color: #48627c;
  background: transparent;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.project-filters button.is-active {
  color: var(--white);
  background: var(--blue-700);
}

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

.project-card {
  position: relative;
  min-height: 255px;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: #0a203e;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.project-card[hidden] {
  display: none;
}

.project-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 13, 29, 0.93), transparent 68%);
  content: "";
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 255px;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.project-card > span {
  position: absolute;
  right: 19px;
  bottom: 18px;
  left: 19px;
  z-index: 1;
  text-align: left;
}

.project-card small,
.project-card strong {
  display: block;
}

.project-card small {
  margin-bottom: 4px;
  color: var(--cyan-400);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card strong {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.25;
}

.project-card:hover img {
  transform: scale(1.07);
}

.project-card:hover {
  transform: translateY(-4px);
}

.contact-section {
  padding: 112px 0;
  background:
    linear-gradient(135deg, rgba(238, 244, 251, 0.98), rgba(220, 234, 246, 0.94)),
    url("../img/hero/slide2.webp") center / cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 70px;
  align-items: center;
}

.contact-copy h2 {
  color: var(--ink);
}

.contact-copy > p:not(.eyebrow) {
  color: var(--text);
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.contact-details > * {
  display: grid;
  grid-template-columns: 47px 1fr;
  gap: 13px;
  align-items: center;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 120, 203, 0.14);
  border-radius: var(--radius-sm);
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.contact-details a:hover {
  background: var(--white);
  border-color: rgba(70, 198, 238, 0.35);
}

.contact-details > * > span {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  color: var(--cyan-400);
  background: rgba(70, 198, 238, 0.1);
  border-radius: 12px;
  font-weight: 900;
}

.contact-details small,
.contact-details strong {
  display: block;
}

.contact-details small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-details strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.4;
}

.contact-form {
  padding: 34px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

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

.contact-form label {
  display: block;
  margin-bottom: 15px;
}

.contact-form label > span {
  display: block;
  margin-bottom: 6px;
  color: #3d4e63;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 10px;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.contact-form input,
.contact-form select {
  height: 49px;
  padding: 0 13px;
}

.contact-form textarea {
  min-height: 132px;
  padding: 12px 13px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: var(--white);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(45, 157, 228, 0.12);
}

.contact-form .button {
  width: 100%;
  border: 0;
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
  text-align: center;
}

.location-section {
  position: relative;
  min-height: 520px;
  background: var(--surface);
}

.location-section iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  filter: grayscale(0.85) contrast(0.96);
}

.location-card {
  position: absolute;
  top: 50%;
  left: max(6vw, calc((100% - var(--container)) / 2));
  z-index: 1;
  width: min(420px, calc(100% - 40px));
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%);
}

.location-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.location-card p {
  font-size: 0.9rem;
}

.site-footer {
  color: #48627c;
  background: var(--soft-blue-3);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 58px;
  padding-top: 70px;
  padding-bottom: 55px;
}

.footer-brand img {
  width: 96px;
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 300px;
  margin-bottom: 0;
  color: #48627c;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links strong {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  color: #48627c;
  font-size: 0.9rem;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--blue-700);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}

.footer-links .social-links a {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  max-width: 38px;
  height: 38px;
  max-height: 38px;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--blue-700);
  border: 1px solid rgba(20, 120, 203, 0.24);
  border-radius: 50%;
  font-size: 0;
  line-height: 1;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.footer-links .social-links a:hover,
.footer-links .social-links a:focus-visible {
  color: var(--white);
  background: var(--cyan-500);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.footer-links .social-links svg {
  display: block;
  width: 18px;
  max-width: 18px;
  height: 18px;
  max-height: 18px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(8, 34, 66, 0.09);
}

.footer-bottom p {
  margin: 0;
  color: #5c7289;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: var(--blue-700);
  font-size: 0.84rem;
  font-weight: 700;
}

.project-dialog {
  position: fixed;
  width: min(900px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  background: var(--navy-950);
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.project-dialog::backdrop {
  background: rgba(1, 8, 18, 0.84);
  backdrop-filter: blur(8px);
}

.project-dialog img {
  width: 100%;
  max-height: 70vh;
  background: var(--navy-950);
  object-fit: contain;
}

.project-dialog > div {
  padding: 22px 26px 25px;
}

.project-dialog small {
  color: var(--cyan-400);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-dialog h2 {
  margin: 5px 0 0;
  color: var(--white);
  font-size: 1.7rem;
}

.elpha-dialog {
  position: fixed;
  width: min(560px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.elpha-dialog::backdrop {
  background: rgba(1, 8, 18, 0.78);
  backdrop-filter: blur(8px);
}

.elpha-dialog > div {
  padding: 36px;
}

.elpha-dialog .eyebrow {
  margin-bottom: 10px;
}

.elpha-dialog h2 {
  margin: 0 0 24px;
  color: var(--navy-950);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.elpha-product-card {
  display: grid;
  min-height: 190px;
  align-items: center;
  padding: 24px;
  color: var(--navy-950);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(17, 155, 213, 0.08), rgba(255, 255, 255, 0.94)),
    var(--white);
  border: 1px solid rgba(17, 155, 213, 0.25);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition:
    transform 240ms var(--ease),
    border-color 240ms var(--ease),
    box-shadow 240ms var(--ease);
}

.elpha-product-card:hover,
.elpha-product-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(17, 155, 213, 0.68);
  box-shadow: 0 20px 45px rgba(7, 26, 51, 0.16);
}

.elpha-product-card img {
  width: min(100%, 340px);
  height: auto;
  margin: 0 auto 18px;
}

.elpha-product-card span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(7, 26, 51, 0.1);
  font-size: 0.86rem;
  font-weight: 850;
}

.elpha-product-card b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 34px;
  color: var(--white);
  background: var(--blue-600);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: rgba(4, 17, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 720ms var(--ease),
    transform 720ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  :root {
    --header-height: 78px;
  }

  .brand-name {
    display: none;
  }

  .primary-nav {
    gap: 17px;
  }

  .hero {
    min-height: 510px;
  }

  .hero-copy {
    left: 56px;
    width: min(570px, 55vw);
  }

  .proof-grid > div {
    padding-inline: 21px;
  }

  .section {
    padding: 92px 0;
  }

  .about-layout {
    gap: 35px;
  }

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

  .project-card,
  .project-card img {
    min-height: 310px;
  }
}

@media (max-width: 820px) {
  .js .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .js .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 18px 30px rgba(4, 17, 36, 0.12);
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 320ms var(--ease),
      padding 320ms var(--ease),
      opacity 200ms ease,
      visibility 200ms ease;
  }

  .js .primary-nav.is-open {
    max-height: calc(100vh - var(--header-height));
    padding-top: 10px;
    padding-bottom: 24px;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .js .primary-nav a {
    padding: 13px 7px;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }

  .js .primary-nav a::after {
    display: none;
  }

  .js .primary-nav .nav-cta {
    margin-top: 12px;
    padding: 12px 18px;
    border-bottom: 0;
    text-align: center;
  }

  .hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: visible;
    aspect-ratio: auto;
    background: var(--soft-blue);
  }

  .hero-track {
    position: relative;
    width: 100%;
    aspect-ratio: 20 / 9;
  }

  .hero-slide img {
    object-fit: contain;
  }

  .hero::after {
    bottom: auto;
    height: calc(100vw * 0.45);
    background: linear-gradient(0deg, rgba(2, 13, 31, 0.18), transparent 50%);
  }

  .hero-copy,
  .hero.has-moved .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    padding: 36px max(24px, 6vw) 52px;
    background: var(--soft-blue);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 8vw, 3.25rem);
  }

  .hero-arrow {
    top: calc(100vw * 0.225);
    width: 38px;
    height: 48px;
  }

  .hero-prev {
    left: 0;
  }

  .hero-next {
    right: 0;
  }

  .hero-dots {
    top: calc(100vw * 0.45 - 20px);
    bottom: auto;
  }

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

  .proof-grid > div,
  .proof-grid > div:first-child {
    min-height: 110px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-story {
    position: relative;
    top: auto;
  }

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

  .projects-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

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

  html:not(.js) .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 16px;
  }

  html:not(.js) .primary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  html:not(.js) .primary-nav .nav-cta {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 30px), var(--container));
  }

  .brand img {
    width: 72px;
  }

  .hero-copy {
    padding: 30px 18px 42px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 0.9rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-dot {
    width: 22px;
  }

  .hero-dot.is-active {
    width: 38px;
  }

  .proof-grid > div {
    padding: 22px 17px;
  }

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

  .proof-grid span {
    font-size: 0.69rem;
  }

  .section {
    padding: 74px 0;
  }

  .section-heading {
    margin-bottom: 37px;
  }

  .section-heading h2,
  .contact-copy h2,
  .mission-content h2 {
    font-size: 2.05rem;
  }

  .about-story,
  .contact-form,
  .location-card {
    padding: 24px;
  }

  .value-grid,
  .brand-grid,
  .services-grid,
  .project-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: 220px;
  }

  .value-number {
    margin-bottom: 25px;
  }

  .brand-card {
    min-height: 220px;
  }

  .mission-banner,
  .contact-section {
    padding: 76px 0;
  }

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

  .project-filters {
    width: 100%;
    min-width: 0;
  }

  .project-filters button {
    flex: 1;
    padding-inline: 8px;
  }

  .project-card,
  .project-card img {
    min-height: 270px;
  }

  .contact-details strong {
    font-size: 0.76rem;
  }

  .location-section {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .location-card {
    position: relative;
    top: auto;
    left: auto;
    z-index: 1;
    width: calc(100% - 30px);
    margin: 30px auto -30px;
    transform: none;
  }

  .location-section iframe {
    height: 420px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 18px 0;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
