:root {
  --light: #d5d7d9;
  --silver: #c1c5c8;
  --ice: #b8c9d3;
  --steel: #8d959a;
  --charcoal: #3a3f42;
}

html {
  background: #fff;
}

body {
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--ice);
  color: var(--charcoal);
}

.site-header {
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled,
.site-header.menu-active {
  background: rgba(58, 63, 66, 0.96);
  border-bottom-color: rgba(213, 215, 217, 0.12);
  backdrop-filter: blur(14px);
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 1px;
  background: var(--ice);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ice);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-icon {
  position: relative;
  display: block;
  width: 25px;
  height: 18px;
}

.menu-icon i {
  position: absolute;
  right: 0;
  display: block;
  height: 1px;
  background: #fff;
  transition: all 0.3s ease;
}

.menu-icon i:first-child {
  top: 4px;
  width: 25px;
}

.menu-icon i:last-child {
  bottom: 4px;
  width: 18px;
}

.menu-open .menu-icon i:first-child {
  top: 8px;
  transform: rotate(45deg);
}

.menu-open .menu-icon i:last-child {
  bottom: 9px;
  width: 25px;
  transform: rotate(-45deg);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-nav-link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 21px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.65rem, 7vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.mobile-nav-link span {
  color: var(--steel);
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-gradient {
  background: linear-gradient(90deg, rgba(25, 28, 30, 0.92) 0%, rgba(39, 43, 45, 0.72) 40%, rgba(58, 63, 66, 0.22) 76%, rgba(58, 63, 66, 0.08) 100%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.eyebrow-light {
  color: var(--ice);
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn span,
.text-link span {
  transition: transform 0.3s ease;
}

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

.btn-ice {
  background: var(--ice);
  color: var(--charcoal);
}

.btn-ice:hover {
  background: var(--light);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.text-link::after {
  content: "";
  position: absolute;
}

.hero-scroll .scroll-line {
  position: relative;
  display: block;
  width: 52px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
}

.hero-scroll .scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ice);
  transform: translateX(-100%);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.section {
  padding: 92px 0;
}

.section-title,
.section-title-light {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.section-title {
  color: var(--charcoal);
}

.section-title-light {
  color: #fff;
}

.body-large {
  color: var(--charcoal);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.75;
}

.body-copy {
  color: #61686c;
  font-size: 16px;
  line-height: 1.9;
}

.sector-strip-item {
  display: flex;
  min-height: 98px;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(193, 197, 200, 0.7);
  color: var(--charcoal);
  font-family: "Sora", sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
}

.sector-strip-item span {
  color: var(--steel);
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.service-preview {
  opacity: 0;
  transform: translate(24px, -50%) rotate(1.25deg);
  transition: opacity 0.25s ease, transform 0.35s ease;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  z-index: 1;
}

.service-list.preview-active .service-preview {
  opacity: 1;
  transform: translate(0, -50%) rotate(1.25deg);
}

.service-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.service-number {
  color: var(--steel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service-content h3 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.service-content p {
  display: none;
  max-width: 560px;
  margin-top: 8px;
  color: var(--silver);
  font-size: 14px;
  line-height: 1.65;
}

.service-arrow {
  justify-self: end;
  color: var(--ice);
  font-size: 24px;
  transition: transform 0.3s ease;
}

.service-row:hover {
  color: var(--ice);
}

.service-row:hover .service-arrow {
  transform: translate(4px, -4px);
}

.sector-panel {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: var(--charcoal);
}

.sector-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1);
}

.sector-panel:hover img {
  transform: scale(1.035);
}

.sector-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 34, 36, 0.08) 20%, rgba(31, 34, 36, 0.84) 100%);
  transition: background 0.4s ease;
}

.sector-panel:hover .sector-panel-overlay {
  background: linear-gradient(180deg, rgba(31, 34, 36, 0.04) 20%, rgba(31, 34, 36, 0.76) 100%);
}

.sector-panel-content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 30px 28px;
  color: white;
}

.sector-panel-number {
  color: var(--ice);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.sector-panel-content h3 {
  margin-top: 10px;
  font-family: "Sora", sans-serif;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.sector-panel-content p {
  margin-top: 12px;
  color: var(--light);
  font-size: 14px;
  line-height: 1.7;
}

.logo-corner-mark {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 92px;
  height: 92px;
  background: white;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.reason-item {
  border-top: 1px solid var(--silver);
  padding-top: 18px;
}

.reason-item > span {
  display: block;
  color: var(--ice);
  font-family: "Sora", sans-serif;
  font-size: 29px;
  font-weight: 600;
}

.reason-item h3 {
  margin-top: 15px;
  color: var(--charcoal);
  font-family: "Sora", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.reason-item p {
  margin-top: 10px;
  color: #6d7478;
  font-size: 14px;
  line-height: 1.7;
}

.process-grid {
  position: relative;
  display: grid;
  gap: 0;
}

.process-step {
  position: relative;
  padding: 0 0 34px 58px;
  border-left: 1px solid rgba(213, 215, 217, 0.2);
}

.process-step:last-child {
  border-left-color: transparent;
}

.process-marker {
  position: absolute;
  left: -18px;
  top: -4px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--charcoal);
  border: 1px solid var(--ice);
  color: var(--ice);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  font-size: 10px;
  font-weight: 800;
}

.process-step h3 {
  font-family: "Sora", sans-serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.process-step p {
  max-width: 340px;
  margin-top: 10px;
  color: var(--silver);
  font-size: 14px;
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.gallery-item {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(.2,.7,.2,1);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(32, 35, 37, 0.7) 100%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item figcaption {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 18px;
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-label {
  margin-bottom: 20px;
  color: var(--steel);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.footer-links a,
.footer-links span {
  color: var(--light);
  font-size: 14px;
  line-height: 1.55;
}

.footer-links a {
  transition: color 0.25s ease;
}

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

.footer-contact span {
  color: var(--silver);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (min-width: 640px) {
  .sector-strip-item {
    min-height: 112px;
    border-bottom: 0;
    border-right: 1px solid rgba(193, 197, 200, 0.7);
    padding: 0 26px;
    font-size: 18px;
  }

  .sector-strip-item:last-child {
    border-right: 0;
  }

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

@media (min-width: 1024px) {
  .section {
    padding: 138px 0;
  }

  .service-row {
    grid-template-columns: 52px minmax(0, 1fr) 44px;
    min-height: 116px;
    padding-right: 0;
  }

  .service-content {
    max-width: calc(100% - 470px);
  }

  .service-content p {
    display: block;
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
  }

  .service-row:hover .service-content p {
    opacity: 1;
    max-height: 70px;
    margin-top: 8px;
  }

  .sector-panel {
    min-height: 590px;
  }

  .sector-panel-content {
    padding: 36px 34px;
  }

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

  .process-grid::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 17px;
    height: 1px;
    background: rgba(213, 215, 217, 0.18);
  }

  .process-step {
    padding: 64px 28px 0 0;
    border-left: 0;
  }

  .process-marker {
    left: 0;
    top: 0;
  }

  .gallery-grid {
    grid-template-columns: 1.05fr 0.62fr 0.88fr;
    grid-template-rows: 310px 310px;
  }

  .gallery-item {
    min-height: 0;
  }

  .gallery-item-a { grid-column: 1; grid-row: 1 / 3; }
  .gallery-item-b { grid-column: 2; grid-row: 1; }
  .gallery-item-c { grid-column: 3; grid-row: 1; }
  .gallery-item-d { grid-column: 2; grid-row: 2; }
  .gallery-item-e { grid-column: 3; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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


/* =====================================================
   GLOBAL IMAGE TREATMENT
====================================================== */

/*
 * All website photography:
 * - Greyscale by default
 * - Subtle scale-up on hover
 *
 * Header/footer images are excluded so the logo
 * keeps its original brand appearance.
 */
body img:not(header img):not(footer img) {
  filter: grayscale(100%);
  transition:
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 500ms ease;
}

/* Scale image on hover */
body img:not(header img):not(footer img):hover {
  transform: scale(1.035);
}

/*
 * Hero images scale when hovering anywhere
 * over the hero, rather than requiring the
 * mouse to be directly over the image.
 */
.hero:hover img,
.about-hero:hover img,
.services-hero:hover img,
.contact-hero:hover img {
  transform: scale(1.025);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  body img:not(header img):not(footer img) {
    transition: none;
  }

  body img:not(header img):not(footer img):hover,
  .hero:hover img,
  .about-hero:hover img,
  .services-hero:hover img,
  .contact-hero:hover img {
    transform: none;
  }
}