:root {
  --bvi-green: #00a865;
  --ink: #1f2421;
  --paper: #ffffff;
  --reveal: 0;
  --detail: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #e7ece5;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

body.site-locked {
  overflow: hidden;
}

body.site-locked > .site-header,
body.site-locked > main {
  visibility: hidden;
}

.access-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(115deg, rgba(10, 28, 18, 0.84), rgba(13, 29, 19, 0.48)),
    url("assets/overview-closed.jpg") center / cover no-repeat;
}

.access-gate[hidden] {
  display: none;
}

.access-gate__card {
  width: min(520px, 100%);
  padding: clamp(32px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 90px rgba(4, 18, 10, 0.38);
  backdrop-filter: blur(18px);
}

.access-gate__brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 42px;
  color: var(--bvi-green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.access-gate .brand-box::after {
  background: rgba(255, 255, 255, 0.96);
}

.access-gate .eyebrow {
  color: var(--bvi-green);
}

.access-gate h1 {
  margin-bottom: 34px;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 62px);
}

.access-form label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 700;
}

.access-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.access-form input {
  min-width: 0;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #b9c2bc;
  border-right: 0;
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.access-form input:focus {
  border-color: var(--bvi-green);
  box-shadow: inset 0 0 0 1px var(--bvi-green);
}

.access-form button {
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  color: #fff;
  background: var(--bvi-green);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease;
}

.access-form button:hover,
.access-form button:focus-visible {
  background: #008d55;
}

.access-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #b22d24;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(24px, 4vw, 72px);
  border-bottom: 1px solid rgba(31, 36, 33, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: var(--bvi-green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.brand-box {
  position: relative;
  padding: 9px 5px 6px 8px;
  border: 2px solid currentColor;
  line-height: 1;
}

.brand-box::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  right: -18px;
  bottom: -2px;
  background: var(--paper);
}

.brand-eu {
  margin-left: 7px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3vw, 52px);
  font-size: 14px;
}

.main-nav a {
  padding: 10px 0;
  transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--bvi-green);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.contact-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 27px;
  color: #fff;
  background: var(--bvi-green);
  font-weight: 700;
  transition: background 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  background: #008d55;
}

.language::after {
  content: "⌄";
  margin-left: 7px;
}

.reveal-track {
  height: 100vh;
}

.project-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  background: #243226;
}

.image-stage,
.project-visual,
.project-image,
.top-shade {
  position: absolute;
  inset: 0;
}

.image-stage {
  top: 72px;
  overflow: hidden;
  background: #d9e2d3;
}

.project-visual {
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(calc(1.025 - var(--reveal) * 0.025));
  filter: saturate(0.92) contrast(1.02);
  will-change: opacity, transform;
  transition: opacity 1.15s cubic-bezier(0.22, 0.72, 0.2, 1),
    transform 1.4s cubic-bezier(0.22, 0.72, 0.2, 1);
}

.project-image--closed {
  opacity: calc(1 - var(--reveal));
}

.project-image--open {
  opacity: var(--reveal);
}

.top-shade {
  top: 72px;
  height: 45%;
  background: linear-gradient(to bottom, rgba(11, 25, 15, 0.38), transparent);
  pointer-events: none;
}

.project-heading {
  position: absolute;
  z-index: 2;
  top: clamp(106px, 14vh, 150px);
  left: clamp(24px, 5vw, 88px);
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.eyebrow,
.step-label {
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: #b8ffd9;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.reveal-copy {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 4vw, 70px);
  bottom: clamp(136px, 16vh, 174px);
  width: min(350px, calc(100vw - 48px));
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 60px rgba(25, 45, 30, 0.2);
  backdrop-filter: blur(10px);
}

.step-label {
  color: var(--bvi-green);
}

.step-title {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 5vw, 88px);
  bottom: clamp(38px, 6vh, 72px);
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: calc(1 - min(1, var(--reveal) * 2));
}

.scroll-line {
  position: relative;
  width: 44px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.scroll-line i {
  position: absolute;
  inset: -1px auto auto 0;
  width: 15px;
  height: 3px;
  background: var(--bvi-green);
  animation: travel 1.8s ease-in-out infinite;
}

.reveal-progress {
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
}

.reveal-progress span {
  display: block;
  width: calc(var(--reveal) * 100%);
  height: 100%;
  background: var(--bvi-green);
}

.unit-hotspot {
  position: absolute;
  z-index: 6;
  top: calc(59vh - 72px);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) translateY(10px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.unit-hotspot--brewery {
  left: 74.4%;
  top: 50.7%;
}

.unit-hotspot--woodworking {
  left: 87.4%;
  top: 51.1%;
}

.overview-open .unit-hotspot {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) translateY(0);
}

.unit-hotspot:hover,
.unit-hotspot:focus-visible {
  background: transparent;
}

.unit-hotspot:focus-visible {
  outline: 2px solid var(--bvi-green);
  outline-offset: 3px;
}

.hotspot-dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 9px 24px rgba(0, 69, 39, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.unit-hotspot:hover .hotspot-dot,
.unit-hotspot:focus-visible .hotspot-dot {
  transform: scale(1.08);
  box-shadow: 0 11px 28px rgba(0, 69, 39, 0.36);
}

.hotspot-dot::before {
  content: "+";
  color: var(--bvi-green);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.unit-hotspot > span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.atmosphere-strip {
  position: absolute;
  z-index: 8;
  inset: auto 0 0;
  height: 112px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: stretch;
  color: #fff;
  background: rgba(19, 29, 22, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 420ms ease 180ms, transform 540ms cubic-bezier(0.22, 0.72, 0.2, 1) 180ms;
}

.overview-open .atmosphere-strip {
  opacity: 1;
  transform: translateY(0);
}

.atmosphere-strip__label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.atmosphere-strip__label span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.atmosphere-strip__label small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.atmosphere-strip__rail {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 10px 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--bvi-green) rgba(255, 255, 255, 0.12);
}

.atmosphere-thumb {
  flex: 0 0 130px;
  height: 92px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #17201a;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.78;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.atmosphere-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.atmosphere-thumb:hover,
.atmosphere-thumb:focus-visible {
  opacity: 1;
  border-color: var(--bvi-green);
  transform: translateY(-2px);
}

.gallery-modal {
  width: min(960px, calc(100vw - 48px));
  height: min(720px, calc(100vh - 48px));
  margin: auto;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: #fff;
  background: #101512;
  box-shadow: 0 34px 100px rgba(7, 18, 11, 0.54);
}

.gallery-modal[open] {
  animation: modal-in 380ms cubic-bezier(0.22, 0.72, 0.2, 1) both;
}

.gallery-modal::backdrop {
  background: rgba(8, 15, 10, 0.76);
  backdrop-filter: blur(8px);
  animation: backdrop-in 320ms ease both;
}

.gallery-modal__surface {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
}

.gallery-modal__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.gallery-modal figcaption {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  padding: 9px 13px;
  color: #fff;
  background: rgba(12, 18, 14, 0.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.gallery-modal__close {
  top: 16px;
  right: 16px;
}

.gallery-modal__nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 18, 14, 0.64);
  font: inherit;
  font-size: 22px;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.gallery-modal__nav:hover,
.gallery-modal__nav:focus-visible {
  border-color: var(--bvi-green);
  background: rgba(0, 168, 101, 0.88);
  transform: translateY(-50%) scale(1.06);
}

.gallery-modal__nav--previous {
  left: 16px;
}

.gallery-modal__nav--next {
  right: 16px;
}

.unit-modal {
  width: 85vw;
  max-width: 1600px;
  height: 86vh;
  max-height: 980px;
  margin: auto;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: #fff;
  background: #252c27;
  box-shadow: 0 34px 100px rgba(7, 18, 11, 0.48);
  --detail: 0;
}

.unit-modal[open] {
  animation: modal-in 440ms cubic-bezier(0.22, 0.72, 0.2, 1) both;
}

.unit-modal::backdrop {
  background: rgba(11, 20, 14, 0.68);
  backdrop-filter: blur(8px);
  animation: backdrop-in 360ms ease both;
}

.unit-modal__surface,
.unit-modal__scroll {
  width: 100%;
  height: 100%;
}

.unit-modal__surface {
  position: relative;
}

.unit-modal__scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--bvi-green) rgba(255, 255, 255, 0.18);
}

.detail-track {
  height: 220%;
  background: #252c27;
}

.detail-stage {
  position: sticky;
  top: 0;
  height: 45.4545%;
  overflow: hidden;
  background: #252c27;
}

.detail-image,
.detail-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-image {
  object-fit: cover;
  object-position: center;
  will-change: opacity, transform;
}

.detail-image--high {
  opacity: calc(1 - var(--detail));
  transform: scale(calc(1 + var(--detail) * 0.035));
}

.detail-image--low {
  opacity: var(--detail);
  transform: scale(calc(0.97 + var(--detail) * 0.03));
}

.detail-shade {
  background: linear-gradient(110deg, rgba(10, 23, 15, 0.52), transparent 50%);
  pointer-events: none;
}

.detail-heading {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 5vw, 88px);
  bottom: clamp(40px, 7vh, 82px);
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}

.detail-heading h2 {
  margin: 0;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.detail-heading > p:last-child {
  margin: 14px 0 0;
  font-size: 16px;
}

.detail-scroll-cue {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 5vw, 88px);
  bottom: clamp(40px, 7vh, 82px);
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  opacity: calc(1 - min(1, var(--detail) * 2.6));
}

.unit-gallery {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 18px;
  max-width: calc(100% - 40px);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  color: #fff;
  background: rgba(13, 21, 16, 0.74);
  box-shadow: 0 16px 40px rgba(6, 16, 10, 0.28);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.unit-gallery__label {
  padding-inline: 5px 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.unit-gallery__rail {
  display: flex;
  gap: 7px;
}

.unit-gallery__thumb {
  width: 92px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 2px;
  background: #17201a;
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.unit-gallery__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.unit-gallery__thumb:hover,
.unit-gallery__thumb:focus-visible {
  opacity: 1;
  border-color: var(--bvi-green);
  transform: translateY(-3px);
}

.modal-close {
  position: absolute;
  z-index: 7;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: #fff;
  background: var(--bvi-green);
  transform: rotate(4deg);
}

@keyframes travel {
  50% { transform: translateX(29px); }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 680px), (max-width: 900px) and (max-height: 550px) and (orientation: landscape) {
  .access-gate {
    padding: 14px;
  }

  .access-gate__card {
    padding: 30px 24px;
  }

  .access-gate__brand {
    margin-bottom: 30px;
  }

  .access-form__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .access-form input {
    border-right: 1px solid #b9c2bc;
  }

  .site-header {
    height: 64px;
    padding-inline: 18px;
  }

  .reveal-track,
  .project-stage {
    height: 100dvh;
  }

  .project-stage {
    min-height: 0;
  }

  .contact-link {
    min-height: 38px;
    padding-inline: 18px;
  }

  .language {
    display: none;
  }

  .image-stage,
  .top-shade {
    top: 64px;
  }

  .image-stage {
    bottom: 0;
    display: grid;
    place-items: center;
    background: #cfd8cc;
  }

  .project-visual {
    position: relative;
    inset: auto;
    width: min(100%, calc((100dvh - 64px) * 1.7777778));
    max-height: 100%;
    aspect-ratio: 16 / 9;
  }

  .project-image {
    object-fit: contain;
  }

  .unit-hotspot {
    width: 44px;
    height: 44px;
    min-height: 44px;
    display: block;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: 12px;
    line-height: 1.15;
  }

  .hotspot-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 16px rgba(0, 69, 39, 0.24);
  }

  .hotspot-dot::before {
    font-size: 17px;
  }

  .unit-hotspot:hover .hotspot-dot,
  .unit-hotspot:focus-visible .hotspot-dot {
    transform: translate(-50%, -50%) scale(1.08);
  }

  .unit-hotspot--brewery {
    left: 74.4%;
    top: 50.7%;
  }

  .unit-hotspot--woodworking {
    right: auto;
    left: 87.4%;
    top: 51.1%;
  }

  .unit-modal {
    width: calc(100vw - 24px);
    height: 88vh;
  }

  .atmosphere-strip {
    height: 92px;
    grid-template-columns: 1fr;
  }

  .atmosphere-strip__label {
    display: none;
  }

  .atmosphere-strip__rail {
    padding: 8px 12px;
  }

  .atmosphere-thumb {
    flex-basis: 108px;
    height: 74px;
  }

  .gallery-modal {
    width: calc(100vw - 24px);
    height: min(720px, calc(100vh - 24px));
  }

  .gallery-modal__nav {
    width: 42px;
    height: 42px;
  }

  .gallery-modal__nav--previous {
    left: 10px;
  }

  .gallery-modal__nav--next {
    right: 10px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .detail-heading {
    left: 20px;
    bottom: 94px;
  }

  .detail-heading h2 {
    max-width: calc(100vw - 72px);
    font-size: clamp(40px, 12vw, 58px);
  }

  .detail-image {
    object-fit: contain;
  }

  .detail-scroll-cue {
    display: none;
  }

  .unit-gallery {
    bottom: 12px;
    gap: 0;
    padding: 7px;
  }

  .unit-gallery__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .unit-gallery__rail {
    gap: 6px;
  }

  .unit-gallery__thumb {
    width: 72px;
    height: 48px;
  }

  .project-heading {
    top: 94px;
  }

  .reveal-copy {
    left: 18px;
    right: 18px;
    bottom: 110px;
    width: auto;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 900px) and (max-height: 550px) and (orientation: landscape) {
  .project-heading,
  .reveal-copy {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-line i {
    animation: none;
  }

  .project-image {
    transition: none;
  }

  .unit-modal[open],
  .unit-modal::backdrop,
  .gallery-modal[open],
  .gallery-modal::backdrop {
    animation: none;
  }
}
