:root {
  --navy-950: #041633;
  --navy-900: #0b2550;
  --navy-800: #163f85;
  --blue-600: #2d67d7;
  --red-700: #c91f39;
  --red-500: #ef4e67;
  --white: #ffffff;
  --paper: #f3f6fa;
  --paper-strong: #e8eef7;
  --ink: #0d1831;
  --muted: #617089;
  --line: rgba(11, 37, 80, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(4, 22, 51, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: min(1200px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(45, 103, 215, 0.12), transparent 24%),
    radial-gradient(circle at right 12%, rgba(239, 78, 103, 0.08), transparent 20%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 37, 80, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 37, 80, 0.03) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 88%);
}

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

button {
  font: inherit;
}

img,
video {
  max-width: 100%;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(4, 22, 51, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(4, 22, 51, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px rgba(4, 22, 51, 0.24);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7rem;
  padding: 0.35rem 0.55rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 28px rgba(4, 22, 51, 0.22);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.brand-copy {
  display: grid;
  line-height: 1;
  color: var(--white);
}

.brand-copy strong,
.brand-copy small,
.hero-copy h1,
.page-hero-copy h1,
.section-header h2,
.editorial-copy h2,
.service-row-copy h2,
.feature-project-copy h2,
.quick-link-card strong,
.project-card-copy strong,
.pillar-card strong,
.equipment-card strong,
.doc-card strong,
.contact-form-card h2,
.summary-card strong,
.cta-band h2,
.lightbox-title {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-copy strong {
  font-size: 1.85rem;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--white);
}

.nav-cta {
  min-height: 2.85rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-700), var(--red-500));
  color: var(--white) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(201, 31, 57, 0.28);
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.28rem auto;
  border-radius: 999px;
  background: var(--white);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero-home,
.page-hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
}

.hero-home {
  min-height: 42rem;
}

.hero-media,
.hero-overlay,
.page-hero::before,
.page-hero::after {
  position: absolute;
  inset: 0;
}

.hero-media {
  overflow: hidden;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 22, 51, 0.9) 14%, rgba(4, 22, 51, 0.56) 52%, rgba(4, 22, 51, 0.86) 100%),
    linear-gradient(140deg, rgba(201, 31, 57, 0.14), transparent 35%);
}

.hero-home::after {
  content: "";
  position: absolute;
  top: 7rem;
  right: -8rem;
  width: 24rem;
  height: 24rem;
  background: linear-gradient(145deg, rgba(239, 78, 103, 0.9), rgba(201, 31, 57, 0.72));
  transform: skewX(-18deg) rotate(8deg);
  opacity: 0.92;
}

.hero-home-layout,
.page-hero-copy,
.editorial-layout,
.feature-project,
.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.hero-home-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  min-height: 42rem;
  padding: 7.5rem 0 4.2rem;
}

.hero-copy,
.hero-summary,
.summary-card,
.quick-link-card,
.project-card,
.cta-band,
.pillar-card,
.service-row,
.equipment-card,
.doc-card,
.contact-form-card,
.feature-project,
.media-panel,
.contact-sidebar {
  position: relative;
}

.eyebrow {
  margin: 0 0 0.85rem;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.eyebrow-dark {
  color: var(--red-700);
}

.hero-copy h1,
.page-hero-copy h1 {
  margin: 0;
  line-height: 0.95;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 6vw, 4.8rem);
}

.page-hero-copy h1,
.section-header h2,
.editorial-copy h2,
.feature-project-copy h2,
.contact-form-card h2,
.cta-band h2 {
  font-size: clamp(2.5rem, 4.6vw, 4.1rem);
  line-height: 0.96;
  margin: 0;
}

.hero-text,
.page-hero-copy p,
.section-header p:last-child,
.section-lead,
.editorial-copy p,
.quick-link-card p,
.summary-card p,
.project-card-copy,
.pillar-card p,
.service-row-copy p,
.equipment-card p,
.doc-card p,
.contact-form-card p,
.footer-brand p,
.footer-actions span,
.form-note {
  line-height: 1.72;
}

.hero-text {
  max-width: 40rem;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
}

.page-hero {
  min-height: 24rem;
}

.page-hero::before {
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 22, 51, 0.86) 14%, rgba(4, 22, 51, 0.58) 50%, rgba(4, 22, 51, 0.84) 100%),
    var(--page-image) center / cover;
}

.page-hero::after {
  content: "";
  background: linear-gradient(145deg, rgba(239, 78, 103, 0.12), transparent 42%);
}

.page-hero-copy {
  max-width: 56rem;
  align-content: end;
  min-height: 24rem;
  padding: 7.25rem 0 3rem;
}

.page-hero-copy p {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.8);
}

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

.hero-actions {
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--red-700), var(--red-500));
  color: var(--white);
  box-shadow: 0 18px 34px rgba(201, 31, 57, 0.28);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary-dark {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.button-full {
  width: 100%;
}

.hero-summary {
  display: grid;
  gap: 1rem;
}

.summary-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-light);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(12px);
}

.summary-card span,
.quick-link-card span,
.project-card-copy span,
.pillar-card span,
.service-row-copy span,
.equipment-card span,
.doc-card span,
.lightbox-tag,
.gallery-overlay small {
  display: inline-block;
  color: var(--red-700);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
}

.summary-card p {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.intro-section {
  background: rgba(255, 255, 255, 0.96);
}

.editorial-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
}

.section-header {
  max-width: 46rem;
}

.section-header p:last-child,
.editorial-copy p:last-child {
  margin-bottom: 0;
}

.section-header-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
}

.section-lead {
  margin: 0;
  color: var(--navy-900);
  font-size: 1.25rem;
}

.editorial-copy p {
  color: var(--muted);
}

.signature-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.signature-band span {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1rem;
  border-left: 4px solid var(--red-700);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--paper-strong);
  color: var(--navy-900);
  font-weight: 700;
}

.quick-links-grid,
.pillar-grid,
.equipment-grid,
.doc-grid,
.project-grid {
  display: grid;
  gap: 1rem;
}

.quick-links-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.1rem;
}

.quick-link-card {
  display: grid;
  gap: 0.7rem;
  overflow: hidden;
  padding: 0 0 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-link-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.quick-link-card span,
.quick-link-card strong,
.quick-link-card p {
  padding: 0 1.25rem;
}

.quick-link-card strong {
  color: var(--navy-950);
  font-size: 1.35rem;
  line-height: 1.05;
}

.quick-link-card p {
  margin: 0;
  color: var(--muted);
}

.text-link,
.inline-link {
  color: var(--navy-900);
  font-weight: 700;
}

.text-link::after {
  content: " +";
}

.project-preview {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 246, 251, 0.96) 100%);
}

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

.project-card {
  grid-column: span 4;
  min-height: 22rem;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #dfe8f5;
  box-shadow: var(--shadow);
}

.project-card-large {
  grid-column: span 4;
}

.project-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(4, 22, 51, 0.9) 100%);
}

.project-card-copy {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
}

.project-card-copy span {
  color: rgba(255, 255, 255, 0.72);
}

.project-card-copy strong {
  color: var(--white);
  font-size: 1.45rem;
  line-height: 1.04;
}

.cta-section {
  background: rgba(255, 255, 255, 0.96);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
  box-shadow: var(--shadow);
  color: var(--white);
}

.cta-band h2 {
  max-width: 10ch;
}

.pale-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(240, 244, 250, 0.96) 100%);
}

.dark-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
}

.dark-section .section-header h2,
.dark-section .section-header p:last-child {
  color: var(--white);
}

.media-panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.media-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-panel-tall {
  min-height: 28rem;
}

.pillar-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.pillar-grid-single {
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

.pillar-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.pillar-card strong {
  display: block;
  color: var(--navy-950);
  font-size: 1.3rem;
  line-height: 1.04;
}

.pillar-card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  padding: 1.45rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.08);
}

.stat-card strong {
  display: block;
  color: var(--white);
  font-family: "Oswald", sans-serif;
  font-size: 3rem;
  line-height: 0.92;
}

.stat-card span {
  display: block;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.service-list {
  display: grid;
  gap: 1.35rem;
}

.service-row,
.feature-project {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-row-reverse,
.feature-project {
  direction: ltr;
}

.service-row-reverse .service-row-media {
  order: 2;
}

.service-row-media,
.feature-project-media {
  min-height: 22rem;
}

.service-row-media img,
.feature-project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-row-copy,
.feature-project-copy {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  padding: 1.8rem;
}

.service-row-copy h2,
.feature-project-copy h2 {
  color: var(--navy-950);
}

.service-row-copy p,
.feature-project-copy p {
  margin: 0;
  color: var(--muted);
}

.equipment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.equipment-grid-dense {
  gap: 1rem;
}

.equipment-card,
.doc-card,
.contact-form-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.equipment-card strong,
.doc-card strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--navy-950);
  font-size: 1.35rem;
  line-height: 1.05;
}

.equipment-card p,
.doc-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.doc-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.doc-card {
  display: block;
  border-top: 4px solid var(--red-700);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  grid-column: span 3;
  min-height: 16rem;
  overflow: hidden;
  border: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  background: #dce6f3;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}

.gallery-item-feature {
  grid-column: span 6;
  grid-row: span 2;
  min-height: 33rem;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 22, 51, 0.06), rgba(4, 22, 51, 0.92)),
    linear-gradient(145deg, rgba(239, 78, 103, 0.16), transparent 38%);
}

.gallery-overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
}

.gallery-overlay small {
  color: rgba(255, 255, 255, 0.72);
}

.gallery-overlay strong {
  color: var(--white);
  font-size: 1.42rem;
  line-height: 1.04;
}

.contact-layout {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

.contact-sidebar {
  display: grid;
  gap: 1rem;
}

.contact-form-card h2 {
  color: var(--navy-950);
}

.contact-form-card p {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: #f8fbfe;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.form-note {
  min-height: 1.5rem;
  margin: 0;
  color: var(--navy-900);
  font-weight: 700;
}

.site-footer {
  padding: 0 0 2.4rem;
  background: var(--navy-950);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img {
  width: 7rem;
  padding: 0.3rem 0.45rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.98);
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 700;
}

.footer-actions {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}

.footer-actions span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  margin: 0;
}

.footer-actions a {
  color: var(--white);
  font-weight: 700;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 8, 22, 0.86);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

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

.lightbox-figure {
  width: min(1080px, calc(100vw - 8rem));
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 1.4rem;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.lightbox-caption {
  display: grid;
  gap: 0.25rem;
  color: var(--white);
}

.lightbox-tag {
  color: rgba(255, 255, 255, 0.72);
}

.lightbox-title {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.04;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  min-height: 3rem;
  padding: 0 1rem;
  font-weight: 700;
}

.lightbox-nav {
  top: 50%;
  width: 3.2rem;
  height: 3.2rem;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

body.has-modal {
  overflow: hidden;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

.quick-link-card,
.project-card,
.pillar-card,
.service-row,
.equipment-card,
.doc-card,
.contact-form-card,
.media-panel,
.summary-card,
.button,
.nav-cta {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.button:focus-visible,
.menu-toggle:focus-visible,
.site-nav a:focus-visible,
.quick-link-card:focus-visible,
.gallery-item:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid rgba(239, 78, 103, 0.4);
  outline-offset: 3px;
}

@media (hover: hover) {
  .quick-link-card:hover,
  .project-card:hover,
  .pillar-card:hover,
  .service-row:hover,
  .equipment-card:hover,
  .doc-card:hover,
  .contact-form-card:hover,
  .media-panel:hover,
  .summary-card:hover,
  .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(4, 22, 51, 0.16);
    border-color: rgba(45, 103, 215, 0.16);
  }
}

@media (max-width: 1160px) {
  .hero-home-layout,
  .editorial-layout,
  .feature-project,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .project-card,
  .project-card-large {
    grid-column: auto;
  }

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

  .gallery-item,
  .gallery-item-feature {
    grid-column: span 3;
    grid-row: span 1;
    min-height: 20rem;
  }

  .cta-band,
  .footer-wrap {
    flex-direction: column;
    align-items: start;
  }

  .footer-actions {
    justify-items: start;
  }
}

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

  .menu-toggle {
    display: inline-block;
  }

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

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

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

  .site-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem;
    border-radius: 1.4rem;
    background: rgba(4, 22, 51, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 50px rgba(4, 22, 51, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.9rem;
    border-radius: 1rem;
  }

  .nav-cta {
    text-align: center;
  }

  .hero-home {
    min-height: auto;
  }

  .hero-home::after {
    width: 17rem;
    height: 17rem;
    right: -10rem;
    top: 8rem;
  }

  .hero-home-layout {
    min-height: auto;
    padding: 6.5rem 0 3rem;
  }

  .page-hero,
  .page-hero-copy {
    min-height: 20rem;
  }

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

  .quick-links-grid,
  .pillar-grid,
  .equipment-grid,
  .doc-grid,
  .project-grid,
  .gallery-grid,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item-feature {
    grid-column: auto;
    min-height: 19rem;
  }

  .footer-links {
    justify-content: start;
  }

  .lightbox {
    padding: 1rem 0.75rem 4.5rem;
  }

  .lightbox-figure {
    width: min(100%, calc(100vw - 1.5rem));
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .lightbox-nav {
    top: auto;
    bottom: 0.8rem;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 3.8rem);
  }

  .lightbox-next {
    right: calc(50% - 3.8rem);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100vw - 1.25rem, 100%);
  }

  .brand {
    gap: 0.75rem;
  }

  .brand-badge {
    width: 5.7rem;
    padding: 0.25rem 0.4rem;
  }

  .brand-copy strong {
    font-size: 1.45rem;
  }

  .summary-card,
  .pillar-card,
  .equipment-card,
  .doc-card,
  .contact-form-card {
    padding: 1.2rem;
  }

  .service-row-copy,
  .feature-project-copy,
  .cta-band {
    padding: 1.35rem;
  }

  .footer-brand {
    flex-direction: column;
    align-items: start;
  }
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
