:root {
  --red: #ed1c24;
  --red-dark: #c8141b;
  --ink: #303236;
  --charcoal: #3d4044;
  --charcoal-deep: #34373b;
  --muted: #74777b;
  --line: #e2e3e5;
  --paper: #ffffff;
  --soft: #f5f5f4;
  --shadow: 0 18px 48px rgba(23, 26, 30, 0.14);
  --container: 1110px;
  --header-height: 112px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--muted);
  background: var(--paper);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

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

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

a:hover {
  color: var(--red);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--red);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

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

.topbar {
  min-height: 36px;
  color: rgba(255, 255, 255, 0.9);
  background: var(--charcoal-deep);
  font-size: 12px;
}

.topbar .container {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.topbar a {
  transition: color 150ms ease;
}

.site-header {
  position: relative;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(40, 42, 46, 0.06);
}

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

.brand {
  flex: 0 0 auto;
}

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

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 25px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before {
  position: absolute;
  top: -8px;
}

.nav-toggle-lines::after {
  position: absolute;
  top: 8px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  transform: translateY(-8px) rotate(-45deg);
}

.main-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: stretch;
  gap: 37px;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  transition: color 150ms ease;
}

.main-nav a::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--red);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 150ms ease, transform 150ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--red);
}

.main-nav a:hover::before,
.main-nav a[aria-current="page"]::before {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: clamp(470px, 52vw, 680px);
  overflow: hidden;
  color: #fff;
  background: var(--charcoal);
}

.hero--compact {
  min-height: clamp(360px, 40vw, 540px);
}

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

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

.hero-media::after,
.hero-slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 25, 29, 0.68) 0%, rgba(23, 25, 29, 0.22) 52%, rgba(23, 25, 29, 0.08) 100%);
  content: "";
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 750ms ease;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: inherit;
  align-items: center;
  padding-block: 72px;
}

.hero-copy {
  width: min(650px, 74%);
  padding-left: 28px;
  border-left: 4px solid var(--red);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  align-items: center;
  gap: 9px;
  color: var(--red);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero p {
  max-width: 580px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 10px 21px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  color: #fff;
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
}

.button--ghost {
  color: #fff;
  background: rgba(20, 22, 25, 0.24);
  border-color: rgba(255, 255, 255, 0.68);
}

.button--ghost:hover {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.slider-dots {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 28px;
  display: flex;
  gap: 9px;
}

.slider-dot {
  width: 30px;
  height: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.48);
  border: 0;
  border-radius: 0;
}

.slider-dot.is-active {
  background: var(--red);
}

.section {
  padding-block: 82px;
}

.section--tight {
  padding-block: 64px;
}

.section--soft {
  background: var(--soft);
}

.section-title {
  position: relative;
  margin: 0 0 34px;
  padding-bottom: 17px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.section-title::after,
.card h2::after,
.content-heading::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--red);
  content: "";
}

.intro {
  max-width: 790px;
  margin-bottom: 42px;
  font-size: 19px;
}

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

.card {
  min-width: 0;
}

.card-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e5e6e7;
  aspect-ratio: 1 / 1;
}

.card-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(22, 24, 27, 0.22));
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.card-image:hover img {
  transform: scale(1.035);
}

.card-image:hover::after {
  opacity: 1;
}

.card h2 {
  position: relative;
  margin: 22px 0 15px;
  padding-bottom: 13px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.card h2::after {
  width: 32px;
}

.card p {
  margin: 0 0 15px;
}

.text-link {
  color: var(--ink);
  font-weight: 650;
}

.text-link::after {
  margin-left: 7px;
  color: var(--red);
  content: "\2192";
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: start;
  gap: 76px;
}

.prose {
  max-width: 760px;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2,
.prose h3,
.content-heading {
  color: var(--ink);
}

.prose h2,
.content-heading {
  position: relative;
  margin: 0 0 26px;
  padding-bottom: 15px;
  font-size: 26px;
  line-height: 1.25;
  text-transform: uppercase;
}

.prose h3 {
  margin: 24px 0 6px;
  font-size: 16px;
}

.prose p {
  margin: 0 0 20px;
}

.prose .lead {
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.5;
}

.strengths {
  position: sticky;
  top: 28px;
  padding: 24px 26px 25px;
  background: #fff;
  border: 1px solid #cfd1d3;
}

.strengths::before {
  position: absolute;
  top: 65px;
  right: -1px;
  left: -1px;
  height: 4px;
  background: var(--red);
  clip-path: polygon(0 0, 14% 100%, 100% 0, 100% 100%, 14% 100%, 0 25%);
  content: "";
}

.strengths h2 {
  margin: 0 0 46px;
  color: var(--ink);
  font-size: 18px;
  text-transform: uppercase;
}

.strengths ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.strengths li {
  position: relative;
  padding-left: 20px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.4;
}

.strengths li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--red);
  content: "";
}

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

.value {
  margin: 0;
}

.value strong {
  color: var(--ink);
}

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

.feature {
  display: grid;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  grid-template-columns: minmax(160px, 42%) 1fr;
}

.feature-image {
  min-height: 250px;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-copy {
  padding: 28px;
}

.feature h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}

.feature p {
  margin: 0;
  font-size: 14px;
}

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

.gallery-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #e6e7e8;
  border: 0;
  aspect-ratio: 4 / 3;
}

.gallery-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease, filter 350ms ease;
}

.gallery-button::after {
  position: absolute;
  inset: 0;
  display: grid;
  color: #fff;
  background: rgba(25, 27, 30, 0.5);
  content: "+";
  font-size: 40px;
  font-weight: 200;
  opacity: 0;
  place-items: center;
  transition: opacity 180ms ease;
}

.gallery-button:hover img,
.gallery-button:focus-visible img {
  transform: scale(1.04);
}

.gallery-button:hover::after,
.gallery-button:focus-visible::after {
  opacity: 1;
}

.lightbox {
  width: min(94vw, 1120px);
  max-width: none;
  padding: 0;
  color: #fff;
  background: #161719;
  border: 0;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(18, 19, 21, 0.88);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.lightbox figcaption {
  padding: 12px 56px 15px 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.contact-grid,
.career-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.1fr);
  gap: 64px;
}

.contact-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.contact-list a {
  color: var(--ink);
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 20px;
}

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

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd1d3;
  border-radius: 0;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--red);
  outline: 2px solid rgba(237, 28, 36, 0.16);
  outline-offset: 0;
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 13px;
}

.form-status {
  display: none;
  margin: 0;
  padding: 12px 14px;
  color: var(--ink);
  background: #f2f3f3;
  border-left: 3px solid var(--red);
}

.form-status.is-visible {
  display: block;
}

.contact-form .button[disabled] {
  cursor: wait;
  opacity: 0.58;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.map-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: #d9dadb;
}

.contact-map {
  margin-top: 36px;
}

.map-card img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  filter: grayscale(0.32);
}

.map-card-overlay {
  position: absolute;
  right: 25px;
  bottom: 25px;
  left: 25px;
  display: flex;
  padding: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  background: rgba(48, 50, 54, 0.92);
}

.map-card-overlay strong {
  display: block;
}

.map-card-overlay span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.job-card {
  padding: 36px;
  background: var(--soft);
  border-top: 3px solid var(--red);
}

.job-card h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 24px;
}

.job-card h3 {
  margin: 24px 0 8px;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-card ul {
  padding-left: 20px;
}

.cta-band {
  color: #fff;
  background: var(--red);
}

.cta-band .container {
  display: flex;
  min-height: 132px;
  padding-block: 26px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-band h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.cta-band .button {
  flex: 0 0 auto;
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.site-footer {
  color: #a9abad;
  background: var(--charcoal);
}

.footer-main {
  display: grid;
  min-height: 248px;
  padding-block: 54px;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.footer-main h2 {
  margin: 0 0 22px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-main p {
  margin: 5px 0;
}

.footer-main a:hover {
  color: #fff;
}

.footer-gallery-link {
  position: relative;
  display: block;
  max-width: 360px;
  overflow: hidden;
}

.footer-gallery-link img {
  width: 100%;
  height: 115px;
  object-fit: cover;
  opacity: 0.58;
  transition: opacity 180ms ease, transform 300ms ease;
}

.footer-gallery-link span {
  position: absolute;
  inset: 0;
  display: grid;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  place-items: center;
}

.footer-gallery-link:hover img {
  opacity: 0.8;
  transform: scale(1.025);
}

.footer-bottom {
  color: #8c8f92;
  background: #373a3e;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.footer-bottom .container {
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-bottom p {
  margin: 0;
}

.error-page {
  display: grid;
  min-height: 60vh;
  padding: 80px 24px;
  text-align: center;
  place-items: center;
}

.error-page strong {
  display: block;
  color: var(--red);
  font-size: 72px;
  line-height: 1;
}

.error-page h1 {
  margin: 12px 0;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(237, 28, 36, 0.55);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  :root {
    --header-height: 88px;
  }

  .header-inner {
    gap: 18px;
  }

  .brand img {
    width: 158px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    z-index: 45;
    top: 124px;
    right: 0;
    bottom: 0;
    width: min(86vw, 390px);
    padding: 26px 32px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -12px 18px 35px rgba(19, 22, 26, 0.16);
    transform: translateX(110%);
    transition: transform 220ms ease;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    display: grid;
    gap: 0;
  }

  .main-nav a {
    min-height: 54px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a::before {
    top: auto;
    right: auto;
    bottom: -1px;
    width: 36px;
  }

  .content-layout {
    gap: 40px;
  }

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

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

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

  .topbar .container {
    justify-content: center;
    gap: 18px;
  }

  .hero,
  .hero--compact {
    min-height: 500px;
  }

  .hero-copy {
    width: 100%;
    padding-left: 19px;
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .hero-media::after,
  .hero-slide::after {
    background: linear-gradient(90deg, rgba(22, 24, 27, 0.74), rgba(22, 24, 27, 0.26));
  }

  .section {
    padding-block: 58px;
  }

  .section--tight {
    padding-block: 48px;
  }

  .cards,
  .content-layout,
  .values-grid,
  .gallery-grid,
  .contact-grid,
  .career-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .cards,
  .gallery-grid {
    gap: 38px;
  }

  .content-layout,
  .contact-grid,
  .career-grid {
    gap: 42px;
  }

  .strengths {
    position: relative;
    top: auto;
  }

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

  .feature-image {
    min-height: 230px;
    aspect-ratio: 16 / 10;
  }

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

  .map-card-overlay,
  .cta-band .container,
  .footer-bottom .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main {
    gap: 38px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .topbar {
    display: none;
  }

  .main-nav {
    top: 88px;
  }

  .brand img {
    width: 145px;
  }

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

  .job-card {
    padding: 28px 22px;
  }
}

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