/* CONTACT — one conversation, big enough */

.contact-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(1.5rem, 3vw, 2.8rem)) var(--gutter) 0;
  background:
    radial-gradient(circle at 78% 38%, rgba(255, 77, 18, 0.16), transparent 25%),
    var(--ink);
  color: var(--bone);
}

.contact-hero .wrap {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
}

.contact-hero__top {
  padding-bottom: 0.9rem;
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.contact-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  align-items: end;
  gap: clamp(2.5rem, 6vw, 7rem);
}

.contact-title {
  margin-top: 1.3rem;
  font-family: var(--serif);
  font-size: clamp(4rem, 8.6vw, 9.2rem);
  font-weight: 800;
  line-height: 1.01;
  letter-spacing: -0.06em;
}

.contact-title em {
  color: var(--orange);
  font-style: normal;
}

.contact-hero__aside {
  padding-left: clamp(0rem, 2vw, 2rem);
  border-left: 1px solid var(--line);
}

.contact-orbit {
  position: relative;
  width: min(100%, 16rem);
  aspect-ratio: 1;
  margin-bottom: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 18, 0.1), transparent 60%);
}

.contact-orbit__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(241, 237, 228, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.contact-orbit__ring--one {
  width: 32%;
  height: 32%;
  border-color: rgba(255, 77, 18, 0.38);
}

.contact-orbit__ring--two {
  width: 64%;
  height: 64%;
  border-style: dashed;
  animation: spin 55s linear infinite;
}

.contact-orbit__ring--three {
  width: 92%;
  height: 92%;
  border-color: rgba(241, 237, 228, 0.07);
}

.contact-orbit::before,
.contact-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(241, 237, 228, 0.1);
}

.contact-orbit::before {
  width: 100%;
  height: 1px;
  transform: translate(-50%, -50%);
}

.contact-orbit::after {
  width: 1px;
  height: 100%;
  transform: translate(-50%, -50%);
}

.contact-orbit__core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.03em;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 30px rgba(255, 77, 18, 0.25);
}

.contact-orbit__core small {
  margin-top: 0.35rem;
  font-size: 0.26em;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-align: center;
}

.contact-orbit__node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--bone);
  font-size: 0.45rem;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.contact-orbit__node i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 9px var(--orange);
}

.contact-orbit__node b {
  font-weight: 600;
}

.contact-orbit__node small {
  color: var(--muted);
  font-size: 0.42rem;
}

.contact-orbit__node--a {
  top: 26%;
  left: 7%;
}

.contact-orbit__node--b {
  right: 3%;
  bottom: 23%;
  flex-direction: row-reverse;
}

.contact-hero__aside > p {
  max-width: 21rem;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.95;
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.contact-channel {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  padding: 1.2rem clamp(0.9rem, 1.8vw, 1.6rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-channel > span {
  color: rgba(241, 237, 228, 0.4);
  font-size: 0.47rem;
  letter-spacing: 0.1em;
}

.contact-channel a {
  overflow-wrap: anywhere;
  color: var(--bone);
  font-size: clamp(0.72rem, 1vw, 0.86rem);
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}

.contact-channel a:hover {
  color: var(--orange);
}

.contact-hero__mark {
  position: absolute;
  right: -0.05em;
  bottom: 8rem;
  z-index: 0;
  color: transparent;
  font-size: clamp(9rem, 23vw, 25rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.1em;
  -webkit-text-stroke: 1px rgba(241, 237, 228, 0.045);
  pointer-events: none;
  user-select: none;
}

/* main contact */

.contact-main {
  padding: clamp(5rem, 9vw, 9rem) var(--gutter);
  background: var(--paper);
  color: var(--ink);
}

.contact-main .wrap {
  width: min(var(--max), 100%);
}

.contact-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(26rem, 1.18fr);
  gap: clamp(3rem, 7vw, 8rem);
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info h2 {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.3vw, 4.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.contact-info h2 em {
  color: var(--orange-deep);
  font-style: normal;
}

.contact-info__lede {
  max-width: 28rem;
  margin-top: 1.4rem;
  color: var(--muted-dark);
  font-size: 0.82rem;
  line-height: 1.95;
}

.direct-list {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line-dark-strong);
}

.direct-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) 1.2fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.direct-row > span {
  color: var(--muted-dark);
  font-size: 0.48rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.direct-row a {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.5;
  transition: color 0.25s ease;
}

.direct-row a i {
  color: var(--orange-deep);
  font-style: normal;
  transition: transform 0.3s var(--ease);
}

.direct-row a:hover {
  color: var(--orange-deep);
}

.contact-info__note {
  max-width: 25rem;
  margin-top: auto;
  padding-top: 2rem;
  color: var(--muted-dark);
  font-size: 0.6rem;
  line-height: 1.8;
}

.contact-form-wrap {
  padding: clamp(1.4rem, 3vw, 2.6rem);
  border: 1px solid var(--line-dark-strong);
  background: var(--paper-bright);
}

.contact-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-dark-strong);
}

.contact-form-head > div > span {
  color: var(--orange-deep);
  font-size: 0.49rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.contact-form-head h3 {
  margin-top: 0.8rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.contact-form-head__badge {
  color: var(--muted-dark);
  font-size: 0.46rem;
  letter-spacing: 0.1em;
}

.contact-form {
  margin-top: 1.3rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.field > span {
  color: var(--muted-dark);
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.field > span b {
  color: var(--orange-deep);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-dark-strong);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.5;
  transition: border-color 0.25s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(9, 8, 6, 0.3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange-deep);
}

.field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23090806' stroke-width='1.1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
}

.field--select {
  width: 100%;
}

.field--full {
  width: 100%;
}

.contact-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 0.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dark);
}

.contact-form__foot p {
  max-width: 24rem;
  color: var(--muted-dark);
  font-size: 0.56rem;
  line-height: 1.75;
}

.contact-form__foot .btn {
  flex: 0 0 auto;
  min-height: 50px;
}

.form-status {
  margin-top: 0.8rem;
  color: var(--orange-deep);
  font-size: 0.6rem;
  line-height: 1.6;
}

.form-status:empty {
  display: none;
}

/* offices */

.offices {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 9rem) var(--gutter);
  background: var(--ink);
  color: var(--bone);
}

.offices .wrap {
  width: min(var(--max), 100%);
}

.offices__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.offices__head .section-title {
  font-size: clamp(2.5rem, 5vw, 5.4rem);
}

.offices__head .section-title em {
  color: var(--orange);
}

.offices__head > p {
  max-width: 24rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.9;
}

.offices__layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.78fr) minmax(24rem, 1.22fr);
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(2rem, 4vw, 4rem);
}

.office-cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.office-card {
  display: flex;
  flex-direction: column;
  min-height: 16rem;
  padding: clamp(1.3rem, 2.2vw, 2rem);
  background: var(--ink);
}

.office-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.46rem;
  letter-spacing: 0.08em;
}

.office-card__head span:first-child {
  color: var(--orange);
  font-weight: 600;
}

.office-card h3 {
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.office-card p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.85;
}

.office-card > a {
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--bone);
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.office-card > a i {
  color: var(--orange);
  font-style: normal;
}

.office-card > a:hover {
  color: var(--orange);
}

.node-map {
  position: relative;
  min-height: 31rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(241, 237, 228, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 237, 228, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 58% 52%, rgba(255, 77, 18, 0.08), transparent 38%),
    #0b0a08;
  background-size: 38px 38px, 38px 38px, auto, auto;
}

.node-map__top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(241, 237, 228, 0.4);
  font-size: 0.45rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.node-map__coast {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--bone);
}

.node-map__pin {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--bone);
  font-size: 0.44rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.node-map__pin i {
  position: relative;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 77, 18, 0.12), 0 0 16px rgba(255, 77, 18, 0.7);
}

.node-map__pin i::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(255, 77, 18, 0.38);
  border-radius: 50%;
  animation: mapPulse 2.8s ease-out infinite;
}

.node-map__pin b {
  font-weight: 600;
}

.node-map__pin small {
  color: var(--muted);
  font-size: 0.4rem;
}

.node-map__pin--huli {
  top: 31%;
  left: 22%;
}

.node-map__pin--siming {
  top: 61%;
  left: 59%;
}

.node-map__line {
  position: absolute;
  top: 35%;
  left: 27%;
  z-index: 2;
  width: 36%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 77, 18, 0.7), rgba(255, 77, 18, 0.1));
  transform: rotate(27deg);
  transform-origin: 0 50%;
}

.node-map__coord {
  position: absolute;
  right: 1.2rem;
  bottom: 1.1rem;
  color: rgba(241, 237, 228, 0.42);
  font-size: 0.44rem;
  letter-spacing: 0.12em;
}

.node-map__cross {
  position: absolute;
  width: 10px;
  height: 10px;
}

.node-map__cross::before,
.node-map__cross::after {
  content: "";
  position: absolute;
  background: rgba(241, 237, 228, 0.24);
}

.node-map__cross::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.node-map__cross::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.node-map__cross--a {
  top: 13%;
  right: 22%;
}

.node-map__cross--b {
  bottom: 22%;
  left: 18%;
}

.node-map__cross--c {
  top: 50%;
  right: 8%;
}

@keyframes mapPulse {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

/* FAQ */

.contact-faq {
  padding: clamp(5rem, 9vw, 9rem) var(--gutter);
  background: var(--paper-deep);
  color: var(--ink);
}

.contact-faq .wrap {
  width: min(var(--max), 100%);
}

.contact-faq__grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 8vw, 10rem);
}

.contact-faq__intro {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  align-self: start;
}

.contact-faq__intro .section-title {
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
}

.contact-faq__intro .section-title em {
  color: var(--orange-deep);
}

.contact-faq__intro > p {
  max-width: 19rem;
  margin-top: 1.4rem;
  color: var(--muted-dark);
  font-size: 0.77rem;
  line-height: 1.9;
}

.contact-faq__intro .text-link {
  margin-top: 1.8rem;
  color: var(--ink);
  border-bottom-color: var(--line-dark-strong);
}

.faq-list {
  border-top: 1px solid var(--line-dark-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line-dark);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
  transition: color 0.25s ease, padding 0.35s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--orange-deep);
  padding-left: 0.35rem;
}

.faq-item summary > span {
  flex: 0 0 1.8rem;
  color: var(--orange-deep);
  font-family: var(--sans);
  font-size: 0.49rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.faq-item summary i {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
}

.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease);
}

.faq-item summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] summary i::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-item > p {
  max-width: 43rem;
  padding: 0 2rem 1.5rem 3rem;
  color: var(--muted-dark);
  font-size: 0.79rem;
  line-height: 1.95;
  animation: faqOpen 0.35s var(--ease) both;
}

@keyframes faqOpen {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* responsive */

@media (max-width: 1080px) {
  .contact-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .contact-title {
    font-size: clamp(3.6rem, 10vw, 7rem);
  }

  .contact-hero__aside {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 40rem;
    padding-left: 0;
    border-left: 0;
  }

  .contact-orbit {
    width: 12rem;
    flex: 0 0 auto;
    margin-bottom: 0;
  }

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

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

  .contact-info {
    max-width: 42rem;
  }

  .contact-info__note {
    padding-top: 1.2rem;
  }

  .offices__head {
    display: block;
  }

  .offices__head > p {
    max-width: 34rem;
    margin-top: 1.3rem;
  }

  .offices__layout {
    grid-template-columns: 1fr;
  }

  .office-cards {
    grid-template-columns: 1fr 1fr;
  }

  .node-map {
    min-height: 26rem;
  }

  .contact-faq__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-faq__intro {
    position: static;
  }

  .contact-faq__intro > p {
    max-width: 34rem;
  }
}

@media (max-width: 720px) {
  .contact-title {
    font-size: clamp(3.1rem, 13vw, 5rem);
  }

  .contact-hero__aside {
    display: block;
  }

  .contact-orbit {
    width: 11rem;
    margin-bottom: 1.3rem;
  }

  .contact-channels {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .contact-channel {
    padding: 1rem;
  }

  .contact-channel a {
    font-size: 0.8rem;
  }

  .contact-hero__mark {
    font-size: 32vw;
    bottom: 5rem;
  }

  .contact-main,
  .offices,
  .contact-faq {
    padding-inline: var(--gutter);
  }

  .contact-main__grid {
    gap: 2.5rem;
  }

  .contact-info h2 {
    font-size: clamp(2.4rem, 10vw, 3.7rem);
  }

  .direct-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .contact-form-wrap {
    padding: 1.2rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .contact-form__foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-form__foot .btn {
    width: 100%;
  }

  .office-cards {
    grid-template-columns: 1fr;
  }

  .office-card {
    min-height: 14rem;
  }

  .node-map {
    min-height: 21rem;
  }

  .node-map__pin--huli {
    top: 32%;
    left: 14%;
  }

  .node-map__pin--siming {
    top: 63%;
    left: 48%;
  }

  .node-map__line {
    left: 19%;
    width: 30%;
  }

  .contact-faq__intro .section-title {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .faq-item summary {
    gap: 0.7rem;
    padding: 1.1rem 0;
    font-size: 1.05rem;
  }

  .faq-item summary > span {
    flex-basis: 1.2rem;
  }

  .faq-item > p {
    padding: 0 0 1.3rem 1.9rem;
  }
}
