/* Homepage composition: product directory, company, technical evidence and projects. */
.home-page .section {
  padding-block: clamp(48px, 4vw, 64px);
}

.hero-carousel {
  touch-action: pan-y pinch-zoom;
  position: relative;
  isolation: isolate;
  background: var(--surface-paper);
  overflow: hidden;
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--surface-linework) center / cover no-repeat;
  opacity: 0.36;
  pointer-events: none;
}

.hero-slides {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  isolation: isolate;
}

.hero-carousel.is-enhanced .hero-slide {
  visibility: hidden;
  pointer-events: none;
}

.hero-carousel.is-enhanced .hero-slide.is-active,
.hero-carousel.is-enhanced .hero-slide.is-leaving {
  visibility: visible;
}

.hero-carousel.is-enhanced .hero-slide.is-active {
  z-index: 2;
  pointer-events: auto;
}

.hero-carousel.is-enhanced .hero-slide.is-leaving {
  z-index: 1;
}

.hero-grid {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(400px, calc(36vw - 60px), 490px);
  padding-block: 50px 28px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 48%;
  max-width: 620px;
  overflow-wrap: anywhere;
}

.hero-heading {
  margin: 0 0 18px;
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.028em;
  color: #081b36;
}

.hero-heading span {
  display: block;
}

.hero-heading span + span {
  color: #0a4ca8;
}

.hero-copy p {
  max-width: 34em;
  margin: 0 0 28px;
  color: #3f5570;
  font-size: 16.5px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions .button:not(.button-outline) {
  min-width: 164px;
  min-height: 48px;
}

.hero-actions .button-outline {
  min-height: 48px;
  border-color: #bfd5ec;
  background: rgba(255, 255, 255, 0.72);
  color: #0752b0;
}

.hero-actions .button-outline:hover {
  color: #063f86;
  border-color: #8eb8e5;
  background: #ffffff;
}

.hero-art {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 46%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 3% 0 0;
}

.hero-art img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.carousel-rail {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  padding-bottom: 16px;
}

.hero-carousel:not(.is-enhanced) .carousel-rail {
  display: none;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #c3d6e8;
  border-radius: var(--radius-sm, 6px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 4px rgba(10, 34, 62, 0.05);
  color: #173a64;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.carousel-controls button:hover {
  background: #ffffff;
  border-color: #8cb7e4;
  color: var(--blue);
  box-shadow: 0 3px 10px rgba(7, 98, 212, 0.12);
}

.carousel-controls svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.carousel-count {
  min-width: 74px;
  text-align: center;
  font-size: 14px;
  color: #425772;
  font-variant-numeric: tabular-nums;
}

.carousel-count strong {
  color: var(--blue);
}

.carousel-controls [data-carousel-pause] {
  margin-left: 12px;
}

.carousel-selectors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 2px;
}

.carousel-selectors button {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.carousel-meter {
  position: absolute;
  top: 20px;
  left: 5px;
  right: 5px;
  height: 3px;
  border-radius: 2px;
  background: #b0c4da;
  overflow: hidden;
}

.carousel-meter-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}

.carousel-selectors button.is-active .carousel-meter {
  background: #82a7cd;
}

.hero-simple {
  padding-block: 100px;
  background: var(--soft);
}

.hero-simple h1 span {
  display: block;
}

.business-directory {
  padding-block: 30px;
  background: linear-gradient(132deg, #092038 0%, #0f2f50 55%, #13395f 100%);
  border-top: 1px solid rgba(115, 184, 244, 0.22);
}

.business-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
}

.business-entry {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 4px 0;
  background: transparent;
  transition: background-color 200ms ease;
}

.business-entry + .business-entry {
  border-inline-start: 1px solid rgba(132, 174, 214, 0.24);
  padding-inline-start: 28px;
}

.business-entry h2 {
  position: relative;
  margin: 0 0 12px;
  padding-bottom: 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  transition: color 180ms ease;
}

.business-entry h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  border-radius: 1px;
  background: #67b6f9;
  transition: width 220ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease;
}

.business-entry p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: #cde0f0;
  line-height: 1.8;
}

.business-entry > .text-link {
  margin-top: auto;
  color: #a8d4ff;
}

.business-entry > .text-link .ui-icon {
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.business-entry:focus-visible,
.business-entry:active {
  background: #1b3b5b;
}

.business-entry:focus-visible h2 {
  color: #b4daff;
}

.business-entry:focus-visible {
  outline: 2px solid #b4daff;
  outline-offset: -3px;
}

@media (hover: hover) and (pointer: fine) {
  .business-entry:hover h2 {
    color: #9ed1ff;
  }

  .business-entry:hover h2::after {
    width: 46px;
    background: #9ed1ff;
  }

  .business-entry:hover > .text-link {
    color: #ffffff;
  }

  .business-entry:hover > .text-link .ui-icon {
    transform: translateX(3px);
  }
}

.home-about .about-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.home-about .about-visual {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  background: #fff;
}

.company-video-frame {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.home-about .company-video-frame > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 72% center;
  mix-blend-mode: normal;
}

.company-introduction {
  grid-column: 1;
  grid-row: 1;
}

.company-introduction h2 {
  margin-bottom: 20px;
  font-size: var(--section-title-size);
}

.company-introduction h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, #3d95f5 100%);
}

.company-introduction p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
}

.company-introduction .text-link + .text-link {
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.company-location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  background: #fafcff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.company-location .ui-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 20px;
  color: var(--blue);
}

.home-research {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-night);
  color: #fff;
  padding-block: clamp(56px, 7vw, 96px);
}

.home-research::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--surface-linework) center / cover no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

.research-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 80px;
}

.research-copy h2 {
  max-width: 10em;
  font-size: var(--section-title-size);
  line-height: 1.35;
  margin-bottom: 24px;
  color: #fff;
}

.research-copy > p {
  color: #c4d5e7;
  line-height: 1.9;
  margin-bottom: 32px;
}

.research-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-inline: 0 10px;
  border-top: 1px solid rgba(132, 174, 214, 0.25);
  color: #e4f1ff;
  transition: color 180ms ease, background-color 180ms ease, padding-left 180ms ease;
}

.research-links a:last-child {
  border-bottom: 1px solid rgba(132, 174, 214, 0.25);
}

.research-links a:is(:hover, :focus-visible) {
  color: #93ccff;
}

.research-links .ui-icon {
  transition: transform 180ms ease;
}

.research-links a:focus-visible {
  outline: 2px solid #8cc6ff;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .research-links a:hover {
    padding-left: 10px;
    background: rgba(140, 198, 255, 0.08);
  }

  .research-links a:hover .ui-icon {
    transform: translateX(3px);
  }
}

.research-visual {
  margin: 0;
}

.research-document {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 44px -18px rgba(3, 14, 28, 0.5);
}

.research-document:focus-visible {
  outline: 2px solid #8cc6ff;
  outline-offset: 5px;
}

.research-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 18px;
  background: linear-gradient(180deg, #fafcff 0%, #eef4fa 100%);
  border-radius: 0;
}

.research-visual figcaption {
  margin-top: 10px;
  color: #bdcfe2;
  font-size: 14px;
  text-align: right;
}

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

.home-cases {
  background: var(--soft);
}

.project-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: border-color 200ms ease, box-shadow 220ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-entry:first-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.project-entry:first-child .project-image {
  aspect-ratio: 1.85;
}

.project-entry:first-child .project-copy {
  padding: clamp(24px, 3vw, 46px);
}

.project-entry:first-child h3 {
  font-size: clamp(22px, 2.5vw, 34px);
  text-wrap: balance;
}

.project-image {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--soft);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-entry:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
  .project-entry:hover {
    border-color: #a6c7ec;
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
  }

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

.project-copy {
  min-width: 0;
  padding: 20px;
}

.project-copy h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.5;
  transition: color 180ms;
}

.project-entry:is(:hover, :focus-visible) h3 {
  color: var(--blue);
}

.project-copy p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-page .home-partners {
  padding-top: 0;
}

.home-news {
  border-top: 1px solid var(--line);
}

.home-news-layout {
  display: grid;
  grid-template-columns: 1fr 2.25fr;
  gap: 80px;
}

.home-news-heading h2 {
  font-size: var(--section-title-size);
}

.home-news-entry {
  display: grid;
  grid-template-columns: 112px 1fr 24px;
  gap: 24px;
  align-items: center;
  padding: 26px 16px;
  margin-inline: -16px;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  transition: background-color 180ms ease;
}

.home-news-entry:is(:hover, :focus-visible) {
  background: #f5f9fe;
}

.home-news-entry:first-child {
  border-top: 1px solid var(--line);
}

.home-news-entry time {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.home-news-entry h3 {
  font-size: 19px;
  line-height: 1.6;
  font-weight: 600;
  margin: 0;
  transition: color 180ms;
}

.home-news-entry:is(:hover, :focus-visible) h3 {
  color: var(--blue);
}

.home-news-entry > .ui-icon {
  transition: transform 180ms;
}

.home-news-entry:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .home-news-entry:hover > .ui-icon {
    transform: translateX(3px);
  }
}

.home-support {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 64px;
  background: var(--surface-paper);
}

.home-support::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--surface-linework) center / cover no-repeat;
  opacity: 0.8;
  pointer-events: none;
}

.support-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: center;
}

.support-layout h2 {
  font-size: var(--section-title-size);
}

.support-layout p {
  max-width: 44em;
  color: #4f6680;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.home-support-contact {
  padding: 36px 40px;
  border: 1px solid #d4e3f2;
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-panel);
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.home-support-contact > span {
  font-size: 14px;
  color: #4f6680;
}

.home-support-contact > a[href^="tel:"] {
  color: var(--blue);
  font-size: clamp(24px, 2.7vw, 38px);
  line-height: 1.4;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.home-support-contact .text-link {
  color: var(--blue);
}

@media (min-width: 1600px) {
  .hero-copy {
    width: 46%;
  }
}

@supports (grid-template-rows: subgrid) {
  @media (min-width: 701px) {
    .business-entry {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
    }

    .business-entry h2 {
      min-height: 0;
    }
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  html[lang="en"] .hero-heading {
    font-size: 40px;
  }
}

@media (max-width: 1000px) {
  .hero-copy {
    width: 50%;
  }

  .hero-heading {
    font-size: 42px;
  }

  .business-entry h2 {
    font-size: 21px;
    min-height: calc(2.8em + 14px);
  }

  .home-about .about-split,
  .research-layout,
  .home-news-layout,
  .support-layout {
    gap: 32px;
  }

  .project-grid {
    gap: 24px;
  }

  .project-copy h3 {
    font-size: 20px;
  }
}

@media (max-width: 700px) {
  .hero-carousel::before {
    background-position: 62% center;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-items: stretch;
    min-height: 0;
    height: 100%;
    padding: 0;
    width: 100%;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    padding: 24px 20px 12px;
    background: transparent;
  }

  .hero-heading {
    font-size: clamp(28px, 7.7vw, 42px);
    margin-bottom: 12px;
    line-height: 1.24;
  }

  .hero-copy p {
    max-width: 32em;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
    text-wrap: balance;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .button:not(.button-outline) {
    min-width: 0;
    min-height: 46px;
  }

  .hero-actions .button {
    padding-inline: 18px;
    min-height: 46px;
    font-size: 14px;
  }

  .hero-art {
    position: relative;
    z-index: 0;
    inset: auto;
    width: min(calc(100% - 24px), 460px);
    justify-self: center;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 3 / 2;
    padding: 0;
  }

  .hero-art img {
    width: 100%;
    height: 100%;
    object-position: center;
  }

  .carousel-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    padding-bottom: 8px;
  }

  .carousel-selectors {
    width: 100%;
    justify-content: center;
  }

  .carousel-controls [data-carousel-pause] {
    margin-left: 6px;
  }

  .business-directory-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0;
  }

  .business-directory {
    padding-block: 8px;
  }

  .business-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
    padding: 14px 0;
    border: 0;
    background: transparent;
  }

  .business-entry + .business-entry {
    border-inline-start: 0;
    border-top: 1px solid #3b5671;
    padding-inline-start: 0;
  }

  .business-entry h2 {
    grid-column: 1 / -1;
    margin: 0;
    padding-bottom: 0;
    font-size: 19px;
    min-height: 0;
  }

  .business-entry h2::after {
    display: none;
  }

  .business-entry p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
  }

  .business-entry > .text-link {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    font-size: 13px;
    min-height: 44px;
  }

  .home-page .home-about {
    padding-block: 44px;
  }

  .home-about .about-split,
  .research-layout,
  .home-news-layout,
  .support-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .company-introduction {
    grid-column: auto;
    grid-row: auto;
  }

  .home-about .about-visual {
    grid-column: auto;
    grid-row: auto;
  }

  .research-copy h2 {
    max-width: 12em;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-entry,
  .project-entry:first-child {
    grid-template-columns: 1fr;
  }

  .project-copy,
  .project-entry:first-child .project-copy {
    padding: 20px;
  }

  .home-news-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
  }

  .home-news-heading h2 {
    margin: 0;
  }

  .home-news-entry {
    grid-template-columns: 1fr 24px;
    gap: 10px 20px;
    padding: 22px 0;
    margin-inline: 0;
  }

  .home-news-entry time {
    grid-column: 1;
    font-size: 12px;
  }

  .home-news-entry h3 {
    grid-row: 2;
    font-size: 17px;
  }

  .home-news-entry .ui-icon {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .home-support-contact {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .business-entry,
  .business-entry h2,
  .business-entry h2::after,
  .business-entry > .text-link .ui-icon,
  .project-entry,
  .project-image img,
  .carousel-controls button,
  .research-links a,
  .research-links .ui-icon,
  .home-news-entry,
  .home-news-entry > .ui-icon {
    transition: none;
  }

  .project-entry:hover,
  .project-entry:hover img,
  .business-entry:hover > .text-link .ui-icon,
  .research-links a:hover .ui-icon,
  .home-news-entry:hover > .ui-icon {
    transform: none;
  }
}
