/* Language navigation and room for translated copy. */
.nav__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.nav__inner { gap: 20px; }
.nav__cta { height: auto; min-height: 38px; text-align: center; }
.language-menu { position: relative; }
.language-menu summary {
  width: 64px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  font: 500 12px/1 'Geist Mono', monospace;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary .icon { transition: transform .2s ease; }
.language-menu[open] summary .icon { transform: rotate(180deg); }
.language-menu summary:hover,
.language-menu summary:focus-visible,
.language-menu[open] summary { border-color: var(--accent); outline: none; }
.language-menu ul {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: 170px;
  max-height: calc(100dvh - 90px);
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .35);
}
.language-menu button {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 0;
  background: transparent;
  color: var(--secondary);
  text-align: left;
  cursor: pointer;
}
.language-menu button:hover,
.language-menu button:focus-visible,
.language-menu button[aria-current] { background: var(--line); color: var(--accent); outline: none; }
.btn { height: auto; min-height: 54px; text-align: center; }
.hero__actions { height: auto; }
.field label { height: auto; min-height: 23px; }
.error { height: auto; min-height: 23px; }
.form__footer .btn { height: auto; flex-shrink: 0; }
.form__footer { flex-wrap: wrap; }
.hero__title, .project__copy, .contact form, .field { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }

@media (min-width: 901px) {
  .hero__inner, .project__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__copy > p:first-child { max-width: 100%; }
  .project__media img { width: 100%; }
  .section-intro { grid-template-columns: 138.656px minmax(0, 645.297px); }
  .section-intro--wide { grid-template-columns: 138.656px minmax(0, 746px); }
  .project.project--compact { grid-template-columns: .31fr 1fr .977fr; }
  .contact__grid { grid-template-columns: minmax(0, 341fr) minmax(0, 645fr); gap: clamp(48px, 11vw, 165.336px); }
  .contact form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__main { grid-template-columns: 2.974fr repeat(3, minmax(0, 1fr)); }

  html:not([lang="en"]) .hero { height: auto; min-height: 756px; }
  html:not([lang="en"]) .stats, html:not([lang="en"]) .stats__grid { height: auto; min-height: 142px; }
  html:not([lang="en"]) :is(.work, .services, .why, .process, .team, .contact) { height: auto; min-height: 0; }
  html:not([lang="en"]) .section-intro { height: auto; min-height: 300px; padding-bottom: 72px; }
  html:not([lang="en"]) .project:nth-child(n) { height: auto; min-height: 620px; padding-block: 64px; }
  html:not([lang="en"]) .project header { height: auto; margin-bottom: 32px; }
  html:not([lang="en"]) .project__grid { padding-top: 0; }
  html:not([lang="en"]) .project.project--compact { min-height: 420px; }
  html:not([lang="en"]) :is(.service-grid, .reason-grid, .steps, .team-grid) article { height: auto; min-height: 178px; }
  html:not([lang="en"]) .team-grid article { min-height: 612px; }
  html:not([lang="en"]) :is(.services, .why, .process, .team) { padding-bottom: 72px; }
  html:not([lang="en"]) .contact__grid { height: auto; padding-bottom: 96px; }
  html:not([lang="en"]) .contact form { height: auto; }
  html:not([lang="en"]) .footer, html:not([lang="en"]) .footer__main { height: auto; }
  html:not([lang="en"]) .footer__main { padding-bottom: 64px; }
}
@media (max-width: 1200px) { .nav nav { gap: 16px; } }
@media (max-width: 1100px) { .nav nav { display: none; } }
@media (max-width: 620px) {
  .nav .brand span { display: none; }
  .nav__actions { gap: 8px; }
  .nav__cta { padding-inline: 10px; white-space: nowrap; }
}

.slider__viewport {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.slider__viewport.is-dragging { cursor: grabbing; }
.slider__slide, .lightbox__image {
  -webkit-user-drag: none;
  user-select: none;
}
.project__media:not(.slider) img { cursor: zoom-in; }
.project__media:not(.slider) img:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.lightbox__figure:not(.is-zoomed) { touch-action: pan-y; }
.lightbox__figure.is-dragging .lightbox__image { cursor: grabbing; }
.lightbox.is-single .lightbox__nav { display: none; }
