/* ==========================================================================
   Ghandour Global Group — contact.html stylesheet
   Requires css/base.css to be loaded first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   16. Contact page - signal tower communication experience
   -------------------------------------------------------------------------- */

.contact-flow {
  --contact-gold: #e0a63f;
  --contact-gold-2: #ffcf80;
  --contact-ice: #bfe3ff;
  --contact-ease: cubic-bezier(0.3, 1.3, 0.5, 1);
  isolation: isolate;
  overflow-x: clip;
  background:
    radial-gradient(circle at 78% 16%, rgba(224, 166, 63, 0.14), transparent 26rem),
    radial-gradient(circle at 20% 78%, rgba(191, 227, 255, 0.1), transparent 28rem),
    linear-gradient(180deg, #010b1b 0%, #041331 38%, #020914 72%, #010b1b 100%);
}

.contact-flow .container,
.contact-flow section {
  position: relative;
  z-index: 1;
}

.contact-energy-rail {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 1;
  pointer-events: none;
}

.contact-energy-rail-track {
  position: absolute;
  inset: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(224, 166, 63, 0.32) 10%,
    rgba(255, 207, 128, 0.28) 45%,
    rgba(191, 227, 255, 0.3) 90%,
    transparent 100%
  );
}

.contact-energy-rail-pulse {
  position: absolute;
  left: 50%;
  top: calc(var(--contact-progress, 0) * 100%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 207, 128, 0.95), transparent 70%);
  box-shadow: 0 0 24px 6px rgba(224, 166, 63, 0.4);
}

.contact-hero,
.contact-interface {
  min-height: calc(100svh - var(--header-h, 72px));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.contact-form-section {
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

.contact-hero-grid,
.contact-interface-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.contact-copy h1,
.contact-copy h2,
.contact-interface-copy h2,
.contact-form-copy h2 {
  color: var(--color-white);
  text-wrap: balance;
}

.contact-copy h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 0.96;
}

.contact-copy h2,
.contact-interface-copy h2,
.contact-form-copy h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1;
}

.contact-copy p,
.contact-interface-copy p,
.contact-form-copy p,
.contact-panel p {
  color: rgba(232, 237, 247, 0.82);
}

.contact-copy .lead {
  max-width: 58ch;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.contact-breadcrumb a,
.contact-breadcrumb li {
  color: rgba(232, 237, 247, 0.7);
}

.contact-breadcrumb a:hover {
  color: var(--contact-gold);
}

/* --- Hero stage: signal tower --------------------------------------------- */

.contact-tower-stage {
  position: relative;
  width: min(86vw, 560px);
  min-height: 560px;
  margin-inline: auto;
  perspective: 1200px;
  transform-style: preserve-3d;
  --pos-scale: 1;
  cursor: pointer;
  transform: rotateX(var(--contact-tilt-x, 0deg)) rotateY(var(--contact-tilt-y, 0deg));
  transition: transform 0.5s var(--contact-ease);
}

.contact-grid-floor {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 4%;
  height: 42%;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(224, 166, 63, 0.3) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 50px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 50px),
    radial-gradient(ellipse, rgba(224, 166, 63, 0.14), transparent 72%);
  border: 1px solid rgba(224, 166, 63, 0.2);
  transform: rotateX(68deg) translateZ(-70px);
  transform-origin: center bottom;
  box-shadow: 0 0 34px rgba(224, 166, 63, 0.1);
}

.contact-base-ring {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 46%;
  aspect-ratio: 1;
  border: 1px dashed rgba(191, 227, 255, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(66deg) translateZ(6px);
  /* Slowed from 42s - purely decorative ambient ring, calmer. */
  animation: contact-spin 50s linear infinite;
}

@keyframes contact-spin {
  to { transform: translate(-50%, -50%) rotateX(66deg) translateZ(6px) rotateZ(360deg); }
}

.contact-tower {
  position: absolute;
  left: 50%;
  top: 66%;
  width: 1px;
  height: 1px;
  transform-style: preserve-3d;
  opacity: calc(0.45 + var(--contact-tower-enter, 1) * 0.55);
  transform:
    translate(-50%, -50%)
    translateZ(20px)
    scale(calc(0.7 + var(--contact-tower-enter, 1) * 0.3))
    rotateX(14deg)
    rotateY(calc(20deg + var(--contact-tower-rot, 0deg)));
  transition: transform 0.6s var(--contact-ease), opacity 0.6s var(--contact-ease);
}

/* A simple call-receiver glyph, not a signal tower or an antique phone -
   the same "handset" silhouette used for the call icon on the home page,
   just much larger and centered on the tower's anchor point so the existing
   entrance/rotation/tilt transforms on #contact-tower keep working
   unchanged. Filled gold and lifted off the floor with a drop-shadow so it
   still reads as an object standing in the 3D scene, not a flat sticker. */
.contact-phone-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  height: 118px;
  transform: translate(-50%, -50%);
  fill: var(--contact-gold-2);
  filter:
    drop-shadow(0 0 18px rgba(224, 166, 63, 0.55))
    drop-shadow(0 22px 20px rgba(1, 6, 16, 0.55));
}

/* Beacon: a small pulsing "active call" light glowing from behind the
   handset's earpiece/mouthpiece joint. */
.contact-beacon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--contact-gold-2), var(--contact-gold) 70%);
  box-shadow: 0 0 16px rgba(224, 166, 63, 0.7);
  animation: contact-beacon-pulse 2.6s ease-in-out infinite;
}

@keyframes contact-beacon-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(224, 166, 63, 0.55); }
  50% { box-shadow: 0 0 26px rgba(224, 166, 63, 0.9); }
}

/* Signal rings: broadcast outward from behind the handset, like the call
   the phone represents is actively going out. */
.contact-signal-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 207, 128, 0.7);
  transform: translate(-50%, -50%);
  animation: contact-signal-broadcast 2.8s ease-out infinite;
}

.contact-signal-ring--two { animation-delay: 0.9s; }
.contact-signal-ring--three { animation-delay: 1.8s; }

@keyframes contact-signal-broadcast {
  0% { transform: translate(-50%, -50%) translateY(-185px) scale(1); opacity: 0.75; }
  100% { transform: translate(-50%, -50%) translateY(-185px) scale(3.2); opacity: 0; }
}

[data-contact-filter="partnerships"] .contact-beacon,
[data-contact-filter="partnerships"] .contact-signal-ring {
  background: radial-gradient(circle, var(--contact-gold-2), var(--contact-gold) 70%);
  border-color: rgba(255, 207, 128, 0.75);
}

[data-contact-filter="subsidiaries"] .contact-beacon {
  background: radial-gradient(circle, #ffffff, var(--contact-ice) 70%);
}

[data-contact-filter="subsidiaries"] .contact-signal-ring {
  border-color: rgba(191, 227, 255, 0.8);
}

[data-contact-filter="investment"] .contact-beacon {
  background: radial-gradient(circle, #ffd6b8, #d97757 70%);
}

[data-contact-filter="investment"] .contact-signal-ring {
  border-color: rgba(217, 119, 87, 0.75);
}

[data-contact-filter="general"] .contact-beacon {
  background: radial-gradient(circle, #ffffff, #e8edf7 70%);
}

[data-contact-filter="general"] .contact-signal-ring {
  border-color: rgba(232, 237, 247, 0.7);
}

[data-contact-filter="careers"] .contact-beacon {
  background: radial-gradient(circle, #8ff28f, var(--color-green) 70%);
}

[data-contact-filter="careers"] .contact-signal-ring {
  border-color: rgba(31, 204, 31, 0.7);
}

/* --- Floating contact cards + connection lines ----------------------------- */

.contact-card {
  position: absolute;
  left: 50%;
  top: 66%;
  width: 130px;
  height: 76px;
  border-radius: var(--radius-md);
  transform-style: preserve-3d;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(4, 13, 31, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 10px 12px 0 rgba(1, 6, 16, 0.4);
  opacity: calc(0.7 + var(--contact-cards-out, 1) * 0.3);
  /* Cards sit at 55% of their resting spread even at beat 0, so they
     never fully collapse onto the hub (which read as a rendering bug -
     overlapping boxes - rather than an intentional entrance state) -
     scrolling still carries them the rest of the way out. */
  transform:
    translate3d(
      calc(var(--px) * (0.55 + var(--contact-cards-out, 1) * 0.45) * var(--pos-scale)),
      calc((var(--py) - 90px) * (0.55 + var(--contact-cards-out, 1) * 0.45) * var(--pos-scale)),
      calc(var(--pz) * var(--pos-scale))
    )
    scale(calc(0.78 + var(--contact-cards-out, 1) * 0.22));
  transition: transform 0.6s var(--contact-ease), opacity 0.5s ease, box-shadow 0.4s ease;
}

.contact-card::before,
.contact-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.contact-card::before {
  top: 6px;
  right: -12px;
  width: 12px;
  height: calc(100% - 8px);
  border-radius: 0 9px 9px 0;
  background: rgba(2, 8, 18, 0.72);
  transform-origin: left center;
  transform: rotateY(84deg);
}

.contact-card::after {
  left: 10px;
  bottom: -11px;
  width: calc(100% - 8px);
  height: 11px;
  border-radius: 0 0 9px 9px;
  background: rgba(2, 8, 18, 0.78);
  transform-origin: top center;
  transform: rotateX(-84deg);
}

.contact-card-latch {
  position: absolute;
  inset: -5px;
  border-radius: 15px;
  border: 2px solid transparent;
  pointer-events: none;
}

.contact-card.is-forward .contact-card-latch {
  animation: contact-latch-flash 0.55s var(--contact-ease);
}

@keyframes contact-latch-flash {
  0% { border-color: transparent; }
  45% { border-color: rgba(255, 207, 128, 0.85); }
  100% { border-color: transparent; }
}

.contact-card h4 {
  position: absolute;
  left: 12px;
  top: 10px;
  margin: 0;
  color: var(--color-white);
  font-size: 0.85rem;
}

.contact-card span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  right: 10px;
  font-size: 0.72rem;
  color: rgba(232, 237, 247, 0.76);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-card--email { --px: -130px; --py: -75px; --pz: 45px; border-color: rgba(232, 237, 247, 0.28); }
.contact-card--hq { --px: 130px; --py: -75px; --pz: 45px; border-color: rgba(255, 207, 128, 0.3); }
.contact-card--melon { --px: 0px; --py: 150px; --pz: 45px; border-color: rgba(31, 204, 31, 0.32); }

.contact-card--hq {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(160deg, rgba(255, 207, 128, 0.14), rgba(4, 13, 31, 0.94));
  background-size: 14px 14px, 14px 14px, auto;
}

.contact-card-pin {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 8px;
  height: 8px;
}

.contact-card-pin-dot {
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: var(--contact-gold-2);
  box-shadow: 0 0 8px rgba(255, 207, 128, 0.8);
}

.contact-card-pin-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 207, 128, 0.7);
  animation: contact-pin-pulse 2.4s ease-out infinite;
}

@keyframes contact-pin-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

[data-contact-filter="general"] .contact-card--email,
[data-contact-filter="partnerships"] .contact-card--hq,
[data-contact-filter="subsidiaries"] .contact-card--melon {
  transform:
    translate3d(
      calc(var(--px) * 1.1 * var(--pos-scale)),
      calc((var(--py) - 90px) * 1.1 * var(--pos-scale)),
      calc((var(--pz) + 25px) * var(--pos-scale))
    )
    scale(1.1);
  box-shadow: 10px 12px 0 rgba(1, 6, 16, 0.4), 0 0 20px rgba(255, 207, 128, 0.28);
}

.contact-line {
  position: absolute;
  left: 50%;
  top: 66%;
  width: 155px;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255, 207, 128, 0.78), transparent);
  transform: translateY(-50%) rotate(var(--line-angle)) scaleX(var(--contact-lines-draw, 1));
  transition: transform 0.5s var(--contact-ease), box-shadow 0.4s ease, background 0.4s ease;
}

.contact-line.is-lit {
  animation: contact-line-redraw 0.5s var(--contact-ease);
}

@keyframes contact-line-redraw {
  0% { transform: translateY(-50%) rotate(var(--line-angle)) scaleX(0); }
  100% { transform: translateY(-50%) rotate(var(--line-angle)) scaleX(1); }
}

.contact-line--email { --line-angle: -150deg; }
.contact-line--hq { --line-angle: -30deg; }
.contact-line--melon { --line-angle: 90deg; }

.contact-line.is-lit::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 8px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  animation: contact-line-flow 1.4s ease-in-out infinite;
}

@keyframes contact-line-flow {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* --- Interface / purpose console ------------------------------------------- */

.contact-console {
  border-radius: var(--radius-xl);
  padding: clamp(1rem, 2vw, 1.35rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 38%),
    rgba(4, 11, 27, 0.72);
  backdrop-filter: blur(var(--blur-md));
  border: 1px solid rgba(224, 166, 63, 0.22);
  box-shadow:
    var(--shadow-console),
    inset 0 0 30px rgba(224, 166, 63, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact-console-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.contact-tab {
  position: relative;
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(232, 237, 247, 0.14);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(232, 237, 247, 0.78);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.25s var(--contact-ease), border-color 0.25s var(--contact-ease), color 0.25s var(--contact-ease), transform 0.25s var(--contact-ease);
}

.contact-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--contact-gold);
  box-shadow: 0 0 10px rgba(224, 166, 63, 0.7);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.contact-tab:hover,
.contact-tab:focus,
.contact-tab:focus-visible,
.contact-tab.is-active {
  color: var(--color-white);
  border-color: rgba(224, 166, 63, 0.55);
  background: rgba(224, 166, 63, 0.14);
  transform: translateY(-2px);
}

.contact-tab.is-active::after {
  width: 60%;
}

.contact-console-screen {
  position: relative;
  min-height: 260px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 72% 30%, rgba(224, 166, 63, 0.12), transparent 34%),
    linear-gradient(160deg, rgba(9, 24, 53, 0.82), rgba(2, 6, 16, 0.82));
  backdrop-filter: blur(8px);
  background-size: 42px 42px, 42px 42px, auto, auto;
  border: 1px solid rgba(232, 237, 247, 0.1);
}

.contact-panel {
  position: absolute;
  inset: 0;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s var(--contact-ease);
}

.contact-panel.is-active {
  opacity: calc(0.5 + var(--contact-console-focus, 1) * 0.5);
  transform: none;
}

.contact-panel h3 {
  max-width: 22ch;
  color: var(--color-white);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
}

.contact-panel p:not(.eyebrow) {
  max-width: 34ch;
}

/* --- Contact form ------------------------------------------------------------ */

.contact-form-copy {
  max-width: 60ch;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.contact-form-copy h2 {
  margin-inline: auto;
}

.contact-form-panel {
  position: relative;
  display: grid;
  gap: 1.25rem;
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%),
    rgba(4, 11, 27, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(224, 166, 63, 0.2);
  box-shadow:
    0 30px 54px rgba(0, 0, 0, 0.36),
    inset 0 0 26px rgba(224, 166, 63, 0.06);
  opacity: calc(0.6 + var(--contact-form-ready, 1) * 0.4);
  transform: translateY(calc((1 - var(--contact-form-ready, 1)) * 18px));
  transition: opacity 0.5s var(--contact-ease), transform 0.5s var(--contact-ease);
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-field label {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.82rem;
  color: rgba(232, 237, 247, 0.85);
}

.contact-field input,
.contact-field textarea,
.contact-field select {
  min-height: 48px;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(232, 237, 247, 0.16);
  color: var(--color-white);
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--contact-ease), box-shadow 0.25s var(--contact-ease), background 0.25s var(--contact-ease);
}

.contact-field textarea {
  min-height: 130px;
  resize: vertical;
  padding-block: 0.85rem;
}

.contact-field select {
  cursor: pointer;
}

/* Dropdown options render with the OS/browser's own popup UI, which
   ignores most of the select's styling and falls back to a light native
   background - explicit colors here keep the option list on the same
   dark navy/white pairing as the rest of the page instead of that
   light default (most browsers honor option color/background; a few
   still override with system colors, which is outside CSS's control). */
.contact-field select option {
  color: var(--color-white);
  background: #040b1b;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(232, 237, 247, 0.4);
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
  outline: none;
  border-color: var(--contact-gold);
  background: rgba(224, 166, 63, 0.08);
  box-shadow: 0 0 0 3px rgba(224, 166, 63, 0.18), 0 0 18px rgba(224, 166, 63, 0.22);
}

.contact-field-bracket {
  position: absolute;
  inset: -4px;
  top: 1.6rem;
  border-radius: 14px;
  border: 1.5px solid transparent;
  pointer-events: none;
  transition: border-color 0.3s var(--contact-ease);
}

.contact-field:focus-within .contact-field-bracket {
  border-color: rgba(255, 207, 128, 0.45);
}

.contact-submit {
  position: relative;
  min-height: 52px;
  padding-inline: 2.2rem;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, var(--contact-gold), var(--contact-gold-2));
  color: #1a1206;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  justify-self: start;
  transition: transform 0.25s var(--contact-ease), box-shadow 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 14px 24px rgba(224, 166, 63, 0.28);
}

.contact-submit:hover,
.contact-submit:focus-visible {
  transform: translateY(-2px);
}

/* This button had no keyboard-focus indicator at all - Tabbing to it fell
   through to whatever bare default the browser supplies against a gold
   pill on a dark page, unlike every other interactive element on this
   page (see .contact-field input/textarea/select:focus above), which all
   get a matching gold ring. */
.contact-submit:focus-visible {
  outline: none;
  box-shadow: 0 14px 24px rgba(224, 166, 63, 0.28), 0 0 0 3px rgba(224, 166, 63, 0.35);
}

.contact-submit:active {
  transform: translateY(0) scale(0.98);
  transition-duration: var(--duration-instant);
}

.contact-submit:disabled {
  cursor: default;
  opacity: 0.6;
  transform: none;
}

.contact-submit-confirm {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.contact-submit.is-confirming {
  opacity: 0.92;
}

.contact-submit.is-confirming .contact-submit-label {
  display: none;
}

.contact-submit.is-confirming .contact-submit-confirm {
  display: inline-flex;
}

.contact-submit-check {
  width: 14px;
  height: 9px;
  border-left: 2px solid #1a1206;
  border-bottom: 2px solid #1a1206;
  transform: rotate(-45deg);
  transform-origin: center;
}

/* --- Responsive -------------------------------------------------------------- */

@media (max-width: 900px) {
  .contact-hero,
  .contact-interface {
    min-height: auto;
    padding-block: clamp(4rem, 14vw, 6rem);
  }

  .contact-hero-grid,
  .contact-interface-grid {
    grid-template-columns: 1fr;
  }

  .contact-tower-stage {
    width: min(92vw, 400px);
    min-height: 640px;
    --pos-scale: 0.65;
  }

  .contact-base-ring {
    display: none;
  }

  .contact-signal-ring--two,
  .contact-signal-ring--three {
    display: none;
  }

  .contact-grid-floor {
    top: 560px;
    bottom: auto;
    height: 130px;
  }

  .contact-tower {
    top: 540px;
  }

  .contact-card {
    position: static;
    margin-inline: auto;
    width: min(88%, 280px);
    height: auto;
    min-height: 64px;
    padding-block: 0.75rem;
    opacity: 1;
    transform: none !important;
  }

  .contact-card + .contact-card {
    margin-top: 0.75rem;
  }

  .contact-card h4,
  .contact-card span {
    position: static;
    display: block;
  }

  .contact-card::before,
  .contact-card::after {
    display: none;
  }

  .contact-console-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-console-screen {
    min-height: 320px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contact-copy h1 {
    font-size: clamp(2.05rem, 13vw, 3rem);
  }

  .contact-copy h2,
  .contact-interface-copy h2,
  .contact-form-copy h2 {
    font-size: clamp(1.7rem, 10vw, 2.5rem);
  }

  .contact-tower-stage {
    min-height: 580px;
  }

  /* The 900px breakpoint's top: 540px/560px offsets were calibrated for
     that breakpoint's 640px-tall stage. Below 600px the stage drops to a
     much shorter box for the now-stacked static cards, but the tower and
     floor kept the same fixed offsets - pushing both well past the
     stage's (and the hero's overflow: hidden) bottom edge, so only the
     beacon peeked out and the rest of the tower and the floor were
     invisible. Pulling both up to sit just under the stacked cards. */
  .contact-tower {
    top: 450px;
  }

  .contact-grid-floor {
    top: 470px;
    height: 80px;
  }

  .contact-console {
    padding: 0.8rem;
  }

  .contact-panel {
    padding: 1.2rem;
  }

  .contact-form-panel {
    padding: 1.25rem;
  }

  .contact-field input,
  .contact-field textarea,
  .contact-field select {
    padding-inline: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-base-ring,
  .contact-beacon,
  .contact-signal-ring,
  .contact-card-pin-ring,
  .contact-card.is-forward .contact-card-latch,
  .contact-line.is-lit,
  .contact-line.is-lit::after {
    animation: none;
  }

  .contact-tower-stage,
  .contact-tower,
  .contact-card,
  .contact-line,
  .contact-tab,
  .contact-tab::after,
  .contact-panel,
  .contact-form-panel,
  .contact-field input,
  .contact-field textarea,
  .contact-field select,
  .contact-field-bracket,
  .contact-submit {
    transition: none;
  }
}
