/* ============================================================
   Contact Us — page-specific decoration.

   A reframe, not a restyle. The organising idea is "there's a real
   person here", so the two cut-out photos of Tracy and the founder
   note carry as much weight as the form itself. CYAN leads; green
   marks the live-dot and the success state; red stays on CTAs.

   THE FORM IS REAL. It posts to /process_contact with the field names
   that controller expects (type/name/email/message + the production
   recaptcha_response). Styling here must not change those names or
   the form silently stops working.

   Keyframes are global, so everything here is `ct`-prefixed.

   NOTE on <p>/<a>/<b>/<input>/<button>: the theme styles bare form
   elements and links at specificity 0,1,1, which beats any single
   class here (0,1,0). Every rule that lands on one is scoped under
   `.xs-page`, and the inputs/buttons restate their own background on
   :hover/:focus so the theme's blue doesn't bleed through.
   ============================================================ */

@keyframes ctGlow{0%,100%{opacity:.45;transform:scale(1)}50%{opacity:.9;transform:scale(1.06)}}
@keyframes ctFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes ctPop{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}

/* ---------- hero ---------- */
.ct-hero{position:relative;min-height:82vh;display:flex;align-items:center;overflow:hidden;color:#fff;
	background:radial-gradient(circle at 78% 42%,#0d1a33,#04070f 66%)}
.ct-hero__fade{position:absolute;inset:0 0 auto 0;height:300px;pointer-events:none;
	background:linear-gradient(180deg,var(--ink-900) 0,var(--ink-900) 130px,transparent 100%)}
.ct-hero__glow{position:absolute;bottom:-140px;right:-100px;width:560px;height:560px;border-radius:50%;
	background:radial-gradient(circle,rgba(0,212,255,.22),transparent 62%);filter:blur(30px);
	animation:ctGlow 8s ease-in-out infinite;pointer-events:none}
.ct-hero__inner{position:relative;width:100%;padding-top:calc(130px + clamp(1rem,3vw,2.5rem))}

/* the cut-out sits on its own glow so it doesn't float in a void */
.ct-cutout{position:relative;display:flex;align-items:flex-end;justify-content:center;min-height:clamp(340px,40vw,460px)}
.ct-cutout::before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
	width:min(420px,88%);aspect-ratio:1/1;border-radius:50%;
	background:radial-gradient(circle,rgba(0,212,255,.22),transparent 66%);filter:blur(22px)}
.ct-cutout img{position:relative;width:min(400px,86%);height:auto;display:block;
	filter:drop-shadow(0 26px 46px rgba(0,0,0,.55));animation:ctFloat 7s ease-in-out infinite}
.ct-cutout--sm img{width:min(320px,78%);animation-duration:8.5s;animation-delay:.5s}

/* ---------- founder note ---------- */
.xs-page .ct-note__quote{font-family:var(--font-display);font-weight:400;
	font-size:clamp(1.5rem,3.2vw,2.3rem);line-height:1.2;color:#fff;margin:0}
.xs-page .ct-note__body{font-size:1.06rem;line-height:1.65;color:rgba(255,255,255,.8);margin:1.1rem 0 0}
.ct-note__sign{margin-top:1.4rem;font-size:.95rem;color:rgba(255,255,255,.7)}
.xs-page .ct-note__sign b{color:var(--cyan)}

/* ---------- reasons ---------- */
.ct-reasons{display:flex;flex-direction:column;gap:.6rem}
.ct-reason{display:flex;align-items:center;gap:.85rem;background:#0b1120;
	border:1px solid rgba(255,255,255,.1);border-radius:11px;padding:.85rem 1rem;
	font-size:.98rem;color:rgba(255,255,255,.86)}
.ct-reason i{color:var(--cyan);flex:none;width:1.2rem;text-align:center}
.xs-page .ct-reasons__foot{font-size:.95rem;line-height:1.55;color:rgba(255,255,255,.62);margin:1.1rem 0 0}

/* ---------- the form card ---------- */
.ct-card{background:linear-gradient(160deg,#0d1a33,#0b1120);border:1px solid rgba(255,255,255,.12);
	border-radius:18px;padding:clamp(1.5rem,3vw,2.1rem);box-shadow:0 30px 70px rgba(0,0,0,.5)}
.ct-card__title{font-family:var(--font-display);font-size:clamp(1.4rem,2.6vw,1.8rem);color:#fff;line-height:1.15}
.xs-page .ct-card__sub{font-size:.95rem;color:rgba(255,255,255,.66);margin:.35rem 0 1.3rem}

.ct-field{margin-bottom:1rem}
.ct-field__label{display:block;font-size:.82rem;font-weight:700;letter-spacing:.02em;
	color:rgba(255,255,255,.84);margin-bottom:.4rem}
/* The theme forces spans inside a <label> to display:block, which drops
   "— optional" onto its own line and out of the label box, overlapping
   the input below it. Force it back inline. */
.xs-page .ct-field__opt{display:inline;font-weight:400;color:rgba(255,255,255,.5)}
/* The theme styles bare inputs; these are restated on every state so
   nothing bleeds through. The email field is a plain text input — the
   old page wrapped it in .form-select, which drew a stray chevron. */
.xs-page .ct-input{width:100%;display:block;background:#050a15;color:#fff;
	border:1px solid rgba(255,255,255,.16);border-radius:6px;padding:.75rem .9rem;
	font-family:var(--font-body);font-size:1rem;line-height:1.45;box-shadow:none;
	transition:border-color .15s var(--ease),box-shadow .15s var(--ease);margin:0;height:auto}
/* The theme sets ::placeholder{text-transform:uppercase} — which turns
   every hint into SHOUTING. Reset it on both the standard and the
   -webkit- pseudo, since the theme targets the prefixed one. */
.xs-page .ct-input::placeholder{color:rgba(255,255,255,.34);text-transform:none;letter-spacing:normal}
.xs-page .ct-input::-webkit-input-placeholder{color:rgba(255,255,255,.34);text-transform:none;letter-spacing:normal}
.xs-page .ct-input:hover{background:#050a15;border-color:rgba(255,255,255,.26)}
.xs-page .ct-input:focus{background:#050a15;border-color:var(--cyan);outline:none;
	box-shadow:0 0 0 3px rgba(0,212,255,.2)}
.xs-page textarea.ct-input{min-height:8.5rem;resize:vertical}

/* honeypot — off-screen, never focusable, never announced */
.ct-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.xs-page .ct-submit{width:100%;justify-content:center}
.ct-promise{display:flex;align-items:flex-start;gap:.55rem;margin-top:.9rem;
	font-size:.88rem;line-height:1.5;color:rgba(255,255,255,.62)}
.ct-promise i{color:var(--cyan);flex:none;margin-top:.15rem}

/* validation errors coming back from the controller */
.ct-error{background:rgba(255,107,107,.1);border:1px solid rgba(255,107,107,.42);border-radius:10px;
	padding:.85rem 1rem;margin-bottom:1.1rem;font-size:.92rem;line-height:1.5;color:#fff}
.ct-error i{color:var(--coral);margin-right:.4rem}
.xs-page .ct-error p{margin:0;color:#fff}

/* ---------- success state ---------- */
.ct-done{text-align:center;padding:clamp(.5rem,2vw,1.4rem) 0;animation:ctPop .35s var(--ease) both}
.ct-done__ring{width:64px;height:64px;margin:0 auto 1.1rem;border-radius:50%;
	background:rgba(58,219,118,.14);border:1px solid rgba(58,219,118,.45);
	display:flex;align-items:center;justify-content:center;color:var(--success);font-size:1.5rem}
.ct-done__title{font-family:var(--font-display);font-size:clamp(1.6rem,3vw,2.1rem);color:#fff;line-height:1.1}
.xs-page .ct-done__body{font-size:1rem;line-height:1.6;color:rgba(255,255,255,.76);margin:.7rem auto 0;max-width:34rem}
.ct-done__sign{margin-top:1rem;color:var(--cyan);font-family:var(--font-display);font-size:1.1rem}

/* ---------- two doors ---------- */
.ct-door{background:#0b1120;border:1px solid rgba(255,255,255,.1);border-radius:16px;
	padding:clamp(1.4rem,3vw,2rem);display:flex;flex-direction:column}
.ct-door--new{border-color:rgba(0,212,255,.4);background:linear-gradient(160deg,#0d1a33,#0b1120)}
.ct-door__k{font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
	color:var(--cyan);margin-bottom:.6rem}
.ct-door__k--muted{color:rgba(255,255,255,.5)}
.ct-door__h{font-family:var(--font-display);font-size:clamp(1.3rem,2.6vw,1.7rem);color:#fff;line-height:1.15}
.xs-page .ct-door__body{font-size:.98rem;line-height:1.6;color:rgba(255,255,255,.72);margin:.6rem 0 1.2rem}
.ct-door__actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:auto}

/* support link rows */
.ct-links{display:flex;flex-direction:column;gap:.6rem;margin-top:auto}
.xs-page .ct-link,
.xs-page .ct-link:link,
.xs-page .ct-link:visited{display:flex;align-items:center;gap:.8rem;background:#0d1526;
	border:1px solid rgba(255,255,255,.1);border-radius:9px;padding:.8rem 1rem;
	color:rgba(255,255,255,.86);text-decoration:none;font-size:.95rem;
	transition:border-color .15s var(--ease),color .15s var(--ease)}
.xs-page .ct-link:hover{border-color:rgba(0,212,255,.5);color:#fff}
.ct-link__icon{color:var(--cyan);flex:none;width:1.2rem;text-align:center}
.ct-link__text{flex:1;min-width:0}
.ct-link__chev{color:rgba(255,255,255,.4);flex:none}

/* ---------- demo band ---------- */
.ct-demo{position:relative;overflow:hidden;text-align:center;
	background:linear-gradient(135deg,var(--navy-900),#0d1a33)}
.ct-demo__glow{position:absolute;top:-120px;left:50%;transform:translateX(-50%);width:620px;height:400px;
	background:radial-gradient(circle,rgba(0,212,255,.3),transparent 65%);filter:blur(26px);
	pointer-events:none;animation:ctGlow 9s ease-in-out infinite}

/* ---------- details ---------- */
.ct-detail{background:#0b1120;border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:20px}
.ct-detail__tile{width:44px;height:44px;border-radius:11px;background:rgba(0,212,255,.12);
	border:1px solid rgba(0,212,255,.3);display:flex;align-items:center;justify-content:center;
	color:var(--cyan);font-size:1.05rem;margin-bottom:.9rem}
.ct-detail__k{font-size:.68rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
	color:rgba(255,255,255,.5);margin-bottom:.45rem}
.ct-detail__line{font-size:.95rem;line-height:1.55;color:rgba(255,255,255,.84)}
.xs-page .ct-detail__line a,
.xs-page .ct-detail__line a:link,
.xs-page .ct-detail__line a:visited{color:var(--cyan);text-decoration:none}
.xs-page .ct-detail__line a:hover{text-decoration:underline}

.ct-stamp{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.6rem}
.ct-stamp__line{font-family:var(--font-display);font-size:clamp(1.3rem,2.6vw,1.8rem);
	text-transform:uppercase;color:#fff;line-height:1.1}
.xs-page .ct-social,
.xs-page .ct-social:link,
.xs-page .ct-social:visited{width:42px;height:42px;border-radius:50%;background:#0b1120;
	border:1px solid rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;
	color:rgba(255,255,255,.7);text-decoration:none;
	transition:border-color .15s var(--ease),color .15s var(--ease)}
.xs-page .ct-social:hover{border-color:rgba(0,212,255,.5);color:var(--cyan)}

@media (max-width:640px){
	.ct-socials{justify-content:flex-start}
}
@media (prefers-reduced-motion:reduce){
	.ct-hero__glow,.ct-demo__glow,.ct-cutout img{animation:none}
	.ct-done{animation:none}
}
