*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: #f3eee6;
}

@view-transition {
  navigation: auto;
}

::view-transition-group(root) {
  background: #f3eee6;
}
::view-transition-old(root) {
  animation: kex-vt-out 0.18s ease both;
  mix-blend-mode: normal;
}
::view-transition-new(root) {
  animation: kex-vt-in 0.18s ease both;
  mix-blend-mode: normal;
}
@keyframes kex-vt-out {
  to { opacity: 0; }
}
@keyframes kex-vt-in {
  from { opacity: 0; }
}

body.lang-en .kex-zh,
body.lang-zh .kex-en {
  display: none !important;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: #f3eee6;
  color: #1c1916;
  -webkit-font-smoothing: antialiased;
  font-family: "Jost", "Noto Sans TC", sans-serif;
  /* animation: kexIn 0.2s ease both; */
}
/* body > :not(.kex-nav-wrap) , body > :not(section.hero){
  animation: kexIn 0.2s ease both;
} */

@keyframes kexIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* @media (prefers-reduced-motion: reduce) {
  body { animation: none; }
} */

a {
  color: inherit;
  text-decoration: none;
}
a:hover { color: #4b3b2f; }

a,
button {
  transition:
    color 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease,
    opacity 0.35s ease,
    gap 0.35s ease,
    transform 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  a,
  button {
    transition: none;
  }
}

::selection { background: #d9cdb8; }

img, video, canvas { max-width: 100%; }

.kex-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  max-width: 100%;
}

section, footer, header[data-kex-nav] {
  min-width: 0;
  max-width: 100%;
}

[data-kex-nav] :is(a, button) {
  -webkit-tap-highlight-color: transparent;
}
[data-kex-nav] :is(a, button):focus:not(:focus-visible) { outline: none; }
[data-kex-nav] :is(a, button):focus-visible {
  outline: none;
  opacity: 1 !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.kex-label {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6b6259;
}

.kex-media .kex-image,
.kex-media .kex-image-ph {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.selected__card:hover .kex-image{
  transform: scale(1.05);
}

.kex-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.kex-media .kex-image-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
  color: #7a7066;
}

.kex-media {
  position: relative;
  overflow: hidden;
  background: #e6ddd0;
  color: #7a7066;
}

.kex-rule {
  width: 40px;
  height: 1px;
  background: #1c1916;
  opacity: 0.5;
}

.btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-sizing: border-box;
  transition:
    color 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease,
    gap 0.35s ease;
}
.btn i {
  letter-spacing: 0;
  font-size: 16px;
  flex-shrink: 0;
  font-style: normal;
}
.btn--fill {
  background: #2b2724;
  color: #f3eee6;
  padding: 20px 22px;
}
.btn--fill:hover {
  background: #4b3b2f;
  color: #f3eee6;
}
.btn--line {
  border: 1px solid #2b2724;
  padding: 19px 21px;
}
.btn--line:hover { background: #efe9e0; }
.btn--ghost {
  padding: 14px 0 8px;
  border-bottom: 1px solid #1c1916;
  width: fit-content;
  gap: 16px;
}
@media (min-width: 760px) {
  .btn {
    gap: 40px;
    font-size: 12.5px;
    letter-spacing: 0.24em;
  }
  .btn--fill { padding: 24px 30px; }
  .btn--line { padding: 23px 29px; }
}

.split-hero {
  padding-top: 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
.split-hero__copy {
  padding: clamp(56px, 8vw, 128px) clamp(20px, 4.4vw, 72px) clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.split-hero__media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #e6ddd0;
  color: #7a7066;
  /* aspect-ratio: 4/5; */
  aspect-ratio: 975 / 820;
}
.split-hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 900px) {
  .split-hero, .split-hero--balanced, .split-hero--narrow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  }
  .split-hero__media {
    /* min-height: min(calc(100svh - 84px), 820px); */
    /* aspect-ratio: auto; */
  }
}

.kex-nav-sheet {
  position: fixed;
  inset: 0;
  /* z-index: 30; */
  background: #f3eee6;
  padding: 120px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: auto;
}
.kex-nav-sheet[hidden] {
  display: none !important;
}
.kex-nav-sheet__list {
  display: flex;
  flex-direction: column;
}
.kex-nav-sheet__list a {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.1;
  padding: 12px 0;
  border-bottom: 1px solid rgba(28, 25, 22, 0.1);
  color: #1c1916;
  opacity: 0.7;
  transition: opacity 0.35s ease, color 0.35s ease;
}
.kex-nav-sheet__list a:hover,
.kex-nav-sheet__list a.is-current { opacity: 1; }
.kex-nav-sheet__foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 40px;
}
.kex-nav-sheet__intl {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1c1916;
  padding: 19px 22px;
  border: 1px solid #2b2724;
}
.kex-nav-sheet__intl:hover {
  background: #eae2d6;
}

.kex-header {
  position: relative;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 4.4vw, 72px);
  background: #f3eee6;
  border-bottom: 1px solid rgba(28, 25, 22, 0.08);
  transition: background 0.35s ease, border-color 0.35s ease;
  font-family: "Jost", "Noto Sans TC", sans-serif;
  color: #1c1916;
}
.kex-header.is-overlay {
  background: transparent;
  border-bottom-color: transparent;
  color: #f3eee6;
}
.kex-header__brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}
a.kex-header__brand:hover { 
  opacity: 0.7 !important; 
  -webkit-tap-highlight-color: inherit !important;
  color: inherit !important;
}
.kex-logo {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: inherit;
  transition: color 0.35s ease;
  white-space: nowrap;
}
.kex-nav-primary {
  display: flex;
  flex-shrink: 1;
  min-width: 0;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.2em;
  gap: clamp(14px, 2.2vw, 44px);
  color: inherit;
  transition: color 0.35s ease;
}
html[lang="zh-Hant"] .kex-nav-primary {
  gap: clamp(26px, 3.2vw, 60px);
}
.kex-nav-primary a {
  color: inherit;
  padding: 10px 0 6px;
  border-bottom: 1px solid transparent;
  opacity: 0.62;
  white-space: nowrap;
  transition: opacity 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.kex-header.is-overlay .kex-nav-primary a { opacity: 0.7; }
.kex-nav-primary a.is-current {
  opacity: 1;
  border-bottom-color: currentColor;
}
.kex-header.is-overlay .kex-nav-primary a:hover { opacity: 1; }
.kex-nav-tools {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(16px, 2vw, 28px);
  color: inherit;
  transition: color 0.35s ease;
}
.kex-nav-lang {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: 0.2em;
}
.kex-nav-lang :is(button, a) {
  
  letter-spacing: 0.2em;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 12px 2px;
  cursor: pointer;
  opacity: 0.45;
  text-decoration: none;
  transition: opacity 0.35s ease, color 0.35s ease;
}
.kex-nav-lang :is(button, a).is-on { opacity: 1; }
.kex-nav-lang :is(button, a):last-child { letter-spacing: 0.12em; }
.kex-nav-lang__bar {
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.kex-nav-menu {
  display: none;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  min-height: 44px;
  padding: 0 0 0 8px;
  font-size: 12.5px;
}

@media (max-width: 1199px) {
  .kex-nav-primary { letter-spacing: 0.14em; }
}
@media (max-width: 999px) {
  .kex-nav-primary {
    font-size: 12px;
    letter-spacing: 0.08em;
    gap: 12px;
  }
  html[lang="zh-Hant"] .kex-nav-primary { gap: 22px; }
}
@media (max-width: 879px) {
  .kex-nav-primary { display: none; }
  .kex-nav-menu { display: block; }
  .kex-header {
    gap: 10px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .kex-logo { font-size: 22px; }
  .kex-nav-tools { gap: 8px; }
}

.kex-footer {
  background: #e4dacb;
  color: #1c1916;
  padding: 88px clamp(20px, 4.4vw, 72px) 32px;
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 8vw, 120px);
  overflow: hidden;
  font-family: "Jost", "Noto Sans TC", sans-serif;
}
.kex-footer__collab {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px clamp(32px, 5vw, 96px);
  border-top: 1px solid rgba(28, 25, 22, 0.22);
  padding-top: 28px;
}
.kex-footer__collab-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px clamp(28px, 4vw, 72px);
  min-width: 0;
}
.kex-footer__title {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-weight: 300;
  font-size: 22.5px;
  line-height: 1.3;
  letter-spacing: 0;
  color: #1c1916;
}
html[lang="zh-Hant"] .kex-footer__title {
  font-size: 17.5px;
  letter-spacing: 0.06em;
}
.kex-footer__scope {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.8;
  color: #5e554c;
}
.kex-footer__contact {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  min-height: 40px;
  font-size: 12.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1c1916;
  border-bottom: 1px solid #1c1916;
  transition: opacity 0.35s ease;
}
.kex-footer__contact:hover {
  opacity: 0.7;
}
.kex-footer__contact span {
  letter-spacing: 0;
  font-size: 16px;
}
.kex-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
}
.kex-footer__brand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
}
.kex-footer__brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.kex-footer__brand span {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #1c1916;
  white-space: nowrap;
}
.kex-footer__links {
  display: flex;
  gap: 32px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.kex-footer__links a {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  color: #1c1916;
  text-decoration: none;
  border-bottom: 1px solid #1c1916;
  transition: opacity 0.2s ease;
}
.kex-footer__links a:hover {
  opacity: 0.65;
}
.kex-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5e554c;
}

@media (max-width: 759px) {
  a { max-width: 100%; }
}
