/**
 * Ember Loom — Contact (letter form + channel stack)
 */
body.em-contact {
  margin: 0;
  min-height: 100vh;
  font-family: var(--em-body, "Karla", system-ui, sans-serif);
  color: var(--em-ink, #10141c);
  background:
    radial-gradient(680px 360px at 100% 0%, rgba(27, 108, 168, 0.08), transparent 55%),
    var(--em-canvas, #eef1f6);
  -webkit-font-smoothing: antialiased;
}
body.em-contact.has-kb-nav { padding-bottom: 0 !important; }
body.em-contact .kb-keybed { display: none !important; }
body.em-contact a { color: inherit; text-decoration: none; }
body.em-contact button,
body.em-contact input,
body.em-contact textarea { font: inherit; color: inherit; }

.em-ct-root {
  width: min(100% - 1.5rem, 1000px);
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.em-ct-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.em-ct-air {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: var(--em-surface, #fff);
  border: 1px solid var(--em-line, rgba(16,20,28,0.1));
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--em-shadow, 0 14px 40px rgba(16,20,28,0.06));
}
.em-ct-air i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #1a9a4a;
  animation: em-ct-pulse 1.8s ease-in-out infinite;
}
@keyframes em-ct-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.em-ct-hero { margin-bottom: 1rem; }
.em-ct-hero h1 {
  margin: 0 0 0.4rem;
  font-family: var(--em-display, "Outfit", sans-serif);
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  letter-spacing: -0.025em;
  color: var(--em-ink, #10141c);
}
.em-ct-lede {
  margin: 0;
  color: var(--em-mute, #3f4754);
  max-width: 34rem;
  line-height: 1.55;
}

.em-ct-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.em-ct-topics span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--em-surface, #fff);
  border: 1px solid var(--em-line, rgba(16,20,28,0.1));
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--em-mute, #3f4754);
}

/* Unique: letter sheet + offset channel stack */
.em-ct-board {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.15rem;
  align-items: start;
  margin-bottom: 1.35rem;
}

.em-ct-letter {
  position: relative;
  padding: 1.4rem 1.35rem 1.35rem;
  background: var(--em-surface, #fff);
  border: 1px solid var(--em-line, rgba(16,20,28,0.1));
  border-radius: var(--em-radius-lg, 16px);
  box-shadow: var(--em-shadow, 0 14px 40px rgba(16,20,28,0.08));
}
.em-ct-letter::before {
  content: "";
  position: absolute;
  top: 0;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, transparent 50%, rgba(232, 93, 4, 0.15) 50%);
  border-radius: 0 0 0 8px;
}
.em-ct-letter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}
.em-ct-letter-head h2 {
  margin: 0;
  font-family: var(--em-display, "Outfit", sans-serif);
  font-size: 1.2rem;
}
.em-ct-letter-head span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--em-mute, #3f4754);
}

.em-ct-notice {
  padding: 0.85rem 1rem;
  border-radius: var(--em-radius, 10px);
  margin-bottom: 1rem;
}
.em-ct-notice strong {
  display: block;
  font-family: var(--em-display, "Outfit", sans-serif);
  margin-bottom: 0.2rem;
}
.em-ct-notice p { margin: 0; font-size: 0.9rem; line-height: 1.4; }
.em-ct-notice.is-ok {
  background: rgba(26, 154, 74, 0.1);
  border: 1px solid rgba(26, 154, 74, 0.3);
}
.em-ct-notice.is-err {
  background: rgba(232, 93, 4, 0.1);
  border: 1px solid rgba(232, 93, 4, 0.3);
}

.em-ct-form { display: grid; gap: 0.85rem; }
.em-ct-field { display: grid; gap: 0.3rem; }
.em-ct-field span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--em-mute, #3f4754);
}
.em-ct-field em {
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--em-mute, #3f4754);
}
.em-ct-field input,
.em-ct-field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--em-line, rgba(16,20,28,0.1));
  border-radius: var(--em-radius, 10px);
  background: #f7f8fb;
  outline: none;
  resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.em-ct-field input:focus,
.em-ct-field textarea:focus {
  border-color: var(--em-ember, #e85d04);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}
.em-ct-field input::placeholder,
.em-ct-field textarea::placeholder {
  color: #5a6472;
  opacity: 1;
}

.em-ct-side {
  display: grid;
  gap: 0.85rem;
  transform: translateY(1.5rem);
}
.em-ct-channels {
  display: grid;
  gap: 0.55rem;
}
.em-ct-channel {
  padding: 0.9rem 1rem;
  background: var(--em-ink, #10141c);
  color: #fff;
  border-radius: var(--em-radius, 10px);
  transition: transform 0.25s;
}
.em-ct-channel:hover { transform: translateX(4px); }
.em-ct-channel:nth-child(even) {
  background: var(--em-surface, #fff);
  color: var(--em-ink, #10141c);
  border: 1px solid var(--em-line, rgba(16,20,28,0.1));
}
.em-ct-channel strong {
  display: block;
  font-family: var(--em-display, "Outfit", sans-serif);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}
.em-ct-channel p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}
.em-ct-channel:nth-child(even) p {
  color: var(--em-mute, #3f4754);
}
.em-ct-channel a:hover { color: var(--em-ember, #e85d04); }
.em-ct-channel:nth-child(odd) a:hover { color: #ffb088; }

.em-ct-geo {
  padding: 1.1rem 1.15rem;
  background: linear-gradient(145deg, rgba(27, 108, 168, 0.1), rgba(232, 93, 4, 0.08));
  border: 1px solid var(--em-line, rgba(16,20,28,0.1));
  border-radius: var(--em-radius-lg, 16px);
}
.em-ct-geo span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--em-mute, #3f4754);
  margin-bottom: 0.25rem;
}
.em-ct-geo strong {
  display: block;
  font-family: var(--em-display, "Outfit", sans-serif);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.em-ct-geo p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--em-mute, #3f4754);
  line-height: 1.45;
}

.em-ct-ports { margin-bottom: 1.5rem; }
.em-ct-ports h2 {
  margin: 0 0 0.75rem;
  font-family: var(--em-display, "Outfit", sans-serif);
  font-size: 1.1rem;
}
.em-ct-port-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}
.em-ct-port {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  background: var(--em-surface, #fff);
  border: 1px solid var(--em-line, rgba(16,20,28,0.1));
  border-radius: var(--em-radius, 10px);
  transition: transform 0.25s, border-color 0.25s;
}
.em-ct-port:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 93, 4, 0.35);
}
.em-ct-port--plain {
  cursor: default;
  word-break: break-word;
}
.em-ct-port--plain:hover {
  transform: none;
  border-color: var(--em-line, rgba(16,20,28,0.1));
}
.em-ct-port b {
  font-family: var(--em-display, "Outfit", sans-serif);
}
.em-ct-port span {
  font-size: 0.75rem;
  color: var(--em-mute, #3f4754);
}

.em-ct-colophon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--em-line, rgba(16,20,28,0.1));
  font-size: 0.85rem;
}
.em-ct-colophon strong { font-family: var(--em-display, "Outfit", sans-serif); }
.em-ct-colophon nav { display: flex; gap: 1rem; }
.em-ct-colophon a {
  color: var(--em-mute, #3f4754);
  font-weight: 600;
  transition: color 0.2s;
}
.em-ct-colophon a:hover { color: var(--em-ember, #e85d04); }

[data-em-ct-rise] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s var(--em-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.5s var(--em-ease, cubic-bezier(0.22, 1, 0.36, 1));
  transition-delay: calc(var(--em-ct-delay, 0) * 70ms);
}
[data-em-ct-rise].is-in { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .em-ct-board { grid-template-columns: 1fr; }
  .em-ct-side { transform: none; }
  .em-ct-port-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .em-ct-port-row { grid-template-columns: 1fr; }
  .em-ct-colophon { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .em-ct-air i { animation: none; }
  [data-em-ct-rise] { opacity: 1; transform: none; transition: none; }
}
