.page-contact {
  --contact-dashed: #C9BFAF;
  --contact-card-bg: #FBF7EF;
  --contact-envelope-line: rgba(255, 255, 255, 0.16);
  background: var(--cream);
  overflow-x: hidden;
}

.page-contact .contact-hero {
  position: relative;
  padding: 24px 0 44px;
  overflow: hidden;
}

.page-contact .contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red-orange) 0%, var(--red-orange) 26%, var(--deep-blue) 26%, var(--deep-blue) 72%, var(--highlight) 72%);
}

.page-contact .contact-hero::after {
  content: "";
  position: absolute;
  top: 20px;
  right: -40px;
  width: 200px;
  height: 200px;
  border: 1px solid var(--contact-dashed);
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
}

.page-contact .contact-hero__sep {
  margin: 0 8px;
  color: var(--muted-ink);
}

.page-contact .contact-hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 30px;
}

.page-contact .contact-hero__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-ink);
  margin: 0 0 12px;
}

.page-contact .contact-hero__kicker-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--deep-blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border-radius: 2px 8px 2px 8px;
  animation: contact-float 6s ease-in-out infinite;
}

@keyframes contact-float {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-4deg); }
}

.page-contact .contact-hero__title h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(40px, 9vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 16px 0 20px;
}

.page-contact .contact-hero__bar {
  display: inline-block;
  margin: 0 12px;
  color: var(--red-orange);
  font-weight: 400;
  transform: skew(-15deg);
}

.page-contact .contact-hero__sub {
  display: block;
  font-size: clamp(16px, 3.2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--muted-ink);
  margin-top: 12px;
}

.page-contact .contact-hero__lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 34em;
  margin: 16px 0 0;
}

.page-contact .contact-hero__aside {
  position: relative;
  background: var(--surface);
  border-left: 3px solid var(--red-orange);
  border-radius: 0 12px 12px 0;
  padding: 20px 20px 18px;
  align-self: end;
}

.page-contact .contact-hero__aside-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted-ink);
  padding: 4px 10px;
  background: var(--highlight);
  border-radius: 2px 8px 2px 8px;
}

.page-contact .contact-hero__aside-time {
  font-family: var(--font-mono);
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--deep-blue);
  margin: 12px 0 6px;
}

.page-contact .contact-hero__aside-note {
  font-size: 14px;
  color: var(--muted-ink);
  line-height: 1.6;
  margin: 0;
}

.page-contact .contact-card-section {
  padding: 0 0 56px;
}

.page-contact .contact-card {
  background:
    linear-gradient(135deg, rgba(18, 58, 92, 0.04) 0%, rgba(18, 58, 92, 0) 60%),
    var(--contact-card-bg);
  border: 1px solid var(--contact-dashed);
  border-radius: 4px 24px 4px 24px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.page-contact .contact-card__info {
  padding: 28px 20px;
  order: 2;
}

.page-contact .contact-block-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--contact-dashed);
  padding-bottom: 14px;
}

.page-contact .contact-block-head__index {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--red-orange);
}

.page-contact .contact-block-head h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.page-contact .contact-channel {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-contact .contact-channel__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--contact-dashed);
  align-items: start;
  position: relative;
}

.page-contact .contact-channel__item:last-child {
  border-bottom: none;
}

.page-contact .contact-channel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--deep-blue);
  color: #fff;
  border-radius: 4px 12px 4px 12px;
  flex: 0 0 auto;
}

.page-contact .contact-channel__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.page-contact .contact-channel__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted-ink);
}

.page-contact .contact-channel__value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: break-word;
}

.page-contact .contact-channel__value--wrap {
  font-size: 16px;
  padding-right: 8px;
}

.page-contact .contact-channel__hint {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-ink);
  margin-top: 4px;
}

.page-contact .contact-channel__action {
  grid-column: 1 / -1;
  justify-self: stretch;
  display: inline-block;
  text-align: center;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  border-radius: 2px 10px 2px 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: var(--red-orange);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-contact .contact-channel__action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.page-contact .contact-channel__action--copy {
  background: transparent;
  color: var(--deep-blue);
  border: 1px solid var(--deep-blue);
}

.page-contact .contact-channel__action--copy:hover {
  background: var(--deep-blue);
  color: #fff;
}

.page-contact .contact-channel__badge {
  position: relative;
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cobalt);
  background: rgba(30, 90, 138, 0.1);
  border: 1px solid rgba(30, 90, 138, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: default;
}

.page-contact .contact-channel__tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 240px;
  max-width: 80vw;
  background: var(--deep-blue);
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 14px;
  border-radius: 4px 12px 4px 12px;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.page-contact .contact-channel__tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  width: 10px;
  height: 10px;
  background: var(--deep-blue);
  transform: rotate(45deg);
}

.page-contact .contact-channel__badge:hover .contact-channel__tooltip,
.page-contact .contact-channel__badge:focus-within .contact-channel__tooltip {
  opacity: 1;
  transform: translateY(0);
}

.page-contact .contact-card__visual {
  order: 1;
  position: relative;
}

.page-contact .contact-envelope {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 8px),
    var(--deep-blue);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.page-contact .contact-envelope::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed var(--contact-envelope-line);
  border-radius: 4px 16px 4px 16px;
  pointer-events: none;
}

.page-contact .contact-envelope__img {
  display: block;
  max-width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 4px 16px 4px 16px;
  position: relative;
  z-index: 1;
}

.page-contact .contact-envelope__caption {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--highlight);
  padding: 6px 12px;
  border-radius: 2px 8px 2px 8px;
  transform: rotate(3deg);
  box-shadow: var(--shadow-soft);
}

.page-contact .contact-envelope__code {
  position: absolute;
  bottom: 30px;
  left: 28px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 10px;
  border-radius: 2px 8px 2px 8px;
  background: rgba(18, 58, 92, 0.4);
}

.page-contact .contact-thread {
  position: relative;
  height: 34px;
  margin: 0 16px;
  border-bottom: 2px dashed var(--contact-dashed);
  display: none;
}

.page-contact .contact-thread__disc {
  position: absolute;
  left: 50%;
  top: -7px;
  width: 12px;
  height: 12px;
  background: var(--red-orange);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--cream);
}

.page-contact .contact-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 40px 0;
}

.page-contact .contact-split__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.page-contact .contact-split__index {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 24px;
  color: var(--red-orange);
  letter-spacing: -0.02em;
}

.page-contact .contact-split__head h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.page-contact .contact-split__body {
  min-width: 0;
}

.page-contact .contact-mail .contact-split {
  border-top: 1px solid var(--contact-dashed);
}

.page-contact .contact-mail__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 14px;
}

.page-contact .contact-mail__list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 0;
}

.page-contact .contact-mail__list li {
  position: relative;
  padding: 10px 0 10px 40px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  border-bottom: 1px dashed var(--contact-dashed);
}

.page-contact .contact-mail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 22px;
  height: 2px;
  background: var(--red-orange);
  transform: skew(-35deg);
}

.page-contact .contact-mail__tip {
  font-size: 15px;
  color: var(--muted-ink);
  margin: 0;
}

.page-contact .contact-textlink {
  color: var(--cobalt);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 700;
}

.page-contact .contact-textlink:hover {
  color: var(--deep-blue);
  text-decoration-color: var(--red-orange);
}

.page-contact .contact-address .contact-split {
  border-top: 1px solid var(--contact-dashed);
}

.page-contact .contact-address__card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border-radius: 4px 16px 4px 16px;
  padding: 20px;
  position: relative;
  margin-bottom: 24px;
}

.page-contact .contact-address__card::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 30px;
  right: 30px;
  height: 12px;
  border-left: 1px dashed var(--contact-dashed);
  border-right: 1px dashed var(--contact-dashed);
}

.page-contact .contact-address__pin {
  flex: 0 0 auto;
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  background: var(--red-orange);
  transform: rotate(-45deg);
  margin-top: 4px;
}

.page-contact .contact-address__pin::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  top: 8px;
  left: 8px;
  transform: rotate(45deg);
}

.page-contact .contact-address__line {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.4;
}

.page-contact .contact-address__note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-ink);
  margin: 6px 0 0;
}

.page-contact .contact-address__extra {
  display: grid;
  gap: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-ink);
}

.page-contact .contact-address__extra p {
  margin: 0;
}

.page-contact .contact-promise {
  background: var(--deep-blue);
  position: relative;
  overflow: hidden;
  margin-top: 24px;
}

.page-contact .contact-promise::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red-orange) 0%, var(--red-orange) 30%, var(--highlight) 30%, var(--highlight) 50%, var(--cobalt) 50%, var(--cobalt) 100%);
}

.page-contact .contact-promise::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.page-contact .contact-promise .contact-split {
  position: relative;
  z-index: 1;
  padding: 48px 0 52px;
}

.page-contact .contact-promise .contact-split__head h2 {
  color: #fff;
}

.page-contact .contact-promise .contact-split__index {
  color: var(--highlight);
}

.page-contact .contact-promise__lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.page-contact .contact-promise__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-contact .contact-promise__list li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px 14px 4px 14px;
  padding: 16px;
  display: flex;
  gap: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.page-contact .contact-promise__list li:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.page-contact .contact-promise__no {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--highlight);
  line-height: 1;
  flex: 0 0 auto;
  padding-top: 2px;
}

.page-contact .contact-promise__list h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}

.page-contact .contact-promise__list p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.page-contact .contact-promise__visual {
  margin-top: 24px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding-top: 22px;
}

.page-contact .contact-promise__visual-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin: 0 0 12px;
}

.page-contact .contact-promise__img {
  max-width: 100%;
  height: auto;
  border-radius: 4px 14px 4px 14px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 720px) {
  .page-contact .contact-hero {
    padding: 28px 0 56px;
  }

  .page-contact .contact-hero__layout {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
    align-items: end;
  }

  .page-contact .contact-card {
    grid-template-columns: 62fr 38fr;
  }

  .page-contact .contact-card__info {
    order: 1;
    padding: 36px 36px 32px;
  }

  .page-contact .contact-card__visual {
    order: 2;
  }

  .page-contact .contact-envelope {
    height: 100%;
    padding: 24px;
  }

  .page-contact .contact-channel__item {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
  }

  .page-contact .contact-channel__action {
    grid-column: auto;
    justify-self: center;
    align-self: center;
    padding: 8px 16px;
  }

  .page-contact .contact-channel__badge {
    grid-column: auto;
    align-self: center;
  }

  .page-contact .contact-thread {
    display: block;
  }

  .page-contact .contact-split {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    padding: 48px 0;
  }

  .page-contact .contact-split--promise {
    grid-template-columns: 4fr 8fr;
  }

  .page-contact .contact-promise .contact-split {
    padding: 56px 0 60px;
  }

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

  .page-contact .contact-promise__visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
  }

  .page-contact .contact-promise__visual-title {
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .page-contact .contact-card__info {
    padding: 44px 44px 38px;
  }

  .page-contact .contact-envelope__img {
    max-width: 380px;
  }

  .page-contact .contact-split__head h2 {
    font-size: 30px;
  }
}
