:root {
  --navy: #003552;
  --navy-deep: #002e4f;
  --cream: #faf2e3;
  --mint: #bdddcc;
  --cyan: #bfe5ee;
  --teal: #00a0b8;
  --white: #ffffff;
  --ink: #003552;
  --muted: #526c7d;
  --line: #c9dce2;
  --shadow: 0 20px 55px rgba(0, 46, 79, 0.12);
  --page: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Aptos", "Arial", "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

body.locked {
  overflow: hidden;
}

button,
select,
a {
  font: inherit;
}

button,
select {
  color: inherit;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
}

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

.site-header {
  position: relative;
  z-index: 30;
  background: var(--white);
}

.header-inner {
  width: var(--page);
  min-height: 108px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  width: 225px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.edition-label {
  display: grid;
  gap: 2px;
  text-align: right;
  text-transform: uppercase;
}

.edition-label strong {
  font-size: 13px;
}

.edition-label span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.language-switch {
  display: flex;
  border: 1px solid var(--navy);
}

.language-switch button {
  min-width: 43px;
  min-height: 36px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.language-switch button.active {
  color: var(--white);
  background: var(--navy);
}

.image-slider {
  position: relative;
  height: clamp(360px, 49vw, 610px);
  overflow: hidden;
  background: #dce9ec;
}

.slider-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 1000ms cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.slider-slide.slide-active {
  z-index: 2;
  transform: translateX(0);
}

.slider-slide.slide-entering {
  z-index: 3;
  transform: translateX(-100%);
}

.slider-slide.slide-leaving {
  z-index: 1;
  transform: translateX(100%);
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 5000ms linear;
  will-change: transform;
}

.slider-slide.slide-active img,
.slider-slide.slide-leaving img {
  transform: scale(1.2);
}

.slider-caption {
  position: absolute;
  z-index: 6;
  bottom: 24px;
  left: max(24px, calc((100% - 1180px) / 2));
  padding: 10px 14px;
  color: var(--white);
  background: rgba(0, 53, 82, 0.84);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slider-toggle {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 6;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: rgba(0, 53, 82, 0.72);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.slider-toggle:hover,
.slider-toggle:focus-visible {
  background: var(--navy);
}

.intro-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.intro-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -205px;
  right: -78px;
  border: 46px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 46px var(--mint);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: var(--page);
  min-height: 430px;
  margin: 0 auto;
  padding: 66px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 82px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  max-width: 730px;
  margin-bottom: 20px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.title-rule {
  width: 118px;
  height: 7px;
  margin: 0 0 28px;
  background: var(--mint);
}

.hero-copy {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.62;
}

.hero-aside {
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.38);
}

.hero-aside h2 {
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 1.12;
}

.hero-aside p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: var(--navy);
  background: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.button::after {
  content: ">";
  width: 42px;
  min-height: 50px;
  margin: 0 -20px 0 6px;
  display: grid;
  place-items: center;
  background: var(--cyan);
  font-size: 18px;
}

.button:hover,
.button:focus-visible {
  background: var(--mint);
}

.sector-section {
  padding: 76px 0 100px;
  background: var(--cream);
}

.section-inner {
  width: var(--page);
  margin: 0 auto;
}

.section-heading {
  max-width: 730px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

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

.sector-card {
  min-height: 350px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 46, 79, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.sector-card:hover,
.sector-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  outline: none;
}

.sector-card-media {
  min-height: 100%;
  overflow: hidden;
  border-radius: 25px 0 0 25px;
  background: var(--mint);
}

.sector-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.sector-card:hover .sector-card-media img {
  transform: scale(1.06);
}

.sector-card-content {
  padding: 34px;
  display: flex;
  flex-direction: column;
}

.sector-meta {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.sector-meta span + span::before {
  content: "|";
  margin-right: 8px;
}

.sector-card h3 {
  margin-bottom: 15px;
  font-size: 31px;
  line-height: 1.08;
}

.sector-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.sector-action {
  margin-top: auto;
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.sector-action span:last-child {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--cyan);
  border-radius: 50%;
  font-size: 18px;
}

.projects-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.projects-hero::after {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  top: -155px;
  right: -50px;
  border: 38px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 38px var(--mint);
}

.projects-hero-inner {
  position: relative;
  z-index: 2;
  width: var(--page);
  margin: 0 auto;
  padding: 48px 0 52px;
}

.projects-hero h1 {
  max-width: 800px;
  margin-bottom: 12px;
  font-size: clamp(42px, 5vw, 66px);
}

.projects-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.filter-section {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0;
  background: rgba(250, 242, 227, 0.96);
  border-bottom: 1px solid #e6dccb;
  backdrop-filter: blur(12px);
}

.filter-inner {
  width: var(--page);
  margin: 0 auto;
}

.filter-topline {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.result-count {
  font-size: 13px;
  font-weight: 800;
}

.reset-button {
  padding: 7px 0;
  border: 0;
  color: var(--teal);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.filter-field {
  display: grid;
  gap: 5px;
}

.filter-field label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.filter-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.project-list-section {
  padding: 40px 0 90px;
}

.project-list {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 255px 1fr 70px;
  align-items: stretch;
  padding: 0;
  border: 1px solid var(--line);
  border-left: 14px solid var(--mint);
  border-radius: 25px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  outline: none;
}

.project-card-image {
  min-height: 190px;
  overflow: hidden;
}

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

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

.project-card-content {
  padding: 27px 30px 24px;
}

.project-card h2 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.08;
}

.project-card-description {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.project-card-meta {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.project-card-arrow {
  display: grid;
  place-items: center;
}

.project-card-arrow span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--cyan);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
}

.empty-state {
  padding: 75px 30px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 25px;
  text-align: center;
}

.site-footer {
  padding: 26px 0 38px;
  background: var(--cream);
}

.footer-inner {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 11px;
}

.footer-inner strong {
  color: var(--navy);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  overflow-y: auto;
  padding: 24px;
  background: rgba(0, 32, 50, 0.76);
  backdrop-filter: blur(9px);
}

.overlay.open {
  display: block;
}

.overlay-panel {
  width: min(1050px, 100%);
  min-height: calc(100vh - 48px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0, 25, 40, 0.38);
}

.overlay-close {
  position: fixed;
  top: 38px;
  right: max(38px, calc((100vw - 1050px) / 2 + 20px));
  z-index: 110;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 46, 79, 0.8);
  cursor: pointer;
  font-size: 22px;
}

.overlay-hero {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.overlay-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 30, 45, 0.05), rgba(0, 46, 79, 0.9));
}

.overlay-title {
  position: relative;
  z-index: 2;
  width: min(850px, calc(100% - 60px));
  margin: 0 auto;
  padding: 90px 0 42px;
}

.overlay-title h2 {
  margin-bottom: 11px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
}

.overlay-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.overlay-body {
  width: min(850px, calc(100% - 60px));
  margin: 0 auto;
  padding: 44px 0 60px;
}

.overlay-lead {
  margin: 0 0 34px;
  font-size: 19px;
  line-height: 1.6;
}

.detail-section {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 175px 1fr;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0;
  color: var(--teal);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.detail-item {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.detail-item span,
.detail-item strong {
  display: block;
}

.detail-item span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-item strong {
  font-size: 13px;
  line-height: 1.4;
}

.contact-panel {
  margin-top: 28px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--white);
  background: var(--navy);
}

.contact-panel h3 {
  margin-bottom: 7px;
  color: var(--white);
  font-size: 23px;
  letter-spacing: 0;
  text-transform: none;
}

.contact-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

@media (max-width: 980px) {
  .main-nav,
  .edition-label {
    display: none;
  }

  .language-switch {
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero-aside {
    max-width: 640px;
  }

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

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

@media (max-width: 720px) {
  :root {
    --page: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 82px;
  }

  .brand {
    width: 180px;
  }

  .intro-hero::after,
  .projects-hero::after {
    opacity: 0.38;
  }

  .image-slider {
    height: 390px;
  }

  .slider-caption {
    left: 14px;
    bottom: 14px;
  }

  .slider-toggle {
    right: 14px;
    bottom: 14px;
  }

  .hero-inner {
    min-height: auto;
    padding: 52px 0 58px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-aside {
    padding: 25px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-left: 0;
  }

  .sector-section {
    padding: 58px 0 76px;
  }

  .sector-card {
    grid-template-columns: 1fr;
  }

  .sector-card-media {
    min-height: 230px;
    border-radius: 25px 25px 0 0;
  }

  .filter-section {
    position: relative;
  }

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

  .project-card {
    grid-template-columns: 1fr;
    border-left-width: 10px;
  }

  .project-card-image {
    min-height: 220px;
  }

  .project-card-arrow {
    position: absolute;
    right: 18px;
    bottom: 20px;
  }

  .project-card-content {
    padding-right: 76px;
  }

  .overlay {
    padding: 0;
  }

  .overlay-panel {
    min-height: 100vh;
    border-radius: 0;
  }

  .overlay-close {
    top: 16px;
    right: 16px;
  }

  .overlay-title,
  .overlay-body {
    width: min(100% - 34px, 850px);
  }

  .detail-section {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 460px) {
  .brand {
    width: 156px;
  }

  .language-switch button {
    min-width: 37px;
  }

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

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