/* Atlas — Contact page styles */

/* ─── Hero ─────────────────────────────────────────────────── */
.ct-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 40px;
}
.ct-hero__inner {
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.ct-hero__h {
  font-size: clamp(72px, 11vw, 160px);
  line-height: 0.92;
  margin: 0;
}
.ct-hero__sub {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--text);
  max-width: 62ch;
}

/* ─── Layout ────────────────────────────────────────────────── */
.ct { padding: 40px 0 clamp(80px, 12vw, 140px); }
.ct__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: flex-start;
}
@media (max-width: 980px) {
  .ct__grid { grid-template-columns: 1fr; }
}

/* ─── Left column: contact info ────────────────────────────── */
.ct-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
@media (max-width: 980px) {
  .ct-info { position: static; }
}

.ct-info__head { display: flex; flex-direction: column; gap: 14px; }
.ct-info__h {
  font-size: clamp(34px, 4.2vw, 56px);
  margin: 0;
  max-width: 18ch;
  line-height: 0.98;
}
.ct-info__head p { font-size: 15px; line-height: 1.6; max-width: 44ch; }

/* Signal visual */
.signal { width: 100%; }
.signal__frame {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 200, 255, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.5);
}
.signal__frame::before,
.signal__frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--blue);
}
.signal__frame::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.signal__frame::after  { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

.signal__hud-top,
.signal__hud-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  padding: 4px 4px;
}
.signal__hud-top {
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 10px;
  padding-bottom: 8px;
}
.signal__hud-bot {
  border-top: 1px solid var(--border-soft);
  margin-top: 10px;
  padding-top: 8px;
}

.signal__live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3b30;
  margin-right: 6px;
  box-shadow: 0 0 8px rgba(255, 59, 48, 0.7);
  animation: signal-blink 1.4s var(--ease-in-out) infinite;
}
@keyframes signal-blink { 0%,100% { opacity: 1 } 50% { opacity: 0.3 } }

.signal__stage {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 3px;
}

/* Pulse rings: a synced ring grows + fades from each pulse */
.signal__pulse .signal__ring {
  transform-origin: center;
  transform-box: fill-box;
  animation: pulse-ring 3.2s var(--ease-out) infinite;
  animation-delay: var(--d, 0s);
  opacity: 0;
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(7); opacity: 0; }
}
.signal__hq-ring {
  transform-origin: center;
  transform-box: fill-box;
  animation: pulse-ring 3.2s var(--ease-out) infinite;
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .signal__pulse .signal__ring,
  .signal__hq-ring,
  .signal__live-dot { animation: none; }
}

/* Channel list */
.ct-info__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ct-info__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  transition: all var(--t-med) var(--ease-out);
}
.ct-info__item:not(.ct-info__item--static):hover {
  border-color: var(--blue);
  background: rgba(0, 200, 255, 0.04);
  transform: translateX(3px);
}
.ct-info__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all var(--t-med) var(--ease-out);
  flex-shrink: 0;
}
.ct-info__item:not(.ct-info__item--static):hover .ct-info__icon {
  border-color: var(--blue);
  color: var(--blue);
}
.ct-info__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.ct-info__label {
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--text-muted);
}
.ct-info__val {
  font-size: 15px;
  color: var(--text);
  word-break: break-word;
}
.ct-info__arrow {
  background: var(--text-muted);
  transition: background var(--t-med), transform var(--t-med);
}
.ct-info__arrow::after {
  border-color: var(--text-muted);
}
.ct-info__item:not(.ct-info__item--static):hover .ct-info__arrow {
  background: var(--blue);
  transform: translateX(3px);
}
.ct-info__item:not(.ct-info__item--static):hover .ct-info__arrow::after {
  border-color: var(--blue);
}

.ct-info__status {
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ct-info__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

/* ─── Right column: form ─────────────────────────────────── */
.ct-form-wrap { width: 100%; }
.ct-form {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
}
.ct-form::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.7;
  box-shadow: 0 0 18px var(--blue-bloom-soft);
}

.ct-form__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.ct-form__h {
  font-size: clamp(28px, 3vw, 40px);
  margin: 6px 0 6px;
  letter-spacing: 0.02em;
  line-height: 0.98;
}
.ct-form__head p { font-size: 14px; }

.ct-form__row { display: flex; flex-direction: column; gap: 22px; }
.ct-form__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) {
  .ct-form__row--two { grid-template-columns: 1fr; }
}

/* Field shell */
.ct-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.ct-field__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  gap: 4px;
}

.ct-field input,
.ct-field textarea,
.ct-field select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              background var(--t-med) var(--ease-out);
  caret-color: var(--blue);
}
.ct-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
  font-family: var(--font-body);
}
.ct-field input::placeholder,
.ct-field textarea::placeholder { color: var(--text-dim); }

.ct-field input:focus,
.ct-field textarea:focus,
.ct-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue),
              0 0 18px var(--blue-bloom-soft);
  background: var(--surface-2);
}

/* Autofill colour fix */
.ct-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset;
}

/* Custom select caret */
.ct-select-wrap { position: relative; display: block; }
.ct-select-wrap select { padding-right: 44px; cursor: pointer; }
.ct-select-wrap__caret {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--blue);
  border-bottom: 1.5px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  transition: transform var(--t-med) var(--ease-out);
}
.ct-select-wrap select:focus ~ .ct-select-wrap__caret {
  transform: translateY(-30%) rotate(-135deg);
}

/* Invalid state */
.ct-field.is-invalid input,
.ct-field.is-invalid textarea,
.ct-field.is-invalid select {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.3);
}
.ct-field__err {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff8a8a;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity var(--t-med), max-height var(--t-med);
}
.ct-field.is-invalid .ct-field__err {
  opacity: 1;
  max-height: 24px;
  padding-top: 2px;
}

/* Submit row */
.ct-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.ct-form__submit { min-width: 200px; justify-content: center; }
.ct-form__submit.is-loading { pointer-events: none; opacity: 0.85; }
.ct-form__submit.is-loading .ct-form__submit-text::after {
  content: "…";
  animation: dot-pulse 1s steps(3, end) infinite;
}
.ct-form__submit.is-loading .arrow { display: none; }
@keyframes dot-pulse {
  0%   { content: ""; }
  33%  { content: "."; }
  66%  { content: ".."; }
  100% { content: "…"; }
}

.ct-form__assure {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ct-form__assure-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

/* Notice (success / error) */
.ct-form__notice[hidden] { display: none; }
.ct-form__notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-top: 4px;
  animation: notice-in 0.5s var(--ease-out);
}
@keyframes notice-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.ct-form__notice--success { border-color: var(--blue); box-shadow: 0 0 24px var(--blue-bloom-soft); }
.ct-form__notice--error   { border-color: #ff6b6b; }
.ct-form__notice-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ct-form__notice--success .ct-form__notice-icon { color: var(--blue); }
.ct-form__notice--error   .ct-form__notice-icon { color: #ff6b6b; }
.ct-form__notice-h {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 4px;
}
.ct-form__notice-p {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}
