html {
  scroll-padding-top: calc(var(--i61-header-height, 76px) + 20px);
}

body {
  padding-top: var(--i61-header-height, 76px);
}

.site-header {
  border-bottom: 0;
  line-height: 23.8px;
}

.site-header .logo img {
  height: auto;
}

.language-switcher {
  gap: 8px;
}

.language-switcher > * {
  display: flex;
  border: 1px solid transparent;
  border-radius: 2px;
}

.language-switcher [aria-current='page'] {
  border-color: var(--orange);
}

.language-switcher img {
  width: 22px;
  height: auto;
  border-radius: 2px;
}

@media (max-width: 420px) {
  .language-switcher {
    gap: 4px;
    margin-right: 8px;
  }
}

.i61-footer .footer-logo {
  width: 180px;
  height: auto;
}

.hero-portrait > img {
  object-position: 42% center;
}

.opening-screen {
  position: relative;
  background: #14130f;
}

.opening-screen img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.38;
  max-height: 70svh;
  object-fit: cover;
  object-position: center 22%;
}

.opening-tag,
.image-tag {
  position: absolute;
  z-index: 1;
  background: #080a0ae8;
  color: var(--white);
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 12px;
}

.opening-tag {
  bottom: clamp(12px, 2.1vw, 28px);
  left: 5%;
}

.opening-bar {
  padding: 17px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  background: #161916;
}

.opening-bar h2 {
  font-size: 19px;
  line-height: 1.4;
}

.opening-bar h2 span {
  display: inline-block;
  color: var(--orange);
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 600;
  margin-inline-start: 10px;
}

.opening-bar p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

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

.evidence-item .story-cover {
  aspect-ratio: 16 / 9;
  text-align: left;
}

.evidence-item .story-cover img {
  transition: filter .2s ease;
}

.evidence-item .story-cover:hover img {
  filter: brightness(1.1);
}

.image-tag {
  right: 12px;
  bottom: 12px;
}

.image-tag span {
  margin-left: 7px;
}

.evidence-item .story-copy {
  padding-top: 22px;
  max-width: 56ch;
}

.evidence-item:last-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.evidence-item:last-child .story-copy {
  padding-top: 0;
}

.story-copy > p:last-child {
  margin-bottom: 0;
}

.portrait-cover {
  aspect-ratio: 2.1;
}

.portrait-caption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 13px;
}

.gallery-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface);
}

.gallery-slide figcaption,
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.gallery-controls {
  margin-block: 20px;
}

.gallery-controls button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  padding: 9px 16px;
  min-height: 44px;
  font-size: 13px;
}

.gallery-controls button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.gallery-controls p {
  font-size: 12px;
}

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

.gallery-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  opacity: .68;
}

.gallery-thumbs button[aria-pressed='true'] {
  opacity: 1;
  border-color: var(--orange);
}

.gallery-thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.scope-phase-image img,
.case-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.1;
  object-fit: cover;
}

.case-preview img {
  object-position: center 55%;
}

.contact-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.45;
  object-fit: cover;
}

.contact-portrait figcaption {
  color: var(--muted);
  font-size: 12px;
  margin-top: 9px;
}

#reference-dialog {
  width: min(900px, calc(100% - 32px));
  margin: auto;
}

body:has(#reference-dialog[open]) {
  overflow: hidden;
}

#dialog-media img {
  width: 100%;
  max-height: 68dvh;
  object-fit: contain;
}

@media (max-width: 800px) {
  .evidence-grid { gap: 45px 28px; }
  .contact-portrait { max-width: 540px; margin-top: 34px; }
}

@media (max-width: 560px) {
  .opening-screen img { aspect-ratio: 1.55; object-position: 70% 38%; }
  .opening-bar { flex-wrap: wrap; padding-inline: 24px; }
  .opening-bar h2 { font-size: 17px; }
  .opening-bar h2 span { margin-inline-start: 6px; }
  .hero h1 { font-size: clamp(34px, 9vw, 43px); }
  .hero-actions .main-cta-button-final { width: 100%; }
  .evidence-grid { grid-template-columns: 1fr; gap: 40px; }
  .evidence-item:last-child { display: block; padding-top: 24px; }
  .evidence-item:last-child .story-copy { padding-top: 22px; }
  .portrait-cover { aspect-ratio: 16 / 9; }
  .gallery-controls p { display: none; }
  .gallery-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .contact-inner .main-cta-button-final { width: 100%; }
}
