:root {
  --bg-dark: #112238;
  --bg-mid: #1d3047;
  --steel: #6a8098;
  --text-light: #eef3fa;
  --text-dark: #16273d;
  --surface: #ffffff;
  --gold: #d0ab63;
  --btn-orange: #e67e22;
  --btn-orange-hover: #cf6d17;
  --gold-soft: rgba(208, 171, 99, 0.16);
  --line: #d5e0ec;
  --shadow: 0 18px 40px rgba(8, 18, 30, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text-dark);
  background: #f4f8fd;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #2f5d91, var(--gold));
  z-index: 100;
  transition: width 0.08s linear;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
  scroll-margin-top: 5rem;
}

.page-hero {
  background: linear-gradient(135deg, #112238 0%, #1d3047 100%);
  color: var(--text-light);
  padding: 4.25rem 0 3.5rem;
}

.page-hero h1 {
  margin: 0.45rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  max-width: 18ch;
}

.page-hero .eyebrow {
  color: var(--gold);
}

.page-hero-lead {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: rgba(238, 243, 250, 0.88);
  font-size: 1.05rem;
}

.home-cta {
  background: #edf3fa;
}

.home-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-cta .card h2 {
  margin: 0.35rem 0 0.65rem;
  font-size: 1.25rem;
}

.main-nav a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  color: var(--gold);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 34, 56, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
}

.brand {
  text-decoration: none;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
  max-width: min(100%, 22rem);
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.3rem 0.55rem;
  background: #fff;
  border-radius: 0.5rem;
  line-height: 0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.brand-logo-wrap:hover,
.brand-logo-wrap:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  outline: none;
}

.brand-logo-img {
  display: block;
  height: clamp(2.35rem, 5.5vw, 3.25rem);
  width: auto;
  max-width: min(100%, 18rem);
  object-fit: contain;
  object-position: left center;
}

.brand-subtitle {
  color: #c8d3df;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(0.62rem, 1.4vw, 0.75rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
  max-width: 22rem;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
}

.main-nav a {
  color: #d6dfeb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 7rem;
  background:
    linear-gradient(110deg, rgba(10, 21, 36, 0.86), rgba(20, 39, 64, 0.68)),
    url("./assets/hero-video-poster.jpg") center/cover no-repeat;
  color: var(--text-light);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  pointer-events: none;
}

.hero-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, rgba(9, 19, 33, 0.88), rgba(18, 36, 60, 0.7));
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: linear-gradient(transparent 96%, rgba(255, 255, 255, 0.04) 96%);
  background-size: 100% 22px;
  pointer-events: none;
  opacity: 0.26;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  line-height: 1.2;
  margin-top: 0;
  letter-spacing: -0.012em;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 720px;
  color: #dde6f1;
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--btn-orange);
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  color: #fff;
  background: var(--btn-orange);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  background: var(--btn-orange-hover);
  border-color: var(--btn-orange-hover);
  box-shadow: 0 12px 26px rgba(12, 38, 68, 0.25);
}

.btn-primary {
  background: var(--btn-orange);
  color: #fff;
  border-color: var(--btn-orange);
  box-shadow: 0 12px 22px rgba(124, 64, 11, 0.28);
}

.btn-secondary {
  background: var(--btn-orange);
  border-color: var(--btn-orange);
  color: #fff;
}

.btn-inline {
  margin-top: 1rem;
}

.stats {
  margin-top: -2rem;
  position: relative;
  z-index: 4;
}

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

.stat-card {
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 1.3rem 1rem;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.stat-card h3 {
  margin-bottom: 0.35rem;
  color: #203556;
}

.stat-card p {
  margin: 0;
  color: #596f88;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.card,
.testimonial,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card {
  padding: 1.5rem;
}

.contact-details {
  margin-top: 1.75rem;
}

.contact-details-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.contact-details-intro {
  margin: 0 0 1.1rem;
  color: #596f88;
  font-size: 0.95rem;
  max-width: 42rem;
}

.contact-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-details-link {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(145deg, #f8fafd, #eef3f9);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-details-link:hover,
.contact-details-link:focus-visible {
  border-color: #9eb4cc;
  box-shadow: 0 8px 22px rgba(17, 34, 56, 0.1);
  transform: translateY(-2px);
  outline: none;
}

.contact-details-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, #1d4a78, #2a5f94);
  color: #fff;
}

.contact-details-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.contact-details-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #6a8098;
}

.contact-details-value {
  font-weight: 600;
  color: #1a3552;
  font-size: 0.98rem;
  word-break: break-word;
}

.services {
  background: #fbfbfc;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 4.25rem);
  align-items: start;
}

.services-media {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 5.5rem;
}

.services-photo {
  margin: 0;
  border: 1px solid #d8dee6;
  background: #fff;
}

.services-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.services-photo--offset {
  width: 86%;
  align-self: flex-end;
}

.services-list {
  border-top: 1px solid #16273d;
}

.service-entry {
  padding: 2.1rem 0 2.35rem;
  border-bottom: 1px solid #d8dee6;
}

.service-entry:first-child {
  padding-top: 2.35rem;
}

.service-entry h3 {
  margin: 0 0 0.9rem;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--text-dark);
  max-width: 30ch;
}

.service-entry:first-child h3 {
  font-size: 1.3rem;
}

.service-entry p {
  margin: 0 0 1.05rem;
  color: #516779;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 54ch;
}

.service-entry ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #516779;
  font-size: 0.95rem;
  line-height: 1.65;
}

.service-entry li + li {
  margin-top: 0.35rem;
}

.testimonial:hover,
.stat-card:hover,
.card:hover {
  transform: translateY(-7px);
  border-color: #b8c8d9;
  box-shadow: 0 22px 40px rgba(10, 26, 46, 0.2);
}

/* ---------- About: hero + CEO introduction ---------- */

.page-hero--about {
  padding: clamp(4.5rem, 8vw, 6.5rem) 0 clamp(6rem, 10vw, 8.5rem);
}

.page-hero--about h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 26ch;
}

.page-hero--about .page-hero-lead {
  margin-top: 1.7rem;
  max-width: 46ch;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(238, 243, 250, 0.76);
}

.ceo {
  background: #fbfaf8;
  padding: 0 0 clamp(4rem, 8vw, 6.5rem);
}

.ceo-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr);
  gap: clamp(2rem, 5.5vw, 5rem);
  align-items: start;
}

.ceo-portrait {
  margin: clamp(-7rem, -6vw, -4rem) 0 0;
}

.ceo-portrait__frame {
  overflow: hidden;
  background: #e8e6e1;
  border: 1px solid rgba(22, 39, 61, 0.08);
}

.ceo-portrait__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: var(--portrait-position, 50% 22%);
}

.ceo-portrait__caption {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #e2ded6;
}

.ceo-portrait__name {
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

.ceo-portrait__role {
  font-size: 0.85rem;
  color: #7c8794;
}

.ceo-body {
  padding-top: clamp(2rem, 5vw, 4.5rem);
}

.ceo-lead {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.8;
  color: #2c3b48;
}

.ceo-text {
  margin: 1.6rem 0 0;
  max-width: 56ch;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #55636e;
}

.ceo-values {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid #e2ded6;
}

.ceo-values__title {
  margin: 0 0 1.25rem;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9c968a;
}

.ceo-values__list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
}

.ceo-values__list li {
  position: relative;
  padding-left: 1.35rem;
  color: #3f4d59;
  font-size: 1.02rem;
  line-height: 1.6;
}

.ceo-values__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 0.45rem;
  height: 1px;
  background: #b9ad92;
}

/* ---------- About: global capability ---------- */

.global {
  background: #fff;
  border-top: 1px solid #ece9e3;
}

.global-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 4.5vw, 3.75rem);
  align-items: center;
}

.global-text h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  max-width: 24ch;
}

.global-text p {
  margin: 1.35rem 0 0;
  max-width: 50ch;
  color: #55636e;
  font-size: 1.05rem;
  line-height: 1.85;
}

.global .eyebrow {
  margin-bottom: 0;
  color: #9a7c43;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.map-panel {
  margin: 0;
  padding: 0;
  border: 1px solid #dfe4ea;
  background: #fff;
}

.map-panel img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Why choose (about) ---------- */

.reasons {
  background: #f5f3ef;
}

.reasons-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.reasons-head h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  max-width: 22ch;
}

.reasons .eyebrow {
  margin-bottom: 0;
  color: #9a7c43;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.reasons-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reasons-list li {
  padding: 1.15rem 0;
  border-top: 1px solid #e2ded6;
  color: #3f4d59;
  font-size: 1.06rem;
  line-height: 1.6;
}

.reasons-list li:last-child {
  border-bottom: 1px solid #e2ded6;
}

/* ---------- Projects portfolio ---------- */

.portfolio-hero {
  background: #112238;
  color: var(--text-light);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  overflow: hidden;
}

.portfolio-hero__text {
  padding:
    clamp(4rem, 8vw, 6.5rem)
    clamp(1.75rem, 4vw, 3.5rem)
    clamp(4rem, 8vw, 6.5rem)
    max(4vw, calc((100vw - 1120px) / 2));
}

.portfolio-hero__media {
  margin: 0;
  align-self: stretch;
  overflow: hidden;
  background: #16273d;
}

.portfolio-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

.portfolio-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.portfolio-hero__lead {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  max-width: 48ch;
  color: rgba(238, 243, 250, 0.74);
  font-size: 1.05rem;
  line-height: 1.85;
}

.portfolio {
  background: #fbfaf8;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.portfolio__list {
  display: flex;
  flex-direction: column;
  gap: clamp(4.5rem, 9vw, 8rem);
}

.project-feature {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: center;
}

.project-feature__media {
  grid-column: 1 / span 7;
  display: block;
  overflow: hidden;
  background: #e8e6e1;
}

.project-feature__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--media-ratio, 4 / 3);
  object-fit: cover;
  object-position: var(--media-position, center);
  transition: transform 1.05s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.project-feature__body {
  grid-column: 9 / -1;
}

.project-feature--flip .project-feature__media {
  grid-column: 6 / -1;
}

.project-feature--flip .project-feature__body {
  grid-column: 1 / span 4;
  grid-row: 1;
}

.project-feature__meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-feature__index {
  color: #a8a49c;
}

.project-feature__category {
  position: relative;
  padding-left: 0.95rem;
  color: #9a7c43;
}

.project-feature__category::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.45rem;
  height: 1px;
  background: #c7c0b3;
}

.project-feature h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.project-feature h2 a {
  color: #16273d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-feature h2 a:hover,
.project-feature h2 a:focus-visible {
  color: #2f5d91;
}

.project-feature__text {
  margin: 1.05rem 0 0;
  color: #5b6873;
  font-size: 1rem;
  line-height: 1.85;
  max-width: 42ch;
}

.project-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(1.35rem, 2.5vw, 1.85rem);
  padding-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #16273d;
  text-decoration: none;
}

.project-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #16273d;
  transform: scaleX(0.32);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.project-link span {
  transition: transform 0.35s ease;
}

.project-link:hover::after,
.project-link:focus-visible::after {
  transform: scaleX(1);
}

.project-link:hover span,
.project-link:focus-visible span {
  transform: translateX(4px);
}

.project-feature:hover .project-feature__media img {
  transform: scale(1.035);
}

.project-feature--lead .project-feature__media {
  grid-column: 1 / span 6;
}

.project-feature--lead .project-feature__body {
  grid-column: 8 / -1;
  align-self: end;
}

.project-feature--lead h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.project-feature--lead .project-feature__text {
  margin-top: 1.35rem;
  font-size: 1.08rem;
  max-width: 34ch;
}

/* ---------- Engineering gallery ---------- */

.plates-section {
  background: #fff;
  border-top: 1px solid #ece9e3;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem);
}

.plates-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.plates-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.025em;
  color: #16273d;
}

.plates-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  flex: 0 0 auto;
}

.gallery-count {
  margin: 0;
  color: #9a948a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.gallery-track {
  --slides: 1;
}

.gallery-figure {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  background: #f2efea;
}

.gallery-figure img {
  display: block;
  width: 100%;
  height: clamp(280px, 42vw, 640px);
  object-fit: contain;
}

/* ---------- Portfolio closing call to action ---------- */

.portfolio-cta {
  background: #112238;
  color: var(--text-light);
  border-bottom: 1px solid rgba(238, 243, 250, 0.14);
  padding: clamp(3.75rem, 7vw, 5.5rem) 0;
}

.portfolio-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: end;
}

.portfolio-cta h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 20ch;
}

.portfolio-cta p {
  margin: 0;
  color: rgba(238, 243, 250, 0.74);
  line-height: 1.85;
  max-width: 46ch;
}

/* ---------- Project case study ---------- */

.case-hero {
  background: #112238;
  color: var(--text-light);
  padding: clamp(3rem, 6vw, 4.75rem) 0 clamp(2.75rem, 5vw, 4rem);
}

.case-hero__inner {
  max-width: 60rem;
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 243, 250, 0.62);
  text-decoration: none;
  transition: color 0.3s ease;
}

.case-back:hover,
.case-back:focus-visible {
  color: var(--gold);
}

.case-hero__category {
  margin: clamp(2rem, 4vw, 3rem) 0 0.9rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.case-hero h1 {
  margin: 0;
  font-size: clamp(1.95rem, 4.4vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 24ch;
}

.case-figure {
  margin: 0;
  overflow: hidden;
  background: #e8e6e1;
}

.case-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--figure-ratio, 16 / 9);
  object-fit: cover;
  object-position: var(--figure-position, center);
}

.case-body {
  background: #fbfaf8;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.case-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9c968a;
}

.case-intro,
.case-block {
  display: grid;
  grid-template-columns: minmax(0, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(1rem, 3vw, 2.5rem);
}

.case-intro {
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.case-lead {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #1b2c3f;
  max-width: 34ch;
}

.case-block {
  padding: clamp(1.85rem, 3.5vw, 2.6rem) 0;
  border-top: 1px solid #e6e2da;
}

.case-block p:last-child {
  margin: 0;
  color: #55636e;
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 52ch;
}

.case-next {
  background: #fff;
  border-top: 1px solid #ece9e3;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.case-next__link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.7rem;
  text-decoration: none;
}

.case-next__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9c968a;
}

.case-next__title {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #16273d;
}

.case-next__title span {
  display: inline-block;
  transition: transform 0.35s ease;
}

.case-next__link:hover .case-next__title span,
.case-next__link:focus-visible .case-next__title span {
  transform: translateX(6px);
}

.testimonials {
  background: #edf3fa;
}

.testimonials-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.testimonials-head .section-heading {
  margin-bottom: 0;
}

.slider-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 0.6rem;
  padding-bottom: 0.35rem;
}

.slider-btn {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1px solid #ccdaea;
  border-radius: 50%;
  background: #fff;
  color: #1b3454;
  cursor: pointer;
  transition: background 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.slider-btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

.slider-btn:hover {
  background: #112238;
  border-color: #112238;
  color: #fff;
}

.slider-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.slider-viewport {
  overflow: hidden;
}

.slider-track {
  --slides: 1;
  --slide-gap: clamp(1rem, 1.8vw, 1.5rem);
  display: flex;
  gap: var(--slide-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}

.slider-slide {
  display: flex;
  flex: 0 0 calc((100% - (var(--slides) - 1) * var(--slide-gap)) / var(--slides));
}

.testimonial-viewport {
  padding: 0.85rem 0;
  margin: -0.85rem 0;
}

.testimonial-track {
  --slides: 2;
}

.testimonial {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  font-style: normal;
}

.testimonial__quote {
  margin: 0 0 1.6rem;
  color: #33475c;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.78;
}

.testimonial__person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid #e6edf5;
}

.testimonial__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.2rem;
  height: 3.2rem;
  overflow: hidden;
  border-radius: 50%;
  background: #dde7f3;
  box-shadow: inset 0 0 0 1px rgba(22, 39, 61, 0.07);
  color: #3f5f83;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--avatar-position, 50% 25%);
}

.testimonial__cite {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-style: normal;
}

.testimonial__name {
  color: #16273d;
  font-weight: 700;
  font-size: 0.98rem;
}

.testimonial__role {
  color: #5d7590;
  font-size: 0.86rem;
  line-height: 1.45;
}

.contact {
  background:
    radial-gradient(circle at 90% 10%, var(--gold-soft), transparent 46%),
    #f4f8fd;
}

.contact-form {
  padding: 1.4rem;
  display: grid;
  gap: 0.55rem;
}

.contact-form label {
  font-weight: 600;
  color: #22334d;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid #c9d4e1;
  border-radius: 0.6rem;
  padding: 0.75rem 0.8rem;
  font: inherit;
  background: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(34, 81, 137, 0.24);
  border-color: #315b88;
}

.site-footer {
  background: var(--bg-dark);
  color: #dce7f2;
  padding: 2.1rem 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: start;
}

.footer-brand {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
}

.footer-tagline {
  color: #b7c4d3;
}

.footer-address {
  margin-top: 0.55rem;
  color: #b7c4d3;
  font-style: normal;
  line-height: 1.55;
}

.footer-bottom {
  margin-top: 1.4rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(220, 231, 242, 0.15);
}

.footer-copyright {
  margin: 0;
  color: #93a5b9;
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1.15rem;
}

.footer-nav a {
  color: #dce7f2;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #fff;
}

.footer-nav .back-to-top {
  margin-top: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--btn-orange);
  background: var(--btn-orange);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.footer-nav .back-to-top:hover,
.footer-nav .back-to-top:focus-visible {
  transform: translateY(-2px);
  background: var(--btn-orange-hover);
  border-color: var(--btn-orange-hover);
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}

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

.pop-up {
  transform-origin: center bottom;
}

.pop-up.is-visible {
  animation: popIn 0.7s cubic-bezier(0.17, 0.89, 0.3, 1.25) both;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
  }
  65% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.parallax {
  transform: translateY(var(--parallax-y, 0px));
  will-change: transform;
}

.consultation-popup {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(350px, calc(100% - 2rem));
  background: linear-gradient(145deg, #17304d, #25466b);
  color: #e8f0f9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 44px rgba(7, 18, 31, 0.3);
  border-radius: 1rem;
  padding: 1rem 1rem 1.1rem;
  z-index: 60;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.consultation-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.popup-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  border: 0;
  background: transparent;
  color: #e8f0f9;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.popup-eyebrow {
  margin: 0;
  color: #c5a25d;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.7rem;
  font-weight: 700;
}

.consultation-popup h3 {
  margin: 0.45rem 0 0.35rem;
  font-size: 1.08rem;
}

.consultation-popup p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: #d4e0ec;
}

.consultation-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.consultation-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.consultation-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 31, 0.62);
  backdrop-filter: blur(3px);
}

.consultation-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #d5e0ec;
  box-shadow: 0 28px 56px rgba(7, 18, 31, 0.28);
  padding: 1.25rem 1.2rem 1.3rem;
}

.consultation-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  font-size: 1.55rem;
  line-height: 1;
  color: #36506d;
  cursor: pointer;
}

.consultation-modal__dialog h3 {
  margin: 0.45rem 0 0.4rem;
  color: #132a44;
}

.consultation-modal__intro {
  margin: 0 0 1rem;
  color: #4f6780;
  font-size: 0.95rem;
}

.consultation-modal-form {
  display: grid;
  gap: 0.55rem;
}

.consultation-modal-form label {
  font-weight: 600;
  color: #22334d;
}

.consultation-modal-form input,
.consultation-modal-form select,
.consultation-modal-form textarea {
  border: 1px solid #c9d4e1;
  border-radius: 0.6rem;
  padding: 0.75rem 0.8rem;
  font: inherit;
  background: #fff;
}

.consultation-modal-form input:focus,
.consultation-modal-form select:focus,
.consultation-modal-form textarea:focus {
  outline: 2px solid rgba(34, 81, 137, 0.24);
  border-color: #315b88;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.25em;
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-status.is-success {
  color: #1f6b43;
}

.form-status.is-error {
  color: #b42318;
}

.logo-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.logo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.logo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 31, 0.66);
  backdrop-filter: blur(3px);
}

.logo-modal__dialog {
  position: relative;
  width: min(640px, 100%);
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #d5e0ec;
  box-shadow: 0 28px 56px rgba(7, 18, 31, 0.28);
  padding: 1.2rem 1.2rem 1.3rem;
  text-align: center;
}

.logo-modal__close {
  position: absolute;
  top: 0.45rem;
  right: 0.6rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #36506d;
  cursor: pointer;
}

.logo-modal__dialog h3 {
  margin: 0.45rem 0 0.9rem;
  color: #132a44;
}

.logo-modal__image {
  width: min(520px, 100%);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0.7rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.is-visible,
  .parallax {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-video {
    display: none;
  }

}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-cta-grid {
    grid-template-columns: 1fr;
  }

  .services-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-media {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .services-photo--offset {
    width: 100%;
    align-self: stretch;
  }

}

@media (max-width: 900px) {
  .page-hero--about {
    padding-bottom: clamp(4rem, 9vw, 5.5rem);
  }

  .ceo-grid,
  .global-grid,
  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .ceo-portrait {
    margin-top: -3rem;
  }

  .ceo-body {
    padding-top: clamp(1.75rem, 5vw, 2.5rem);
  }

  .reasons-list {
    margin-top: 0.5rem;
  }

  .portfolio-hero {
    grid-template-columns: 1fr;
  }

  .portfolio-hero__text {
    padding: clamp(3rem, 8vw, 4.5rem) 4vw clamp(2.5rem, 6vw, 3.5rem);
  }

  .portfolio-hero__media img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .portfolio__list {
    gap: clamp(3.25rem, 8vw, 4.75rem);
  }

  .project-feature {
    grid-template-columns: 1fr;
  }

  .project-feature__media,
  .project-feature__body,
  .project-feature--flip .project-feature__media,
  .project-feature--flip .project-feature__body,
  .project-feature--lead .project-feature__media,
  .project-feature--lead .project-feature__body {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .project-feature__text {
    max-width: 62ch;
  }

  .plates-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  .case-figure img {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 4.5rem 0;
  }

  .menu-toggle {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    background: transparent;
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-weight: 700;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    width: min(260px, 100%);
    background: #122038;
    padding: 0.8rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

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

  .testimonials-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .testimonial-track {
    --slides: 1;
  }

  .portfolio-cta__inner,
  .case-intro,
  .case-block {
    grid-template-columns: 1fr;
  }

  .case-intro {
    gap: 1rem;
  }

  .case-block {
    gap: 0.85rem;
  }

  .footer-grid {
    flex-direction: column;
  }

  .footer-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-nav .back-to-top {
    width: auto;
    max-width: none;
  }

  .consultation-popup {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

@media (max-width: 640px) {
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .services-media {
    grid-template-columns: 1fr;
  }

  .service-entry {
    padding: 1.65rem 0 1.85rem;
  }

  .service-entry h3,
  .service-entry:first-child h3 {
    font-size: 1.12rem;
    max-width: none;
  }

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

  .brand {
    max-width: calc(100vw - 6.5rem);
  }

  .brand-logo-img {
    height: clamp(2rem, 10.5vw, 2.65rem);
    max-width: min(100%, 15rem);
  }

  .brand-subtitle {
    font-size: 0.62rem;
    line-height: 1.4;
    max-width: 100%;
  }
}
