:root {
  --ink: #fff;
  --paper: #000;
  --muted: rgba(255, 255, 255, 0.58);
  --line: rgba(255, 255, 255, 0.2);
  --gold: #c09968;
}

* {
  box-sizing: border-box;
}

html {
  background: #000;
}

body {
  min-width: 0;
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: "Noto Sans SC", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

html[lang="en"] body {
  font-family: "Inter", "Noto Sans", "Source Sans 3", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

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

.contact-shell {
  min-height: 0;
  display: block;
  border: 0;
  background: var(--paper);
}

.contact-visual {
  position: relative;
  min-height: 72px;
  overflow: visible;
  background: #000;
  border-right: 0;
  isolation: isolate;
}

/* Shared secondary-page cover: match the Services abstract hero. */
.contact-visual {
  display: none;
}

.contact-visual::after {
  display: none;
}

.contact-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(28px, 5vw, 96px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.contact-brand img {
  display: block;
  width: clamp(150px, 15vw, 214px);
  height: auto;
  aspect-ratio: 194 / 27;
  filter: none;
}

.contact-header-tools {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.contact-language {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(46px, 1fr));
  align-items: center;
  width: 98px;
  height: 34px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.contact-language-indicator {
  position: absolute;
  z-index: -1;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc(50% - 2px);
  border-radius: 999px;
  background: #fff;
  transform: translateX(0);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-language[data-language-state="en"] .contact-language-indicator {
  transform: translateX(100%);
}

.contact-language button {
  min-width: 46px;
  height: 28px;
  min-height: 0;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: clamp(12px, 0.82vw, 14px);
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-language button.is-active {
  background: transparent;
  color: #080808;
}

.contact-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.contact-menu-icon {
  display: grid;
  gap: 5px;
  width: 24px;
}

.contact-menu-icon i {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.contact-content {
  min-width: 0;
  padding: 0 clamp(28px, 5vw, 96px) clamp(56px, 5vw, 88px);
  background: var(--paper);
}

/* The contact page uses the footer as its closing contact block, so remove
   the extra divider and keep the block close to the cover with a measured gap. */
.contact-page .footer-contact-intro {
  border-top: 0;
}

.contact-page .contact-shell {
  min-height: 0;
}

.contact-page .footer {
  margin-top: clamp(38px, 5vw, 72px);
}

.contact-page .footer-inner {
  padding-top: 0;
}

.contact-page .footer-contact-intro {
  padding-top: 0;
}

.contact-intro {
  position: relative;
  min-height: clamp(330px, 27vw, 520px);
  margin: 0 calc(-1 * clamp(28px, 5vw, 96px));
  padding: 72px clamp(28px, 5vw, 96px) 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: #030303 url("../images/services-cover-abstract.jpg") center 52% / cover no-repeat;
}

.contact-intro::before,
.contact-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.contact-intro::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.46)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.2));
}

.contact-intro::after {
  top: auto;
  height: 38%;
  background: linear-gradient(180deg, transparent, #000);
}

h1,
h2 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(38px, 4.3vw, 78px);
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.12em;
  text-align: center;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.8);
}

html[lang="en"] h1 {
  font-size: clamp(34px, 3.7vw, 68px);
  letter-spacing: 0.2em;
}

.site-header.site-header.contact-header {
  border-bottom-color: rgba(255, 255, 255, 0.28);
  background: #000 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.directory-column > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-directory {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
  padding-top: clamp(40px, 5vw, 92px);
  border-top: 1px solid var(--line);
}

.directory-heading p {
  margin: 0;
  font-size: clamp(34px, 4vw, 76px);
  line-height: 1;
}

.directory-column {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.directory-contact-column {
  gap: clamp(28px, 3vw, 48px);
}

.directory-contact-line {
  display: grid;
  justify-items: start;
  gap: 8px;
  max-width: 100%;
  margin: 0;
}

.directory-contact-line > span {
  color: var(--muted);
  font-size: clamp(12px, 0.9vw, 15px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: none;
}

.directory-column a,
.directory-column p {
  max-width: 100%;
  margin: 0;
  font-size: clamp(20px, 2vw, 38px);
  line-height: 1.15;
}

.directory-column a {
  transition: color 0.25s ease;
}

.directory-social-column {
  gap: 14px;
}

.directory-social-column > a {
  font-size: clamp(18px, 1.55vw, 30px);
  line-height: 1.2;
}

.directory-wechat {
  width: min(100%, 168px);
  margin: 20px 0 0;
}

.directory-wechat a,
.directory-wechat img {
  display: block;
  width: 100%;
}

.directory-wechat img {
  height: auto;
  background: #fff;
}

.directory-wechat figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.directory-column a:hover,
.directory-column a:focus-visible {
  color: var(--gold);
  outline: 0;
}

html[lang="en"] .contact-directory {
  overflow-wrap: anywhere;
}

html[lang="en"] .directory-contact-line > span,
html[lang="en"] .directory-wechat figcaption {
  letter-spacing: 0;
}

.contact-menu {
  position: fixed;
  z-index: 20;
  inset: 0 0 0 auto;
  width: min(480px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 86px 48px 48px;
  background: #0b0b0b;
  color: #f2f0eb;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s;
}

.contact-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.contact-menu > a {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: clamp(32px, 4vw, 54px);
}

.contact-menu-close {
  position: absolute;
  top: 26px;
  right: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 48px;
  font-weight: 200;
}

@media (max-width: 1100px) {
  .contact-directory {
    grid-template-columns: 1fr 1fr;
  }

  .directory-heading {
    grid-column: 1 / -1;
    margin-bottom: 28px;
  }
}

@media (max-width: 900px) {
  .contact-visual {
    min-height: 104px;
  }
}

@media (max-width: 760px) {
  .contact-visual {
    position: relative;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

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

  .contact-brand img {
    width: clamp(150px, 15vw, 214px);
  }

  .contact-menu-button { width: 38px; height: 38px; }

  .contact-header-tools {
    gap: 8px;
  }

  .contact-language button {
    min-width: 38px;
    padding-inline: 6px;
    font-size: 11px;
  }

  .contact-content {
    padding: 0 20px 74px;
  }

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

  .contact-intro {
    margin-inline: -20px;
    padding: 70px 20px 48px;
  }

  .directory-heading {
    grid-column: auto;
    margin-bottom: 20px;
  }

  .contact-menu {
    padding-inline: 28px;
  }
}

@media (max-width: 560px) {
  .directory-contact-line a {
    font-size: clamp(18px, 5.5vw, 28px);
  }

  .directory-social-column > a {
    font-size: clamp(20px, 6vw, 30px);
  }
}

@media (max-width: 560px) {
  .contact-visual,
  .contact-header {
    min-height: 100px;
  }

  .contact-header {
    padding-inline: 16px;
  }

}

/* Keep the About and Contact secondary covers aligned. */
.contact-page .contact-intro {
  min-height: clamp(330px, 27vw, 520px);
  height: clamp(330px, 27vw, 520px);
  background-position: center 52%;
}

/* Final shared cover geometry for About and Contact. */
.contact-page .contact-intro {
  height: clamp(500px, 27vw, 644px) !important;
  min-height: clamp(500px, 27vw, 644px) !important;
  background-position: center center !important;
}

/* Phone and tablet spacing; the shared stylesheet owns the cover height. */
@media (max-width: 900px) {
  .contact-content {
    padding: var(--lekas-header-mobile-height, 104px) 18px 0;
  }

  .contact-intro {
    margin-inline: -18px;
    padding: 32px 18px;
  }

  .contact-page .footer {
    margin-top: 32px;
  }

  .contact-menu {
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--lekas-header-mobile-height, 104px) + 24px) 18px 32px;
    overflow-y: auto;
  }

  .contact-menu > a {
    padding-block: 16px;
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.25;
  }

  .contact-menu-close {
    top: 28px;
    right: 18px;
    width: 44px;
    height: 44px;
    padding: 0;
    line-height: 1;
  }
}

@media (max-width: 360px) {
  .contact-content {
    padding-inline: 16px;
  }

  .contact-intro {
    margin-inline: -16px;
    padding-inline: 16px;
  }
}

/* The reference form is a white reading surface below the existing cover. */
.contact-page .contact-content {
  padding-bottom: 0;
}

.contact-enquiry {
  --form-ink: #292929;
  --form-muted: #6b6b6b;
  --form-line: #ccc;
  --form-error: #bf3535;
  margin-inline: 0;
  padding: clamp(48px, 5.5vw, 88px) clamp(28px, 5vw, 96px) clamp(56px, 6vw, 96px);
  background: #fff;
  color: var(--form-ink);
  color-scheme: light;
}

.contact-enquiry [hidden] {
  display: none !important;
}

.contact-enquiry-inner {
  width: min(100%, 1000px);
  margin-inline: auto;
}

.contact-enquiry-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.contact-enquiry-heading h2 {
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1.3;
}

.contact-enquiry-heading p {
  flex-shrink: 0;
  margin: 0;
  color: var(--form-muted);
  font-size: 12px;
  line-height: 1.5;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 32px;
}

.contact-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.contact-field--wide {
  grid-column: 1 / -1;
}

.contact-field label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.contact-required {
  color: var(--form-error);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--form-line);
  border-radius: 3px;
  background: #fff;
  color: var(--form-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.18s ease;
}

.contact-field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23292929' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 9 4-4 4 4M8 15l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.contact-field select:required:invalid {
  color: var(--form-muted);
}

.contact-field select option {
  background: #fff;
  color: var(--form-ink);
}

/* Preserve native select interaction while allowing long region names to wrap. */
.contact-select {
  position: relative;
  min-width: 0;
}

.contact-field .contact-select.is-enhanced select {
  position: absolute;
  inset: 0;
  height: 100%;
  color: transparent;
}

.contact-field .contact-select.is-enhanced select:invalid {
  color: transparent;
}

.contact-select-value {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 44px 14px 16px;
  color: var(--form-ink);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.contact-select-value.is-placeholder {
  color: var(--form-muted);
}

.contact-select:has(select:disabled) .contact-select-value {
  opacity: 0.65;
}

.contact-field textarea {
  min-height: 200px;
  resize: vertical;
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
  border-color: #929292;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus,
.contact-consent input:focus-visible,
.contact-code-refresh:focus-visible,
.contact-submit:focus-visible {
  border-color: #866237;
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.contact-field [aria-invalid="true"],
.contact-consent input[aria-invalid="true"] {
  border-color: var(--form-error);
}

.contact-field-error,
.contact-field-help {
  font-size: 13px;
  line-height: 1.5;
}

.contact-field-error {
  color: var(--form-error);
}

.contact-field-help {
  color: var(--form-muted);
}

.contact-consent-wrap {
  margin-top: 30px;
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
}

.contact-consent input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 4px 0 0;
  accent-color: #292929;
  cursor: pointer;
}

.contact-consent span {
  flex: 1;
  min-width: 0;
  color: var(--form-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

.contact-consent-wrap > .contact-field-error {
  display: block;
  margin: 8px 0 0 36px;
}

.contact-verification {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  margin-top: 40px;
}

.contact-code-image {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.contact-code-image img,
.contact-code-placeholder {
  display: block;
  width: 232px;
  max-width: calc(100% - 48px);
  height: auto;
  border: 1px solid var(--form-line);
  background: #f6f6f6;
}

.contact-code-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 70px;
  padding: 8px;
  color: var(--form-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.contact-local-notice {
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 1px solid var(--form-line);
  font-size: 15px;
  line-height: 1.7;
}

.contact-local-notice p { margin: 0 0 10px; }
.contact-local-notice a { text-decoration: underline; text-underline-offset: 4px; }
.contact-local-notice a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.contact-code-refresh {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--form-ink);
  cursor: pointer;
}

.contact-code-refresh:hover {
  background: #f1f1f1;
}

.contact-submit-area {
  margin-top: 44px;
  text-align: center;
}

.contact-submit {
  min-width: 180px;
  min-height: 56px;
  padding: 14px 36px;
  border: 1px solid var(--form-ink);
  border-radius: 0;
  background: #fff;
  color: var(--form-ink);
  font: inherit;
  font-size: 17px;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.contact-submit:hover {
  background: #000;
  color: #fff;
}

.contact-form [disabled] {
  cursor: wait;
  opacity: 0.65;
}

.contact-form-status {
  max-width: 64ch;
  margin: 24px auto 0;
  color: var(--gold);
  font-size: 15px;
  line-height: 1.7;
}

.contact-form-status[data-state="error"] {
  color: var(--form-error);
}

.contact-form-status[data-state="pending"] {
  color: var(--form-muted);
}

.contact-form-note {
  margin: 22px 0 0;
  color: var(--form-muted);
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.contact-form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form-note a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.contact-honeypot {
  display: none;
}

.contact-page .footer {
  margin-top: 0;
}

.contact-page .footer-inner {
  padding-top: clamp(44px, 5vw, 72px);
}

.contact-enquiry-heading h2,
.contact-field input,
.contact-field select,
.contact-field textarea,
.contact-consent {
  scroll-margin-top: calc(var(--lekas-header-height, 72px) + 24px);
}

@media (max-width: 900px) {
  .contact-enquiry {
    padding-inline: 24px;
  }

  .contact-enquiry-heading h2,
  .contact-field input,
  .contact-field select,
  .contact-field textarea,
  .contact-consent {
    scroll-margin-top: calc(var(--lekas-header-mobile-height, 104px) + 24px);
  }
}

@media (max-width: 700px) {
  .contact-enquiry {
    padding-block: 40px 52px;
  }

  .contact-enquiry-heading {
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 30px;
  }

  .contact-enquiry-heading h2 {
    font-size: 27px;
  }

  .contact-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .contact-field--wide {
    grid-column: auto;
  }

  .contact-field textarea {
    min-height: 180px;
  }

  .contact-consent-wrap {
    margin-top: 26px;
  }

  .contact-consent {
    gap: 14px;
    padding-block: 8px;
  }

  .contact-consent-wrap > .contact-field-error {
    margin-left: 34px;
  }

  .contact-verification {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-top: 32px;
  }

  .contact-submit-area {
    margin-top: 34px;
  }
}

@media (max-width: 360px) {
  .contact-enquiry {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-field input,
  .contact-field select,
  .contact-field textarea,
  .contact-submit {
    transition: none;
  }
}
