:root {
  --ink: #080808;
  --muted: #707070;
  --line: #e8e8e8;
  --paper: #ffffff;
  --soft: #f6f6f4;
  --alert: #9a1f1f;
  --page-x: clamp(18px, 4vw, 70px);
  --home-x: clamp(10px, 2vw, 28px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.is-locked {
  min-height: 100vh;
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background: var(--paper);
}

.gate-form {
  width: min(100%, 420px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px);
  color: var(--ink);
}

.brand-name {
  display: inline-block;
  min-width: 82px;
  font-size: clamp(28px, 3.1vw, 46px);
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(42px, 5vw, 64px);
  height: clamp(58px, 7vw, 86px);
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gate-brand {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(36px, 7vw, 72px);
}

.gate-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.gate-row {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--ink);
}

.gate-row input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 0;
  background: transparent;
  color: var(--ink);
}

.gate-row button {
  border: 0;
  padding: 14px 0 14px 28px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
}

.gate-error {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--alert);
  font-size: 13px;
}

.site {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 24px var(--page-x) 18px;
  background: rgba(255, 255, 255, 0.94);
}

.site-brand {
  justify-self: center;
}

.site-brand .brand-name {
  min-width: 74px;
  font-size: clamp(26px, 3vw, 41px);
}

.site-brand .brand-mark {
  width: clamp(36px, 4vw, 52px);
  height: clamp(50px, 5.6vw, 70px);
}

.primary-nav,
.footer-nav,
.language-switch {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.primary-nav a,
.footer-nav a,
.language-switch button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.primary-nav a.is-active,
.footer-nav a.is-active,
.language-switch button.is-active {
  color: var(--ink);
}

.language-switch {
  justify-self: end;
}

.page {
  min-height: calc(100vh - 120px);
}

.home-kicker {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: clamp(26px, 5vw, 64px) var(--home-x) 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.gallery {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(38px, 6vw, 82px) var(--home-x) clamp(74px, 10vw, 132px);
  column-count: 3;
  column-gap: clamp(18px, 2.6vw, 44px);
}

.gallery-item {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 clamp(24px, 4vw, 58px);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-item img,
.gallery-item video {
  display: block;
  width: 100%;
  background: var(--soft);
}

.gallery-item.narrow {
  width: 78%;
  margin-left: 9%;
}

.gallery-item.compact {
  width: 88%;
  margin-left: auto;
}

.gallery-item.tall {
  width: 92%;
  padding-top: clamp(18px, 4vw, 68px);
}

.gallery-item.loose {
  padding-top: clamp(34px, 7vw, 116px);
}

.gallery-item.wide {
  width: 100%;
}

.gallery-item:focus-visible,
.primary-nav a:focus-visible,
.footer-nav a:focus-visible,
.language-switch button:focus-visible,
.gate-row button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 5px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 0.85fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 112px) var(--page-x) clamp(76px, 11vw, 140px);
}

.about-photo {
  margin: 0;
}

.about-photo img {
  display: block;
  width: 100%;
  min-height: 460px;
  object-fit: cover;
}

.about-copy {
  max-width: 560px;
}

.section-kicker {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 clamp(28px, 4vw, 54px);
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 500;
  line-height: 0.98;
}

.story p {
  margin: 0 0 1.35em;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.78;
}

.page-contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.page-contact::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url("assets/gallery/media-058.jpg");
  background-position: center;
  background-size: cover;
  content: "";
  opacity: 0.28;
}

.page-contact::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  content: "";
}

.contact-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(62px, 9vw, 124px) var(--page-x) clamp(76px, 10vw, 136px);
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1fr);
  gap: clamp(36px, 7vw, 104px);
  align-items: start;
}

.contact-copy {
  padding-top: 8px;
}

.contact-lead {
  max-width: 520px;
  margin: -24px 0 clamp(30px, 5vw, 54px);
  color: #303030;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.7;
}

.contact-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.contact-list div {
  display: grid;
  grid-template-columns: minmax(96px, 0.32fr) 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  font-size: clamp(17px, 1.9vw, 25px);
  line-height: 1.25;
}

.contact-form-wrap {
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.86);
}

.contact-form-wrap h2 {
  margin: 0 0 26px;
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.05;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 18px;
}

.field {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.36);
  border-radius: 0;
  outline: 0;
  padding: 12px 0;
  background: transparent;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--ink);
}

.field-honeypot {
  position: absolute;
  left: -9999px;
}

.form-submit {
  justify-self: start;
  border: 1px solid var(--ink);
  padding: 13px 24px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.form-submit:hover,
.form-submit:focus-visible {
  background: transparent;
  color: var(--ink);
}

.form-status {
  margin: -8px 0 20px;
  padding: 13px 14px;
  border-left: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.form-status.is-error {
  border-left-color: var(--alert);
  color: var(--alert);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px var(--page-x) 34px;
  border-top: 1px solid var(--line);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.footer-contact a:hover,
.contact-list a:hover,
.primary-nav a:hover,
.footer-nav a:hover,
.language-switch button:hover {
  color: var(--ink);
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(0, 0, 0, 0.92);
}

.lightbox[hidden],
.page[hidden],
.site[hidden],
.gate[hidden] {
  display: none;
}

.lightbox-media {
  display: grid;
  max-width: min(1180px, 100%);
  max-height: 100%;
  place-items: center;
}

.lightbox-media img,
.lightbox-media video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 80px);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-top: 18px;
  }

  .primary-nav,
  .language-switch {
    justify-self: center;
  }

  .site-brand {
    order: -1;
  }

  .gallery {
    column-count: 2;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .contact-shell {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    min-height: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-nav,
  .footer-contact {
    justify-content: start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .brand {
    gap: 14px;
  }

  .brand-name,
  .site-brand .brand-name {
    min-width: 58px;
    font-size: 28px;
  }

  .primary-nav,
  .footer-nav,
  .language-switch {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }

  .home-kicker {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery {
    column-count: 1;
  }

  .gallery-item,
  .gallery-item.narrow,
  .gallery-item.compact,
  .gallery-item.tall,
  .gallery-item.loose,
  .gallery-item.wide {
    width: 100%;
    margin-left: 0;
    padding-top: 0;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-form-wrap {
    padding: 22px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    flex-direction: column;
  }
}
