#theatre,
#contact,
#signal { scroll-margin-top: calc(var(--header) + 0.75rem); }

.signal {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(4.5rem, 9vh, 7rem) var(--inset);
  background:
    radial-gradient(ellipse 50% 70% at 78% 45%, rgba(20, 107, 255, 0.16), transparent 62%),
    #070B14;
  color: #F5F7FA;
}
.signal-kicker,
.conversation-kicker {
  margin: 0 0 1rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #00A8FF;
}
.signal h2,
.conversation h2 {
  margin: 0;
  font-family: "Hanken Grotesk", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.96;
}
.signal h2 { font-size: clamp(2.4rem, 4.4vw, 4.4rem); max-width: 11ch; }
.signal-copy p:last-of-type {
  max-width: 34rem;
  margin: 1.2rem 0 0;
  color: #9AA6B7;
}
.signal-actions { display: flex; flex-wrap: wrap; gap: 1.4rem 1.8rem; align-items: center; margin-top: 1.8rem; }
.signal-primary,
.ask-submit,
.received a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #146BFF;
  color: #F5F7FA;
  text-decoration: none;
  padding: 0.9rem 1.15rem;
  font-family: "Hanken Grotesk", "Segoe UI", sans-serif;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: background 280ms var(--ease), transform 280ms var(--ease);
}
.signal-primary:hover,
.ask-submit:hover { background: #0d5ae0; }
.signal-secondary {
  color: #F5F7FA;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 247, 250, 0.4);
  padding-bottom: 0.12rem;
}
.signal-secondary:hover { color: #00A8FF; border-bottom-color: #00A8FF; }

.system { display: grid; justify-items: center; gap: 0.9rem; }
.system-frame {
  width: min(100%, 34rem);
  background: #0A101C;
  border: 1px solid rgba(245, 247, 250, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.system-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.2rem;
  padding: 0 0.8rem;
  border-bottom: 1px solid rgba(245, 247, 250, 0.08);
  color: #9AA6B7;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.system-chrome i { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: #146BFF; }
.system-chrome i:nth-child(2) { background: #00A8FF; }
.system-chrome i:nth-child(3) { background: rgba(245, 247, 250, 0.28); }
.system-chrome b { margin-left: 0.45rem; font-weight: 500; }
.system-stage { position: relative; height: 16.5rem; overflow: hidden; }
.system-layer {
  position: absolute;
  inset: 1.3rem 1.4rem;
  display: grid;
  align-content: center;
  gap: 0.7rem;
  opacity: 0;
  animation: system-cycle 16s linear infinite;
}
.layer-web { animation-delay: 0s; }
.layer-crm { animation-delay: 4s; }
.layer-flow { animation-delay: 8s; }
.layer-ai { animation-delay: 12s; }
.sys-block { height: 2.4rem; background: rgba(20, 107, 255, 0.18); border: 1px solid rgba(0, 168, 255, 0.35); }
.sys-block.wide { grid-column: 1 / -1; height: 4.2rem; background: rgba(245, 247, 250, 0.04); }
.layer-web { grid-template-columns: 1.4fr 1fr; }
.sys-line, .sys-line.short { grid-column: 1 / -1; height: 0.45rem; background: rgba(245, 247, 250, 0.16); }
.sys-line.short { width: 42%; }
.sys-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: center;
  gap: 0.8rem;
  min-height: 2.5rem;
  border-bottom: 1px solid rgba(245, 247, 250, 0.1);
  color: #F5F7FA;
  font-size: 0.92rem;
}
.sys-row i { height: 0.45rem; background: linear-gradient(90deg, #146BFF, rgba(0, 168, 255, 0.15)); }
.layer-flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; }
.sys-node {
  display: grid;
  place-items: center;
  min-height: 4.2rem;
  border: 1px solid rgba(0, 168, 255, 0.55);
  color: #F5F7FA;
  font-family: "Hanken Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}
.sys-join { width: 1.4rem; height: 1px; background: #146BFF; }
.layer-ai { align-content: center; gap: 0.8rem; }
.sys-ask, .sys-act {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(245, 247, 250, 0.16);
  font-family: "Hanken Grotesk", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}
.sys-act { border-color: rgba(0, 168, 255, 0.7); color: #00A8FF; }
.sys-arrow { width: 4.5rem; height: 1px; background: #146BFF; }
.system-steps {
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #9AA6B7;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.system-steps li { animation: system-label 16s linear infinite; }
.system-steps li:nth-child(1) { animation-delay: 0s; }
.system-steps li:nth-child(2) { animation-delay: 4s; }
.system-steps li:nth-child(3) { animation-delay: 8s; }
.system-steps li:nth-child(4) { animation-delay: 12s; }

.conversation {
  background: #f3f0e8;
  color: #14161c;
}
.conversation-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  min-height: calc(100svh - var(--header));
  padding: calc(var(--header) + 2.5rem) var(--inset) 3rem;
}
.conversation h2 { font-size: clamp(3rem, 7vw, 6.4rem); max-width: 8ch; }
.conversation-lead { max-width: 34rem; margin: 1.2rem 0 0; color: #3d4450; font-size: 1.05rem; }
.conversation-facts { margin: 0; display: grid; gap: 1.15rem; }
.conversation-facts div { padding-top: 0.75rem; border-top: 1px solid rgba(20, 22, 28, 0.16); }
.conversation-facts dt {
  margin-bottom: 0.25rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #146BFF;
}
.conversation-facts dd { margin: 0; }
.conversation-facts a { color: inherit; text-decoration: none; }
.conversation-facts a:hover { color: #146BFF; }
.conversation-facts dd a + a { margin-left: 0.9rem; }
.conversation-socials { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }

.ask-wrap { padding: 0 var(--inset) 5rem; }
.ask { display: block; }
.ask[hidden],
.received[hidden] { display: none !important; }
.form-status { min-height: 1.2em; margin: 0 0 0.6rem; color: #8d2a2a; }
.form-status[data-state="success"] { color: #145c32; }
.ask-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 2rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 0.85rem; font-size: 0.82rem; letter-spacing: 0.04em; }
.field-wide { grid-column: 1 / -1; }
.field input,
.field textarea,
.field select {
  width: 100%;
  margin: 0;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid rgba(20, 22, 28, 0.28);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.05rem;
  letter-spacing: 0;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select { cursor: pointer; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-bottom-color: #146BFF; }
.field [aria-invalid="true"] { border-bottom-color: #8d2a2a; }
.field-error { min-height: 1rem; color: #8d2a2a; font-size: 0.78rem; letter-spacing: 0; }
.ask-submit {
  margin-top: 1.4rem;
  border: 0;
  cursor: pointer;
}
.ask-submit:disabled { opacity: 0.6; cursor: progress; }
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.received { padding: 2rem 0 1rem; max-width: 18ch; }
.received h2 {
  font-size: clamp(3.4rem, 8vw, 6rem);
  outline: none;
}
.received p { margin: 1rem 0 0; max-width: 28rem; color: #3d4450; }
.received-ref { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.78rem; letter-spacing: 0.06em; }
.received a { margin-top: 1.6rem; }

@keyframes system-cycle {
  0% { opacity: 0; transform: translateY(10px); }
  5% { opacity: 1; transform: none; }
  20% { opacity: 1; transform: none; }
  25% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; }
}
@keyframes system-label {
  0%, 25%, 100% { color: #9AA6B7; }
  6%, 20% { color: #00A8FF; }
}

@media (max-width: 900px) {
  .signal,
  .conversation-intro,
  .ask-grid { grid-template-columns: 1fr; }
  .conversation-intro { min-height: 0; align-items: start; }
  .conversation h2,
  .signal h2 { max-width: none; }
  .system-frame { width: 100%; }
  .layer-flow { gap: 0.35rem; }
  .sys-node { min-height: 3.4rem; font-size: 0.92rem; }
}
@media (max-width: 430px) {
  .signal-primary,
  .ask-submit,
  .received a { width: 100%; justify-content: space-between; }
  .system-stage { height: 14.5rem; }
  .sys-row { grid-template-columns: 5.2rem 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .system-layer,
  .system-steps li { animation: none; }
  .system-layer { opacity: 0; transform: none; }
  .layer-web { opacity: 1; }
  .system-steps li { color: #9AA6B7; }
  .signal-primary,
  .ask-submit { transition: none; }
}
