.history-hero {
  position: relative;
  min-height: clamp(540px, 75vh, 760px);
  display: flex;
  align-items: center;
  padding: clamp(7rem, 14vh, 10rem) 5% clamp(5rem, 8vh, 7rem);
  background: #f5f6f8;
  overflow: hidden;
}
.history-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #e8e8e8;
}
.history-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: end;
}
.history-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #111111;
  margin: 0;
}
.history-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.85;
  color: #777777;
  margin: 0;
}
.block-line-wrapper {
  position: relative;
  display: block;
}
.block-line {
  position: relative;
  display: block;
}
.block-revealer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
  z-index: 1;
}
.page-section-split {
  background: #f5f6f8;
  padding: clamp(5rem, 10vh, 8rem) 5% clamp(2.5rem, 5vh, 3.5rem);
}
.page-section-split__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}
.page-section-split__label {
  font-family: "Courier New", "Courier", monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #6b6560;
  margin: 0 0 1.75rem;
}
.page-section-split__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  color: #2a2520;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}
.page-section-split__right p {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.85;
  color: #4a4540;
  margin: 0 0 1.75rem;
}
.gallery-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.gallery-features li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.4;
}
.gallery-features__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.gallery-section {
  background: #f5f6f8;
  padding: 0 5% clamp(4rem, 8vh, 6.5rem);
}
.gallery-section__inner {
  max-width: 1280px;
  margin: 0 auto;
}
.gallery-mosaic {
  column-count: 3;
  column-gap: clamp(12px, 1.4vw, 18px);
}
.gallery-mosaic__item {
  position: relative;
  margin: 0 0 clamp(12px, 1.4vw, 18px);
  padding: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: #e4e7ec;
  cursor: zoom-in;
  display: block;
  width: 100%;
  break-inside: avoid;
  isolation: isolate;
  font: inherit;
  text-align: left;
}
.gallery-mosaic__item img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-mosaic__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(17, 17, 17, 0.45),
    rgba(17, 17, 17, 0) 55%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-mosaic__item::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
.gallery-mosaic__item:hover img,
.gallery-mosaic__item:focus-visible img {
  transform: scale(1.04);
}
.gallery-mosaic__item:hover::before,
.gallery-mosaic__item:focus-visible::before,
.gallery-mosaic__item:hover::after,
.gallery-mosaic__item:focus-visible::after {
  opacity: 1;
  transform: none;
}
.gallery-mosaic__item:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-mosaic__item img,
  .gallery-mosaic__item::before,
  .gallery-mosaic__item::after {
    transition: none;
  }
}
.gallery-lightbox {
  margin: 0;
  padding: 0;
  border: none;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.92);
}
.gallery-lightbox::backdrop {
  background: rgba(17, 17, 17, 0.92);
}
.gallery-lightbox__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(3.5rem, 8vh, 5rem) clamp(1rem, 4vw, 3rem);
  box-sizing: border-box;
}
.gallery-lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}
.gallery-lightbox__stage img {
  max-width: min(1200px, 96vw);
  max-height: min(85vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: fixed;
  z-index: 2;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}
.gallery-lightbox__close {
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}
.gallery-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1rem;
}
.gallery-lightbox__nav--prev {
  left: 1rem;
}
.gallery-lightbox__nav--next {
  right: 1rem;
}
.gallery-lightbox__counter {
  margin: 1rem 0 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
}
@media (max-width: 700px) {
  .gallery-lightbox__nav {
    width: 40px;
    height: 40px;
  }
  .gallery-lightbox__nav--prev {
    left: 0.5rem;
  }
  .gallery-lightbox__nav--next {
    right: 0.5rem;
  }
}
@media (max-width: 960px) {
  .gallery-mosaic {
    column-count: 2;
  }
}
@media (max-width: 700px) {
  .history-hero-inner,
  .page-section-split__inner {
    grid-template-columns: 1fr;
  }
  .gallery-mosaic {
    column-gap: 10px;
  }
  .gallery-mosaic__item {
    margin-bottom: 10px;
    border-radius: 8px;
  }
}
