/* =====================================================================
   ROBO J1NGLE | CONTACT uplink (loaded after terminal.css). Same language as the Transmissions console: thin lines, mono readouts,
   cyan only for "live" and "focus". No inline styles anywhere: the page's Content-Security-Policy forbids them.
   NOTE: .ct and its scene must not keep a transform / filter at rest.
   ===================================================================== */

.ct{
  position:relative;
  max-width:1240px;margin:0 auto;
  padding:clamp(84px,13vh,150px) clamp(20px,4vw,52px) clamp(56px,9vh,110px);
}
.ct::before{                          /* hairline that marks the edge of the previous section (static layout only) */
  content:"";position:absolute;left:clamp(20px,4vw,52px);right:clamp(20px,4vw,52px);top:clamp(40px,7vh,72px);height:1px;
  background:repeating-linear-gradient(to right,var(--line2) 0 6px,transparent 6px 14px);
}

/* ---------- heading ---------- */
.ct-head{margin-bottom:clamp(22px,3.6vh,36px)}
.ct-eyebrow{display:inline-flex;align-items:center;gap:12px;font-size:11px;letter-spacing:.3em;text-transform:uppercase;color:var(--gray)}
.ct-title{
  margin-top:14px;font-family:var(--display);font-weight:700;text-transform:uppercase;
  font-size:clamp(1.7rem,5.4vw,3.4rem);letter-spacing:.14em;line-height:1.05;color:var(--ink);
}
.ct-sub{margin-top:12px;max-width:60ch;text-wrap:balance;color:var(--gray);font-size:clamp(12px,3.1vw,13.5px)}

/* ---------- frame ---------- */
.ct-frame{position:relative;border:1px solid var(--line2);border-radius:2px;background:rgba(8,9,12,.8)}
.ct-frame::after{content:"";position:absolute;right:-1px;bottom:-1px;width:12px;height:12px;border-right:1px solid var(--cyan);border-bottom:1px solid var(--cyan);pointer-events:none}
.ct-bar{
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:11px 18px;border-bottom:1px solid var(--line);
  font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;color:var(--dim);
}
.ct-bar-r{color:var(--gray)}
.ct-frame[data-state="ready"] .ct-bar-r,.ct-frame[data-state="done"] .ct-bar-r{color:var(--cyan)}
.ct-frame[data-state="error"] .ct-bar-r{color:#e59a9a}
.ct-body{display:grid;grid-template-columns:minmax(230px,.62fr) 1.5fr}

/* ---------- side column ---------- */
.ct-side{padding:22px clamp(18px,2.4vw,28px);border-right:1px solid var(--line)}
.ct-side-h{font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;color:var(--dim)}
.ct-topics{margin-top:14px;list-style:none;display:grid;gap:10px}
.ct-topics li{display:flex;align-items:baseline;gap:12px;color:var(--silver);font-size:12.5px;letter-spacing:.03em}
.ct-topics li::before{content:"";flex:none;width:5px;height:5px;border:1px solid var(--cyan);transform:translateY(-1px)}
.ct-side-n{margin-top:22px;padding-top:16px;border-top:1px solid var(--line);color:var(--gray);font-size:12px;line-height:1.75}

/* ---------- form ---------- */
.ct-main{min-width:0}
.ct-form{display:flex;flex-direction:column;gap:16px;padding:22px clamp(18px,2.6vw,30px) 20px}
.ct-form[hidden]{display:none}
.ct-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ct-field{min-width:0;display:flex;flex-direction:column}
.ct-field label{
  display:flex;justify-content:space-between;align-items:baseline;gap:12px;
  margin-bottom:7px;font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;color:var(--gray);
}
.ct-count{letter-spacing:.12em;color:var(--dim);font-variant-numeric:tabular-nums}
.ct-count.is-near{color:#d9c48a}
.ct-count.is-max{color:#e59a9a}
.ct-field input,.ct-field textarea{
  display:block;width:100%;border:1px solid var(--line2);border-radius:2px;background:rgba(4,5,7,.75);
  padding:11px 13px;font:inherit;font-size:14px;line-height:1.55;color:var(--ink);letter-spacing:.02em;
  transition:border-color .25s,box-shadow .25s,background .25s;
  -webkit-appearance:none;appearance:none;
}
.ct-field textarea{height:clamp(110px,21vh,250px);resize:none;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#2a2e35 transparent}
.ct-field textarea::-webkit-scrollbar{width:6px}
.ct-field textarea::-webkit-scrollbar-thumb{background:#2a2e35}
.ct-field input:hover,.ct-field textarea:hover{border-color:rgba(190,198,212,.42)}
.ct-field input:focus,.ct-field textarea:focus{outline:none;border-color:var(--cyan);background:rgba(4,8,10,.9);box-shadow:0 0 0 1px rgba(34,224,255,.35),0 8px 26px -14px rgba(34,224,255,.6)}
.ct-field input[aria-invalid="true"],.ct-field textarea[aria-invalid="true"]{border-color:#c98484;box-shadow:0 0 0 1px rgba(229,154,154,.25)}
.ct-field input:disabled,.ct-field textarea:disabled{opacity:.55;cursor:not-allowed}
.ct-err{margin-top:6px;font-size:11.5px;letter-spacing:.03em;color:#e59a9a}
.ct-err[hidden]{display:none}

/* honeypot: kept in the layout flow of nothing, moved far away. NOT display:none (some bots skip hidden fields, and that is the point) */
.ct-hp{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

.ct-ts{min-height:0}
.ct-ts:empty{display:none}

.ct-foot{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap}
.ct-send{
  display:inline-flex;align-items:center;gap:12px;padding:12px 22px;border-radius:2px;cursor:pointer;
  font-family:var(--display);font-weight:600;font-size:12px;letter-spacing:.24em;text-transform:uppercase;color:var(--ink);
  border:1px solid rgba(34,224,255,.55);background:rgba(34,224,255,.08);
  transition:border-color .25s,background .25s,box-shadow .25s,color .25s;
}
.ct-send svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:square;transition:transform .3s var(--ease)}
.ct-send:hover{border-color:var(--cyan);background:rgba(34,224,255,.16);color:#fff;box-shadow:0 10px 26px -12px rgba(34,224,255,.7)}
.ct-send:hover svg{transform:translateX(3px)}
.ct-send:focus-visible{border-color:var(--cyan);background:rgba(34,224,255,.16);color:#fff;outline:none;box-shadow:0 0 0 1px var(--cyan),0 10px 26px -12px rgba(34,224,255,.7)}
.ct-send:disabled{cursor:not-allowed;opacity:.5;box-shadow:none}
.ct-send:disabled svg{transform:none}
.ct-send.is-busy{cursor:progress}
.ct-status{flex:1 1 220px;min-width:0;font-size:12px;letter-spacing:.03em;color:var(--gray)}
.ct-status[data-state="err"]{color:#e59a9a}
.ct-status[data-state="ok"]{color:var(--cyan)}
.ct-status[data-state="busy"]{color:var(--silver)}
.ct-legal{color:var(--dim);font-size:10.5px;letter-spacing:.04em;line-height:1.6}

/* ---------- thank-you state ---------- */
.ct-done{padding:clamp(28px,6vh,60px) clamp(18px,2.6vw,30px);outline:none}
.ct-done[hidden]{display:none}
.ct-done-k{display:inline-flex;align-items:center;gap:12px;font-size:11px;letter-spacing:.3em;text-transform:uppercase;color:var(--gray)}
.ct-done-h{margin-top:14px;font-family:var(--display);font-weight:700;text-transform:uppercase;font-size:clamp(1.2rem,3vw,1.8rem);letter-spacing:.1em;color:var(--ink)}
.ct-done-p{margin-top:12px;max-width:52ch;color:var(--gray);font-size:13.5px;line-height:1.8;overflow-wrap:anywhere}
.ct-done .ct-send{margin-top:22px}
.ct-nojs{padding:20px clamp(18px,2.6vw,30px);color:var(--gray)}
html:not(.js) .ct-form{display:none}          /* the form only works with JavaScript (it is checked by a human-verification widget), so do not show a dead form */

/* ---------- tablets and phones ---------- */
@media (max-width:900px){
  .ct-body{grid-template-columns:1fr}
  .ct-side{display:none}
  .ct-field input,.ct-field textarea{font-size:16px}          /* 16px stops iPhones from zooming the page when a field is focused */
}
@media (max-width:560px){
  .ct-row{grid-template-columns:1fr;gap:16px}
  .ct-bar{padding:10px 14px}
  .ct-bar > span:first-child{display:none}
  .ct-bar{justify-content:flex-end}
  .ct-title{letter-spacing:.1em}
  .ct-send{flex:1 1 100%;justify-content:center}
}

/* =====================================================================
   INSIDE THE FIXED STAGE (JS on, motion allowed): one full-screen scene. If the window is too short for the form, the scene
   scrolls inside itself; the page scroll (which drives the scenes) takes over once that inner scroll reaches its end.
   ===================================================================== */
html.js:not(.rm) .ct{
  height:100%;margin:0 auto;max-width:1320px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#2a2e35 transparent;
  padding:calc(var(--hudh,96px) + 2px) clamp(20px,4vw,52px) calc(var(--footh,64px) + 8px);
}
html.js:not(.rm) .ct::-webkit-scrollbar{width:6px}
html.js:not(.rm) .ct::-webkit-scrollbar-thumb{background:#2a2e35}
html.js:not(.rm) .ct::before{display:none}
html.js:not(.rm) .ct-head{margin-bottom:clamp(10px,2vh,20px)}
html.js:not(.rm) .ct-title{margin-top:6px;font-size:clamp(1.3rem,3.2vw,2.1rem)}
html.js:not(.rm) .ct-sub{margin-top:6px}
@media (min-width:1280px){                                 /* the social icons sit on the left edge (to x=60): keep the frame clear of them */
  html.js:not(.rm) .ct{max-width:1360px;padding-left:76px;padding-right:76px}
}
@media (max-height:820px){
  html.js:not(.rm) .ct-sub{display:none}
  .ct-form{gap:13px;padding-top:18px;padding-bottom:16px}
  .ct-side{padding-top:18px}
}
@media (max-height:640px){
  html.js:not(.rm) .ct-field textarea{height:100px}
}
