/* Variant 3 uses the existing navy, sky blue and neutral palette. */
.header .header-inner > nav {
  flex: 1 1 auto;
  justify-content: center;
  margin-left: 0;
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("media/power-network.svg") right 2% center / auto 155% no-repeat;
  mask-image: linear-gradient(to right, transparent 45%, #000 92%);
  opacity: .28;
  pointer-events: none;
}
.header .header-inner > .header-cta { border-radius: 8px; }

.cycle-grid.service-showcase-three {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin: clamp(32px, 5vw, 76px) auto 0;
  background: transparent;
}
.service-showcase-three .cycle-card {
  min-height: 250px;
  padding: 27px clamp(22px, 3vw, 44px) 58px;
  border-radius: 8px;
  justify-content: flex-start;
}
.service-showcase-three .cycle-card:last-child { grid-column: 1 / -1; min-height: 230px; }
.service-showcase-three .cycle-card::before {
  background: linear-gradient(90deg, #08223c 4%, #0b345bef 41%, #0b345b45 100%);
}
.service-showcase-three .cycle-card::after { opacity: .13; }
.service-showcase-three .cycle-card:hover::after,
.service-showcase-three .cycle-card:focus-visible::after { opacity: .04; }
.service-showcase-three .cycle-card h2 { font-size: clamp(22px, 2.25vw, 34px); text-transform: none; }
.service-showcase-three .cycle-card p { margin: 12px 35px 0 0; max-width: 42ch; font-size: 14px; }
.service-showcase-three .cycle-card:last-child p { max-width: 58ch; }
.service-showcase-three .cycle-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  margin: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 34px;
  border-radius: 6px;
  background: #0b2749e6;
  color: #fff;
  transition: background-color .2s;
}
.service-showcase-three .cycle-arrow svg { display: block; }
.service-showcase-three .cycle-card:is(:hover, :focus-visible) .cycle-arrow {
  background-color: #135d9b;
}
@media (prefers-reduced-motion: reduce) {
  .service-showcase-three .cycle-arrow { transition: none; }
}

.ten-advantages img[src*="/hero-line-"] { transform-origin: center; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ten-advantages article:hover img[src*="/hero-line-"] { animation: hero-icon-globe 1.65s linear infinite; }
}
@keyframes hero-icon-globe {
  from { transform: perspective(160px) rotateY(0deg); }
  to { transform: perspective(160px) rotateY(360deg); }
}

.eleven-intro-grid:has(.portrait-company-film) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 344px);
}
.portrait-company-film {
  box-sizing: border-box;
  width: min(100%, 344px);
  justify-self: end;
  padding: 0 15px;
  border: 1px solid #d2e6f7;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6faff, #e8f3ff);
  box-shadow: inset 0 1px 0 #fff, 0 12px 30px -22px #1b538966;
}
.machine-panel {
  display: grid;
  grid-template-columns: 12px 1fr 12px;
  align-items: center;
  justify-items: center;
  gap: 12px;
  height: 33px;
  color: #345d82;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .17em;
}
.machine-panel i {
  width: 10px;
  height: 10px;
  border: 1px solid #a5bfd7;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 42%, #7b9bb7 43% 57%, transparent 58%),
              linear-gradient(#f9fcff, #ccdff1);
}
.machine-panel-bottom span {
  width: 55px;
  height: 7px;
  background: repeating-linear-gradient(90deg, #9db7cf 0 3px, transparent 3px 7px);
  border-radius: 2px;
}
.machine-screen {
  padding: 4px;
  border: 1px solid #b6cce2;
  border-radius: 5px;
  background: #d9e8f5;
  box-shadow: inset 0 1px 4px #28577b24;
}
.portrait-company-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 3px;
  background: #081421;
}
.portrait-company-film video:focus-visible { outline: 2px solid #9bd1ff; outline-offset: 2px; }
.twelve-benefits-visual > img[src$="/precision-drawing.svg"] { object-position: center 24%; }

/* Layout 03: one tall project, two compact tiles, one panoramic tile. */
.eleven-project-showcase.project-showcase-three .case-grid {
  grid-template-columns: minmax(0, 1.42fr) repeat(2, minmax(0, .7fr));
  grid-template-rows: repeat(2, minmax(225px, auto));
  gap: 12px;
}
.project-showcase-three .case-tile:first-child { grid-row: span 2; }
.project-showcase-three .case-tile:last-child { grid-column: 2 / -1; }
.eleven-project-showcase.project-showcase-three .case-tile,
.eleven-project-showcase.project-showcase-three .case-content { min-height: 225px; }
.eleven-project-showcase.project-showcase-three .case-content {
  box-sizing: border-box;
  justify-content: flex-end;
  padding: clamp(16px, 2vw, 30px);
}
.project-showcase-three .case-tile .case-top { margin: 0 0 8px; }
.project-showcase-three .case-tile h2 {
  margin: 0;
  font-size: clamp(17px, 1.65vw, 25px);
  line-height: 1.2;
}
.project-showcase-three .case-tile:first-child h2 { font-size: clamp(28px, 3vw, 44px); }
.project-showcase-three .case-tile p { display: none; }
.project-showcase-three .case-tile .case-link { min-height: 44px; margin-top: 4px; gap: 12px; }
.project-showcase-three .case-tile .case-link span { font-size: 20px; }
.project-showcase-three .case-tile .case-shade {
  background: linear-gradient(0deg, #091e34f5, #091e3480 58%, #091e341a 93%);
}
.project-showcase-three .case-tile:hover { transform: none; }

.publication-showcase-three .publication-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: 0 30px;
}
.publication-showcase-three .publication-card:first-child { grid-row: span 3; }
.publication-showcase-three .publication-card:first-child h3 { font-size: clamp(24px, 2.6vw, 36px); }
.publication-showcase-three .publication-card:not(:first-child) {
  display: grid;
  grid-template-columns: minmax(80px, 30%) minmax(0, 1fr);
  gap: 17px;
  align-items: start;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #c6d7e7;
  border-radius: 0;
  background: transparent;
}
.publication-showcase-three .publication-card:not(:first-child):hover { transform: none; box-shadow: none; }
.publication-showcase-three .publication-card:nth-child(2) { padding-top: 0; }
.publication-showcase-three .publication-card:not(:first-child) .publication-image { border-radius: 4px; aspect-ratio: 4 / 3; }
.publication-showcase-three .publication-card:not(:first-child) .publication-copy { padding: 0; }
.publication-showcase-three .publication-card:not(:first-child) h3 {
  font-size: clamp(17px, 1.65vw, 24px);
  margin: 7px 0;
}
.publication-showcase-three .publication-card:not(:first-child) p { margin: 0 0 4px; }
.publication-showcase-three .publication-card:not(:first-child) .publication-read {
  min-height: 38px;
  align-self: flex-start;
  gap: 12px;
  padding: 0;
  border: 0;
}
.publication-showcase-three .publication-card:not(:first-child) .publication-read span { font-size: 18px; }

.partner-network {
  display: grid;
  grid-template-columns: clamp(72px, 12vw, 160px) minmax(0, 1fr);
  align-items: end;
}
.partner-transformer {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 5px;
}
.partner-logo-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
  background: linear-gradient(#a8cced, #a8cced) left bottom 5px / 12.5% 1px no-repeat;
}
.partner-logo-list li {
  position: relative;
  display: grid;
  grid-template-rows: 78px auto;
  gap: 12px;
  align-items: center;
  justify-items: center;
  padding: 16px 14px 38px;
  background: linear-gradient(#a8cced, #a8cced) center bottom 6px / 1px 18px no-repeat;
  color: #102c4d;
  text-align: center;
  font-weight: 600;
}
.partner-logo-list li::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0;
  width: 11px;
  height: 11px;
  border: 2px solid #4389c6;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}
.partner-logo-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 100%;
  height: 1px;
  background: #a8cced;
}
.partner-logo-list img { width: min(100%, 190px); height: 70px; object-fit: contain; }

.footer {
  position: relative;
  isolation: isolate;
  background: linear-gradient(110deg, #0b213a 28%, #123c62);
  border-top: 1px solid #4e79a0;
}
.footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("media/power-network.svg") right bottom / auto 108% no-repeat;
  opacity: .29;
  mask-image: linear-gradient(to right, transparent 34%, #000 78%);
  pointer-events: none;
}

@media (max-width: 820px) {
  .eleven-project-showcase.project-showcase-three .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
  .project-showcase-three .case-tile:first-child,
  .project-showcase-three .case-tile:last-child { grid-column: 1 / -1; grid-row: auto; }
  .eleven-project-showcase.project-showcase-three .case-tile:first-child .case-content { min-height: 300px; }
  .publication-showcase-three .publication-grid { grid-template-columns: 1fr; }
  .publication-showcase-three .publication-card:first-child { grid-row: auto; }
  .publication-showcase-three .publication-card:nth-child(2) { padding-top: 20px; }
}
@media (max-width: 800px) {
  .eleven-intro-grid:has(.portrait-company-film) { grid-template-columns: minmax(0, 1fr); }
  .portrait-company-film { justify-self: center; }
}
@media (max-width: 650px) {
  .eleven-project-showcase.project-showcase-three .case-grid { grid-template-columns: minmax(0, 1fr); }
  .project-showcase-three .case-tile:first-child h2 { font-size: 26px; }
  .project-showcase-three .case-tile h2 { font-size: 22px; }
  .cycle-grid.service-showcase-three { grid-template-columns: 1fr; }
  .service-showcase-three .cycle-card,
  .service-showcase-three .cycle-card:last-child { min-height: 0; }
  .portrait-company-film { width: min(100%, 302px); }
  .partner-logo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    row-gap: 22px;
    background:
      linear-gradient(#a8cced, #a8cced) left bottom 5px / 25% 1px no-repeat,
      linear-gradient(#a8cced, #a8cced) left calc(50% - 16px) / 25% 1px no-repeat;
  }
  .partner-logo-list::before {
    content: "";
    position: absolute;
    top: calc(50% - 16px);
    bottom: 5px;
    left: 0;
    width: 1px;
    background: #a8cced;
  }
  .partner-logo-list li { padding-inline: 8px; }
  .partner-logo-list li:nth-child(2)::after { display: none; }
  .footer::before { opacity: .19; mask-image: linear-gradient(to right, transparent 6%, #000 100%); }
}

/* The letters sit as two sheets in one presentation folder. */
.twelve-letters.twelve-letters-inline {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(22px, 4vw, 64px);
  background: #f4f9ff;
}
.twelve-letters-inline .twelve-letter-grid {
  position: relative;
  isolation: isolate;
  gap: clamp(12px, 2vw, 24px);
  max-width: none;
  padding: 22px 20px 25px;
}
.twelve-letters-inline .twelve-letter-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14% 0 0;
  border: 1px solid #c2d9ef;
  border-radius: 6px;
  background: linear-gradient(130deg, #e2effc, #d3e5f6);
}
.twelve-letters-inline .twelve-letter {
  position: relative;
  padding: 9px;
  background: #fff;
  border-color: #c1d5e9;
  border-radius: 3px;
  box-shadow: 0 8px 18px -10px #183d6866;
  transition: transform .24s ease-out, box-shadow .24s ease-out, border-color .24s;
}
.twelve-letters-inline .twelve-letter::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 12px;
  width: 10px;
  height: 22px;
  border: 2px solid #779ab9;
  border-radius: 7px;
  pointer-events: none;
}
.twelve-letters-inline .twelve-letter img { height: clamp(170px, 19vw, 256px); }
.twelve-letters-inline .twelve-letter:hover { border-color: #6099c9; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .twelve-letters-inline .twelve-letter:hover {
    transform: translateY(-18px);
    box-shadow: 0 16px 25px -13px #183d6877;
  }
}

@media (max-width: 750px) {
  .twelve-letters.twelve-letters-inline { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .twelve-letters-inline .twelve-letter-grid { padding: 16px 9px 14px; gap: 9px; }
  .twelve-letters-inline .twelve-letter { padding: 6px; }
  .twelve-letters-inline .twelve-letter img { height: 138px; }
}

.letters-gallery-link { margin-top: 22px; }
#letters-title { scroll-margin-top: 120px; }
.letter-gallery-three h1 {
  margin: 28px 0 14px;
  font-size: clamp(34px, 5vw, 64px);
  color: #102c4d;
}
.letter-gallery-three > p { color: #506d89; }
.letter-gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 214px), 1fr));
  gap: 22px;
  max-width: 1170px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.letter-gallery-list .twelve-letter { width: 100%; height: 100%; }
.letter-gallery-list .twelve-letter img { width: 100%; height: 280px; object-fit: contain; }
.letter-gallery-three .twelve-letter-dialog { position: fixed; }
