:root {
  --base: #151c17;
  --gold: #cfad64;
  --bright: #e5c583;
  --gold-dim: #b09a70;
  --warm: #c2a778;
  --shadow: rgba(0, 0, 0, 0.38);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--base);
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked {
  overflow: hidden;
}
a,
button {
  font: inherit;
  color: inherit;
}
a {
  text-decoration: none;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 1px solid var(--bright);
  outline-offset: 6px;
}
::selection {
  background: var(--gold);
  color: #1b2118;
}
/* Continuous color field, no grained overlay, horizontal separators, or stacked site sections. */
.atmosphere {
  position: fixed;
  inset: -15%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 45% 39% at 86% 7%,
      rgba(88, 64, 39, 0.28),
      transparent 92%
    ),
    radial-gradient(
      ellipse 52% 33% at 6% 52%,
      rgba(53, 72, 47, 0.39),
      transparent 96%
    ),
    radial-gradient(
      ellipse 45% 42% at 84% 87%,
      rgba(78, 56, 38, 0.25),
      transparent 94%
    ),
    linear-gradient(149deg, #121b17 5%, #20261e 43%, #24221b 71%, #171d17 100%);
  filter: blur(55px);
}
.atmosphere:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 38% 45% at 45% 62%,
    transparent 0%,
    rgba(6, 12, 8, 0.15) 95%
  );
}
.site {
  max-width: 1640px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.top {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 6.8% 0;
}
.top .mark {
  font:
    italic 26px/1 Georgia,
    serif;
  letter-spacing: -0.09em;
  color: var(--gold);
}
.top button {
  border: 0;
  background: transparent;
  padding: 6px 0;
  font:
    12px/1 Arial,
    Helvetica,
    sans-serif;
  color: var(--gold);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.top button:hover {
  color: var(--bright);
}
.mono {
  font:
    11px/1.85 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: 0.01em;
  color: var(--gold-dim);
}
.hero {
  height: 890px;
  position: relative;
}
.hero .prelude {
  position: absolute;
  left: 8.5%;
  top: 21%;
  white-space: pre-line;
}
.hero h1 {
  position: absolute;
  left: 7.4%;
  top: 29%;
  margin: 0;
  font:
    normal clamp(110px, 18vw, 286px)/0.85 Georgia,
    serif;
  letter-spacing: -0.09em;
  color: var(--gold);
  z-index: 3;
  text-shadow: 0 15px 25px rgba(8, 12, 8, 0.12);
}
.pin {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(226, 185, 110, 0.65);
  box-shadow: 0 1px 3px #0006;
  z-index: 1;
  pointer-events: none;
}
.hero .pin {
  top: 40%;
  right: 9.3%;
}
figure {
  margin: 0;
}
.open-photo {
  cursor: zoom-in;
}
.photo-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #3c4433;
  box-shadow: 0 18px 66px rgba(0, 0, 0, 0.3);
}
.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(0.95) brightness(0.88);
  transition:
    filter 0.3s ease,
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.open-photo:hover .photo-frame img {
  filter: saturate(0.92) contrast(0.97) brightness(0.97);
  transform: scale(1.018);
}
.hero .image-0 {
  position: absolute;
  left: auto;
  top: 41%;
  right: 9%;
  height: 455px;
  width: 40.5%;
  z-index: 2;
}
.hero .image-0 img {
  object-position: 45% center;
}
.hero .image-0 figcaption {
  right: 0;
  text-align: right;
  position: absolute;
  top: calc(100% + 13px);
}
.hero .from {
  position: absolute;
  left: 8.6%;
  bottom: 14%;
  font:
    11px/1.9 Arial,
    Helvetica,
    sans-serif;
  color: var(--gold-dim);
}
.hero .from small {
  opacity: 0.85;
}
/* All photographs are straight, but composed like a collection pinned without a strict grid. */
.archive {
  height: 2220px;
  position: relative;
}
.project-name {
  position: absolute;
  top: 2%;
  left: 13%;
  z-index: 3;
}
.project-name h2 {
  font:
    normal clamp(65px, 9vw, 142px)/1 Georgia,
    serif;
  letter-spacing: -0.065em;
  margin: 0;
}
.project-name span {
  display: block;
  margin-top: 5px;
  margin-left: 4px;
}
.archive figure {
  position: absolute;
}
.archive figure figcaption {
  position: absolute;
  top: calc(100% + 13px);
  left: 0;
  white-space: nowrap;
}
.archive .image-1 {
  top: 18%;
  left: 7.5%;
  width: 31%;
  height: 420px;
}
.archive .image-2 {
  top: 28%;
  right: 9%;
  width: 37%;
  height: 440px;
}
.archive .image-3 {
  top: 57%;
  left: 16%;
  width: 32%;
  height: 395px;
}
.archive .image-4 {
  top: 74%;
  right: 8%;
  width: 37%;
  height: 420px;
}
.archive .image-1 .pin {
  top: -3px;
  left: 40%;
}
.archive .image-2 .pin {
  top: -3px;
  left: 62%;
}
.archive .image-3 .pin {
  top: -3px;
  left: 46%;
}
.archive .image-4 .pin {
  top: -3px;
  left: 56%;
}
.archive-note {
  position: absolute;
  white-space: pre-line;
}
.note-a {
  top: 21%;
  left: 48%;
  font:
    italic 20px/1.4 Georgia,
    serif;
  color: #c5aa77;
}
.note-b {
  top: 48%;
  left: 10%;
  font:
    11px/1.8 Arial,
    Helvetica,
    sans-serif;
  color: var(--gold-dim);
}
.note-c {
  top: 68%;
  right: 16%;
  font:
    italic 22px Georgia,
    serif;
  color: #aa996e;
}
.soft-number {
  position: absolute;
  z-index: -1;
  top: 41%;
  right: 4%;
  font:
    normal clamp(215px, 38vw, 600px) Georgia,
    serif;
  color: rgba(187, 149, 89, 0.052);
  letter-spacing: -0.1em;
  pointer-events: none;
}
.contact {
  position: relative;
  min-height: 650px;
  padding: 135px 9% 100px;
}
.contact h2 {
  font:
    normal clamp(55px, 9vw, 130px)/0.9 Georgia,
    serif;
  letter-spacing: -0.07em;
  margin: 0 0 55px 7%;
  color: var(--gold);
}
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
  margin-left: 21%;
}
.contact-links a,
.contact-links button {
  display: inline-block;
  padding: 8px 0;
  background: none;
  border: 0;
  text-align: left;
  font:
    italic clamp(25px, 3.9vw, 47px)/1.1 Georgia,
    serif;
  color: #d3b16d;
  transition:
    color 0.22s,
    transform 0.22s;
}
.contact-links a:hover,
.contact-links button:hover {
  color: #f4d593;
  transform: translateX(7px);
}
.contact-links span {
  font:
    12px Arial,
    Helvetica,
    sans-serif;
  font-style: normal;
  color: var(--gold-dim);
  margin-left: 12px;
}
.contact .foot {
  position: absolute;
  right: 9%;
  bottom: 68px;
  text-align: right;
}
.contact .foot span {
  opacity: 0.7;
}
.mini-feedback {
  font:
    11px/1.6 Arial,
    Helvetica,
    sans-serif;
  color: #dbbd83;
  min-height: 16px;
  margin: 21px 0 0 21%;
}
.index-overlay,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.index-overlay.is-open,
.lightbox.is-open {
  display: flex;
}
.index-overlay {
  padding: 14vh 11vw;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  background: rgba(18, 27, 20, 0.97);
  backdrop-filter: blur(22px);
}
.index-overlay button {
  position: absolute;
  right: 7%;
  top: 34px;
  border: 0;
  background: none;
  font:
    12px Arial,
    Helvetica,
    sans-serif;
}
.index-overlay a {
  font:
    normal clamp(38px, 6.5vw, 89px) Georgia,
    serif;
  letter-spacing: -0.06em;
  margin: 10px 0;
  transition: color 0.2s;
}
.index-overlay a:hover {
  color: #f0d397;
}
.index-overlay .mono {
  margin-top: 34px;
}
.lightbox {
  background: rgba(13, 18, 14, 0.96);
  backdrop-filter: blur(18px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 70px 85px 50px;
}
.lightbox img {
  display: block;
  max-height: 73vh;
  max-width: min(1050px, calc(100vw - 180px));
  width: auto;
  object-fit: contain;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}
.lightbox .details {
  font:
    11px/1.8 Arial,
    Helvetica,
    sans-serif;
  color: #cfb177;
  text-align: center;
  margin-top: 20px;
}
.lightbox .close {
  position: absolute;
  top: 28px;
  right: 6%;
  border: 0;
  background: transparent;
  font:
    12px Arial,
    Helvetica,
    sans-serif;
}
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font:
    clamp(35px, 4vw, 60px) Georgia,
    serif;
  color: #cfb177;
}
.lightbox .prev {
  left: 3.5%;
}
.lightbox .next {
  right: 3.5%;
}
@media (max-width: 750px) {
  .top {
    padding: 23px 7% 0;
  }
  .top .mark {
    font-size: 24px;
  }
  .mono {
    font-size: 10px;
  }
  .hero {
    height: 780px;
  }
  .hero .prelude {
    left: 8%;
    top: 15%;
  }
  .hero h1 {
    top: 23%;
    left: 6%;
    font-size: clamp(88px, 23vw, 174px);
    letter-spacing: -0.095em;
  }
  .hero .image-0 {
    top: 39%;
    right: 9%;
    width: 73%;
    height: 330px;
  }
  .hero .pin {
    top: 38.6%;
    right: 9.5%;
  }
  .hero .from {
    bottom: 7%;
    left: 8%;
    font-size: 10px;
  }
  .archive {
    height: 2110px;
  }
  .project-name {
    left: 9%;
    top: 2%;
  }
  .project-name h2 {
    font-size: clamp(58px, 13vw, 100px);
  }
  .archive .image-1 {
    top: 15%;
    left: 7%;
    width: 68%;
    height: 315px;
  }
  .archive .image-2 {
    top: 34%;
    right: 6%;
    width: 66%;
    height: 310px;
  }
  .archive .image-3 {
    top: 56%;
    left: 8%;
    width: 58%;
    height: 315px;
  }
  .archive .image-4 {
    top: 77%;
    right: 8%;
    width: 70%;
    height: 335px;
  }
  .note-a {
    top: 31%;
    left: 12%;
    font-size: 16px;
  }
  .note-b {
    top: 52%;
    left: 9%;
    font-size: 10px;
  }
  .note-c {
    top: 75%;
    right: 17%;
    font-size: 16px;
  }
  .soft-number {
    top: 44%;
    right: -7%;
    font-size: 250px;
  }
  .archive figure figcaption {
    font-size: 10px;
  }
  .contact {
    min-height: 590px;
    padding: 100px 8% 130px;
  }
  .contact h2 {
    font-size: clamp(60px, 14vw, 98px);
    margin-left: 0;
    margin-bottom: 45px;
  }
  .contact-links {
    margin-left: 13%;
    gap: 13px;
  }
  .contact-links a,
  .contact-links button {
    font-size: clamp(29px, 7vw, 45px);
  }
  .contact-links span {
    font-size: 10px;
    margin-left: 7px;
  }
  .contact .foot {
    right: 8%;
    bottom: 47px;
  }
  .mini-feedback {
    margin-left: 13%;
  }
  .lightbox {
    padding: 75px 44px 40px;
  }
  .lightbox img {
    max-width: 100%;
    max-height: 64vh;
  }
  .lightbox .prev {
    left: 7px;
  }
  .lightbox .next {
    right: 7px;
  }
}
@media (max-width: 390px) {
  .hero {
    height: 720px;
  }
  .hero .image-0 {
    height: 290px;
  }
  .archive {
    height: 1940px;
  }
  .archive .image-1,
  .archive .image-2,
  .archive .image-3 {
    height: 275px;
  }
  .archive .image-4 {
    height: 288px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Original Barlei brand marks. */
.top .mark {
  display: inline-flex;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
}
.top .mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hero .hero-wordmark {
  position: absolute;
  left: 7.2%;
  top: 27%;
  width: min(69%, 900px);
  height: auto;
  z-index: 3;
  filter: drop-shadow(0 10px 24px rgba(8, 12, 8, 0.11));
  pointer-events: none;
}
.contact .brand-signature {
  display: block;
  position: absolute;
  left: 9%;
  bottom: 66px;
  width: 210px;
  height: auto;
  opacity: 0.8;
}
@media (max-width: 750px) {
  .top .mark {
    width: 30px;
    height: 30px;
  }
  .hero .hero-wordmark {
    left: 6%;
    top: 25%;
    width: 91%;
    max-width: none;
  }
  .contact .brand-signature {
    left: 8%;
    bottom: 55px;
    width: 135px;
    opacity: 0.72;
  }
}
@media (max-width: 390px) {
  .hero .hero-wordmark {
    top: 24%;
  }
}

/* Two-line navigation mark: the short upper stroke grows on hover. */
.top .barlei-menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 38px;
  height: 36px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--gold);
}
.top .barlei-menu-icon .barlei-menu-line {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: width 0.24s ease;
}
.top .barlei-menu-icon .barlei-menu-line-top {
  width: 17px;
}
.top .barlei-menu-icon .barlei-menu-line-bottom {
  width: 27px;
}
.top .barlei-menu-icon:hover .barlei-menu-line-top,
.top .barlei-menu-icon:focus-visible .barlei-menu-line-top {
  width: 27px;
}

/* Smooth overlay entrance/exit: keep dialogs mounted so close can animate. */
.index-overlay,
.lightbox {
  display: flex;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.38s ease,
    visibility 0.38s;
}
.index-overlay.is-open,
.lightbox.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.index-overlay > a,
.index-overlay > .mono {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.4s ease,
    transform 0.48s cubic-bezier(0.22, 0.75, 0.24, 1);
}
.index-overlay.is-open > a,
.index-overlay.is-open > .mono {
  opacity: 1;
  transform: translateY(0);
}
.index-overlay.is-open > a:nth-of-type(2) {
  transition-delay: 0.05s;
}
.index-overlay.is-open > a:nth-of-type(3) {
  transition-delay: 0.1s;
}

/* Minimal X: subtle enlarging on hover, keyboard focus and touch press. */
#closeIndex,
#closeViewer {
  position: absolute;
  z-index: 5;
  top: 25px;
  right: 6%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font:
    300 36px/1 Arial,
    Helvetica,
    sans-serif;
  transform: scale(1);
  transform-origin: center;
  transition:
    transform 0.32s cubic-bezier(0.2, 0.85, 0.25, 1),
    color 0.25s ease;
}
#closeIndex:hover,
#closeViewer:hover,
#closeIndex:focus-visible,
#closeViewer:focus-visible {
  transform: scale(1.24);
  color: var(--bright);
}
#closeIndex:active,
#closeViewer:active {
  transform: scale(1.08);
}

/* A real three-frame sliding image track; the center slide is the selected photo. */
.lightbox .viewer-stage {
  width: min(1050px, calc(100vw - 180px));
  height: min(73vh, 760px);
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(25px) scale(0.88);
  transition:
    opacity 0.48s ease,
    transform 0.53s cubic-bezier(0.18, 0.82, 0.22, 1);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.lightbox.is-open .viewer-stage {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.lightbox .viewer-stage.is-dragging {
  cursor: grabbing;
}
.lightbox .viewer-track {
  width: 300%;
  height: 100%;
  display: flex;
  transform: translate3d(-33.333333%, 0, 0);
  transition: transform 0.48s cubic-bezier(0.22, 0.72, 0.16, 1);
  will-change: transform;
}
.lightbox .viewer-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 33.333333%;
  width: 33.333333%;
  height: 100%;
  min-width: 0;
}
.lightbox .viewer-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox .details {
  transition:
    opacity 0.25s ease,
    transform 0.32s ease;
  opacity: 0;
  transform: translateY(7px);
}
.lightbox.is-open .details {
  opacity: 1;
  transform: translateY(0);
}
.lightbox .details.is-changing {
  opacity: 0.4;
  transform: translateY(5px);
}
.lightbox .prev,
.lightbox .next {
  transition:
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.26s ease;
}
.lightbox .prev:hover {
  color: var(--bright);
  transform: translateY(-50%) translateX(-5px);
}
.lightbox .next:hover {
  color: var(--bright);
  transform: translateY(-50%) translateX(5px);
}
@media (max-width: 750px) {
  #closeIndex,
  #closeViewer {
    top: 17px;
    right: 5%;
    width: 42px;
    height: 42px;
    font-size: 34px;
  }
  .lightbox .viewer-stage {
    width: calc(100vw - 88px);
    height: min(68vh, 720px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .index-overlay,
  .lightbox,
  .index-overlay > a,
  .index-overlay > .mono,
  .lightbox .viewer-stage,
  .lightbox .details,
  .lightbox .viewer-track,
  #closeIndex,
  #closeViewer {
    transition: none !important;
  }
}

/* Accessible controls and progressive enhancement. */
[hidden] {
  display: none !important;
}
.sr-only,
.hero h1.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--base);
  color: var(--bright);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--bright);
  outline-offset: 5px;
}
.open-photo.photo-frame {
  display: block;
}
.open-photo:hover img {
  filter: saturate(0.92) contrast(0.97) brightness(0.97);
  transform: scale(1.018);
}
.index-overlay nav {
  display: flex;
  flex-direction: column;
}
.top .barlei-menu-icon,
.lightbox .prev,
.lightbox .next {
  min-width: 44px;
  min-height: 44px;
}
@media (forced-colors: active) {
  .barlei-menu-line {
    background: ButtonText !important;
  }
  .open-photo {
    outline: 1px solid LinkText;
  }
}

.error-page {
  max-width: 50rem;
  margin: 15vh auto;
  padding: 24px;
}
.error-page a {
  text-decoration: underline;
}

.contact .foot span {
  opacity: 1;
}

/* Show focus targets immediately; delay hiding only during the exit fade. */
.index-overlay,
.lightbox {
  transition:
    opacity 0.38s ease,
    visibility 0s linear 0.38s;
}
.index-overlay.is-open,
.lightbox.is-open {
  transition:
    opacity 0.38s ease,
    visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .index-overlay,
  .lightbox {
    transition: none;
  }
}
