.contact-page {
  color: #222524;
  --secondary: "DM Mono",monospace;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  display: flex;
  overflow-x: clip;
}

.contact-page header {
  flex: 0 0 102px;
  height: 102px;
  min-height: 0;
  position: relative;
}

.contact-page .contact-studio {
  flex: 1;
  width: 94vw;
  max-width: none;
  min-height: 0;
  margin: 0 auto;
  padding: 0 0 18px;
  display: block;
}

.contact-hero {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr) 44px;
  align-items: center;
  gap: 3%;
  height: 100%;
  min-height: 0;
  display: grid;
  position: relative;
}

.telephone-scene {
  isolation: isolate;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  position: relative;
  container-type: size;
}

.connected-phone {
  left: calc(-1 * var(--telephone-page-left, 3vw));
  width: min(calc(100% + var(--telephone-page-left, 3vw)),120cqh);
  aspect-ratio: 3 / 2;
  position: absolute;
  top: 50%;
  transform: translateY(-38%);
}

.connected-phone > img {
  object-fit: contain;
  width: 100%;
  height: auto;
  display: block;
}

.phone-js .connected-phone:not(.motion-ready):not(.motion-fallback), .connected-phone.motion-ready > img {
  visibility: hidden;
}

.telephone-canvas {
  pointer-events: none;
  width: 100%;
  height: 124.414%;
  position: absolute;
  top: -24.4141%;
  left: 0;
}

.contact-copy {
  min-width: 0;
  padding: 0 2% 0 0;
  position: relative;
  container-type: inline-size;
}

.contact-eyebrow {
  font: 400 clamp(16px,1.35vw,22px)/1.4 var(--secondary);
  letter-spacing: 0;
  margin: 0 0 clamp(16px, 3vh, 32px);
}

.contact-page .contact-copy h1 {
  font: 600 min(10.2cqi,9.5dvh,98px)/1.02 var(--primary);
  letter-spacing: -.05em;
  margin: 0 0 clamp(18px, 3vh, 30px);
}

.title-window {
  margin-bottom: -.12em;
  padding-bottom: .12em;
  display: block;
  overflow: hidden;
}

.title-window > span {
  white-space: nowrap;
  display: block;
}

.contact-brief {
  font: 500 clamp(18px,min(1.7vw,3.3dvh),26px)/1.4 var(--primary);
  max-width: 440px;
  margin: 0 0 clamp(22px, 4vh, 36px);
}

.hero-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  display: flex;
}

.contact-tabs {
  color: #fff;
  isolation: isolate;
  text-transform: uppercase;
  white-space: nowrap;
  background: none;
  border: 0;
  gap: 4px;
  padding: 0;
  font: 12px / 1 DM Mono, monospace;
  text-decoration: none;
  display: inline-flex;
  position: relative;
}

.contact-tabs:before {
  content: "";
  z-index: -1;
  background: #222321;
  height: 24px;
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  transform: translateY(-50%);
}

.button-part {
  background: #222321;
  border-radius: 9px;
  place-items: center;
  min-height: 44px;
  padding: 0 19px;
  transition: background .3s;
  display: grid;
  position: relative;
}

.word-window {
  height: 1.2em;
  line-height: 1.2;
  display: block;
  overflow: hidden;
}

.word-roll {
  transition: transform .55s cubic-bezier(.22, .75, .2, 1);
  display: block;
}

.word-roll > span {
  white-space: nowrap;
  height: 1.2em;
  line-height: 1.2;
  display: block;
}

.button-part:nth-child(2) .word-roll {
  transition-delay: 45ms;
}

.contact-tabs:focus-visible {
  outline-offset: 5px;
  outline: 2px solid #527484;
}

.contact-tabs:focus-visible .word-roll {
  transform: translateY(-50%);
}

@media (hover: hover) {
  .contact-tabs:hover .word-roll {
    transform: translateY(-50%);
  }

  .contact-tabs:hover .button-part, .contact-tabs:hover:before {
    background: #30312e;
  }
}

.contact-socials {
  flex-direction: column;
  justify-content: center;
  align-self: center;
  align-items: center;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.social-key {
  color: #222524;
  background: #e3e0d54d;
  border: 1px solid #22252466;
  border-radius: 7px;
  place-items: center;
  width: 44px;
  height: 44px;
  text-decoration: none;
  transition: background .25s, color .25s, box-shadow .25s;
  display: grid;
  box-shadow: inset 0 1px #ffffff70, 0 2px #22252430;
}

.social-key svg {
  fill: currentColor;
  width: 21px;
  height: 21px;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  display: block;
}

.social-key:focus-visible {
  outline-offset: 4px;
  color: #f0ede5;
  background: #222524;
  outline: 2px solid #527484;
}

@media (hover: hover) {
  .social-key:hover {
    color: #f0ede5;
    background: #222524;
    box-shadow: inset 0 1px #ffffff30, 0 3px #22252440;
  }

  .social-key:hover svg {
    transform: translateY(-2px);
  }
}

@media (width <= 900px) and (orientation: portrait) {
  .contact-page header {
    flex-basis: 128px;
    gap: 10px;
    height: 128px;
    margin: 0 20px;
    padding: 10px 0;
  }

  .contact-page .contact-studio {
    width: 92vw;
    padding: 8px 0 10px;
  }

  .contact-hero {
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: stretch;
    gap: 16px;
  }

  .contact-copy {
    grid-area: 1 / 1 / auto / -1;
    padding: 0;
  }

  .telephone-scene {
    grid-area: 2 / 1;
  }

  .contact-socials {
    grid-area: 2 / 2;
    gap: 10px;
  }

  .contact-eyebrow {
    margin-bottom: 12px;
    font-size: clamp(14px, 2.8vw, 18px);
  }

  .contact-page .contact-copy h1 {
    margin-bottom: 14px;
  }

  .contact-brief {
    max-width: 470px;
    margin-bottom: 18px;
    font-size: clamp(16px, min(3.6vw, 2.6dvh), 21px);
    line-height: 1.35;
  }

  .hero-actions {
    gap: 10px 16px;
  }

  .contact-tabs {
    font-size: 10px;
  }

  .button-part {
    border-radius: 8px;
    min-height: 40px;
    padding: 0 14px;
  }

  .contact-tabs:before {
    height: 22px;
  }
}

@media (height <= 650px) and (orientation: portrait) {
  .contact-page header {
    flex-basis: 114px;
    gap: 6px;
    height: 114px;
    padding: 6px 0;
  }

  .contact-page .contact-studio {
    padding-top: 4px;
  }

  .contact-eyebrow {
    margin-bottom: 8px;
  }

  .contact-page .contact-copy h1 {
    margin-bottom: 10px;
  }

  .contact-brief {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .contact-hero {
    gap: 8px;
  }

  .button-part {
    min-height: 38px;
    padding: 0 12px;
  }
}

@media (height <= 550px) and (orientation: landscape) {
  .contact-page header {
    flex-wrap: nowrap;
    flex-basis: 76px;
    gap: 12px;
    height: 76px;
    margin: 0 3vw;
    padding: 0;
  }

  .contact-page header .track-nav {
    width: auto;
  }

  .contact-page header .brand-name {
    font-size: 24px;
  }

  .contact-page .contact-studio {
    padding-bottom: 8px;
  }

  .contact-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) 44px;
    gap: 2%;
  }

  .contact-page .contact-copy h1 {
    margin-bottom: 12px;
  }

  .contact-eyebrow {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .contact-brief {
    max-width: 340px;
    margin-bottom: 14px;
    font-size: 16px;
  }

  .contact-tabs {
    font-size: 10px;
  }

  .button-part {
    min-height: 38px;
    padding: 0 12px;
  }

  .hero-actions {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page *, .contact-page :before {
    transition: none !important;
    animation: none !important;
  }

  .contact-tabs:hover .word-roll, .contact-tabs:focus-visible .word-roll {
    transform: none;
  }
}
