.design-hero {
  display: flex;
  align-items: flex-start;
  min-height: 18vh;
  min-height: 18svh;
  padding-top: clamp(120px, 16vh, 180px);
  margin-bottom: calc(clamp(96px, 12vw, 180px) * -0.5);
  background: transparent;
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dark);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.62;
}

.hero-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.hero-breadcrumb a:hover,
.hero-breadcrumb a:focus-visible {
  text-decoration: underline;
}

.gallery-section {
  --card-frame: #ffffff;
  --card-shadow: 0 18px 45px rgba(19, 20, 23, 0.12);
  padding: 0;
}

body[data-theme="dark"] .gallery-section {
  --card-frame: #292a2e;
  --card-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.gallery-grid {
  --gallery-gap: clamp(36px, 5.1vw, 84px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gallery-gap);
  width: 90%;
  margin-inline: auto;
}

.gallery-grid-fit {
  --gallery-fit-offset: 150px;
  width: min(90%, calc((100vh - var(--gallery-fit-offset)) * 2 * 4 / 5 + var(--gallery-gap)));
}

.gallery-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--card-frame);
  border-radius: clamp(20px, 2.4vw, 35px);
  box-shadow: var(--card-shadow);
  transition: background-color 250ms ease, box-shadow 250ms ease;
}

.gallery-item-wide {
  grid-column: 1 / -1;
}

.gallery-team-member,
.gallery-item-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gallery-caption {
  padding: clamp(20px, 2.2vw, 28px) clamp(4px, 0.6vw, 10px) 0;
}

.gallery-caption-title {
  margin: 0 0 4px;
  color: var(--text-dark);
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 400;
}

.gallery-caption-subtitle {
  margin: 0 0 12px;
  color: var(--text-dark);
  opacity: 0.6;
  font-family: "Archivo", sans-serif;
  font-optical-sizing: auto;
  font-size: 14px;
  font-weight: 100;
  font-style: normal;
  font-variation-settings: "wdth" 105;
  line-height: 16px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.gallery-caption-text {
  color: var(--text-dark);
  opacity: 0.75;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 300;
  line-height: 1.6;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.gallery-slider {
  position: relative;
  cursor: grab;
  touch-action: pan-y;
}

.gallery-slider:active {
  cursor: grabbing;
}

.gallery-slider:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

.gallery-slider-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: inherit;
}

.gallery-slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.gallery-slider-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-slider-slide img,
.compare-slider .compare-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-slider-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.gallery-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--text-dark);
  opacity: 0.3;
  cursor: pointer;
  transition: width 200ms ease, opacity 200ms ease;
}

.gallery-slider-dot.is-active {
  width: 20px;
  opacity: 1;
}

.compare-slider {
  --compare-position: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: inherit;
  background: #0b0b0b;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}

.compare-slider--portrait {
  aspect-ratio: 7 / 9;
}

.compare-slider--landscape {
  aspect-ratio: 9 / 7;
}

.compare-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--compare-position)) 0 0);
}

.compare-range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--compare-position);
  width: 2px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transform: translateX(-50%);
}

.compare-label {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

body[data-theme="dark"] .compare-label {
  color: var(--text-dark);
}

.compare-label-before {
  left: 12px;
}

.compare-label-after {
  right: 12px;
}

.gallery-navigation {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 90%;
  margin: clamp(40px, 5vw, 72px) auto;
  color: var(--text-dark);
}

.gallery-navigation-link {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.3em;
  color: inherit;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  user-select: none;
}

.gallery-navigation-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.35em;
  border-radius: 2px;
}

.gallery-navigation-arrow {
  display: inline-block;
  font-size: 1.25em;
  font-weight: 300;
  vertical-align: -0.05em;
}

.gallery-navigation-copy {
  position: relative;
  display: inline-block;
}

.gallery-navigation-next .gallery-navigation-copy {
  text-align: right;
}

.gallery-navigation-destination {
  position: absolute;
  top: calc(100% + 0.45em);
  left: 0;
  color: inherit;
  opacity: 0;
  font-size: 0.78em;
  font-weight: 300;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.gallery-navigation-next .gallery-navigation-destination {
  right: 0;
  left: auto;
}

@media (hover: hover) {
  .gallery-navigation-link:hover .gallery-navigation-destination,
  .gallery-navigation-link:focus-visible .gallery-navigation-destination {
    opacity: 0.72;
  }
}

@media (hover: none) {
  .gallery-navigation-destination {
    opacity: 0 !important;
  }
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.25vw, 32px);
  width: 90%;
  margin: clamp(28px, 4vw, 48px) auto 0;
}

.approach-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(32px, 3.4vw, 44px) clamp(20px, 2.2vw, 26px);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: clamp(20px, 2.2vw, 32px);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  transition: background-color 250ms ease;
}

body[data-theme="dark"] .approach-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.approach-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--text-dark);
}

.approach-card-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.approach-card h3 {
  margin: 0 0 10px;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.approach-card p {
  margin: 0;
  max-width: 22ch;
  color: var(--text-dark);
  opacity: 0.72;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 300;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .approach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (pointer: coarse) and (orientation: portrait) and (max-width: 1200px) {
  .gallery-grid,
  .approach-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid-fit {
    width: 90%;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    --gallery-gap: 36px;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .gallery-navigation {
    width: 100%;
  }

  .approach-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .gallery-slider-slide,
  .gallery-slider-dot {
    transition: none;
  }

  .gallery-navigation-destination {
    transition: none !important;
  }
}

/* ds-design only: layout de formatos mistos */
.gallery-grid--ds { align-items: start; }
.gallery-grid--ds .gallery-slider-frame--tall { aspect-ratio: 2 / 3; }
