/*==========================================================
   css/contact.css — the Contact page
   Load order: home.css, scroll.css, platform.css, contact.css
   (header, footer nav, menu sheet, pinned markets, progress bar, ambient glow, hero,
   glass cards, reveals and buttons come from home.css, scroll.css and platform.css —
   this file only adds what is new here)
==========================================================*/

/*==========================================================
   HERO VISUAL: a message at the centre, the three things people write about circling it
==========================================================*/
.ct-orbit{ --S:clamp(240px, min(70vw, 350px), 420px); position:relative; width:var(--S); height:var(--S); margin:0 auto; }
.ct-orbit > *{ position:absolute; }
.ct-pulse{ left:50%; top:50%; width:32%; height:32%; margin:-16% 0 0 -16%; border-radius:50%; border:1.5px solid rgba(255,176,85,.55); opacity:0; animation:plPulse 4.2s ease-out infinite; }
.ct-pulse:nth-of-type(2){ animation-delay:1.4s; }
.ct-pulse:nth-of-type(3){ animation-delay:2.8s; }
.ct-halo{ inset:10%; border-radius:50%; background:radial-gradient(circle, rgba(255,154,46,.24), transparent 66%); animation:plBreath 5s ease-in-out infinite; }
.ct-ring{
    inset:21%; border-radius:50%; padding:4px;
    background:conic-gradient(from var(--ang), var(--accent), #ff6b6b, #8b5cf6, #34d399, var(--accent));
    -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite:xor; mask-composite:exclude;
    animation:ringSpin 8s linear infinite;
}
.ct-track{ inset:6%; border-radius:50%; border:1px dashed rgba(255,255,255,.16); animation:ctSpin 32s linear infinite; }
@keyframes ctSpin{ to{ transform:rotate(360deg); } }
.ct-sat{
    position:absolute; left:50%; top:50%; width:48px; height:48px; margin:-24px 0 0 -24px;
    transform:rotate(var(--a)) translateY(calc(var(--S) * -.44));
}
.ct-sat > span{
    position:absolute; inset:0; border-radius:50%;
    display:grid; place-items:center;
    background:linear-gradient(180deg, rgba(40,40,47,.96), rgba(23,23,27,.96));
    border:1px solid var(--border-strong); color:var(--accent); font-size:17px;
    box-shadow:0 12px 26px -10px rgba(0,0,0,.85);
    rotate:calc(var(--a) * -1);                        /* stays upright while the track turns */
    animation:ctSpin 32s linear infinite reverse;
}
.ct-core{
    left:50%; top:50%; width:34%; height:34%; margin:-17% 0 0 -17%; border-radius:50%; z-index:2;
    display:grid; place-items:center;
    background:radial-gradient(circle at 35% 30%, #2b2b32, #111114);
    border:1px solid var(--border-strong);
    box-shadow:0 0 0 7px rgba(255,176,85,.07), 0 0 60px rgba(255,154,46,.4), inset 0 0 22px rgba(255,176,85,.16);
}
.ct-core i{ font-size:calc(var(--S) * .12); color:var(--accent); filter:drop-shadow(0 0 12px rgba(255,176,85,.7)); animation:ctGlide 4.5s ease-in-out infinite; }
@keyframes ctGlide{ 0%, 100%{ transform:translate(-3%, 3%) rotate(-4deg); } 50%{ transform:translate(6%, -6%) rotate(4deg); } }

/*==========================================================
   LAYOUT: the form, and an aside with the quote and where to read more
==========================================================*/
.ct-grid{ display:grid; gap:16px; align-items:start; grid-template-columns:minmax(0, 1fr); }
.ct-grid > *{ min-width:0; }
@media (min-width:960px){
    .ct-grid{ grid-template-columns:minmax(0, 1.55fr) minmax(0, 1fr); gap:22px; }
    .ct-aside{ position:sticky; top:calc(var(--hdr-h, 64px) + 16px); }
}
.ct-aside{ display:flex; flex-direction:column; gap:14px; }

.ct-card{ padding:clamp(22px, 3.2vw, 38px); border-radius:32px; scroll-margin-top:calc(var(--hdr-h, 64px) + 14px); }
.ct-head{ display:flex; align-items:center; gap:14px; margin-bottom:22px; }
.ct-badge{
    flex:0 0 auto; width:48px; height:48px; border-radius:16px; display:grid; place-items:center; overflow:hidden;
    background:rgba(255,176,85,.14); border:1px solid rgba(255,176,85,.42); color:var(--accent); font-size:19px;
}
.ct-badge i{ animation:ctGlide 4.5s ease-in-out infinite; }
.ct-head h2{ margin:0; font-size:clamp(20px, 2.4vw, 27px); line-height:1.2; font-weight:800; letter-spacing:-.025em; }
.ct-head p{ margin:3px 0 0; font-size:12.5px; line-height:1.5; font-weight:600; color:var(--text-muted); }

/* topics: a quick way to start the subject line */
.ct-topics{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 22px; }
.ct-topic{
    display:inline-flex; align-items:center; gap:9px;
    height:40px; padding:0 16px; border-radius:20px;
    background:rgba(255,255,255,.06); border:1px solid var(--border-strong);
    font-size:13px; font-weight:700; color:var(--text-secondary);
    transition:background .2s, border-color .2s, color .2s, transform .15s;
}
.ct-topic i{ color:var(--accent); font-size:12px; transition:color .2s; }
.ct-topic:hover, .ct-topic:focus-visible{ background:var(--bg-surface-hover); color:var(--text-primary); transform:translateY(-2px); }
.ct-topic[aria-pressed="true"]{ background:var(--accent); border-color:var(--accent); color:var(--accent-contrast); }
.ct-topic[aria-pressed="true"] i{ color:var(--accent-contrast); }

/*==========================================================
   THE FORM
==========================================================*/
.ct-form{ display:flex; flex-direction:column; gap:18px; }
.ct-who{ display:grid; gap:14px; grid-template-columns:minmax(0, 1fr); padding:16px; border-radius:22px; background:rgba(255,255,255,.035); border:1px dashed var(--border-strong); }
.ct-who-note{ display:flex; align-items:center; gap:8px; margin:-2px 0 0; font-size:12px; font-weight:700; color:var(--text-muted); }
.ct-who-note i{ color:var(--accent); font-size:11px; }
@media (min-width:600px){
    .ct-who{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .ct-who .ct-field.wide, .ct-who .ct-who-note{ grid-column:1 / -1; }
}

.ct-field{ position:relative; min-width:0; }
.ct-label{ display:block; margin:0 0 8px 2px; font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--text-muted); transition:color .2s; }
.ct-field:focus-within .ct-label{ color:var(--accent); }
.ct-input, .ct-text{
    display:block; width:100%; min-width:0;
    padding:0 16px; border-radius:16px;
    background:rgba(255,255,255,.06); border:1px solid var(--border-strong);
    color:var(--text-primary); font:inherit; font-size:15px; font-weight:600;
    -webkit-appearance:none; appearance:none; outline:none;
    transition:border-color .2s, background .2s, box-shadow .25s;
}
.ct-input{ height:54px; }
.ct-text{ min-height:176px; max-height:60vh; padding:15px 16px; line-height:1.65; resize:vertical; }
.ct-input::placeholder, .ct-text::placeholder{ color:var(--text-muted); font-weight:500; }
.ct-input:hover, .ct-text:hover{ border-color:rgba(255,255,255,.28); }
.ct-input:focus, .ct-text:focus{ border-color:var(--accent); background:rgba(255,176,85,.06); box-shadow:0 0 0 4px rgba(255,176,85,.18); }
.ct-input[readonly]{ padding-right:44px; background:rgba(255,255,255,.03); border-color:var(--border-subtle); color:var(--text-secondary); cursor:not-allowed; text-overflow:ellipsis; }
.ct-input[readonly]:focus{ box-shadow:none; border-color:var(--border-subtle); background:rgba(255,255,255,.03); }
.ct-lock{ position:absolute; right:16px; bottom:19px; font-size:13px; color:var(--text-muted); pointer-events:none; }
.ct-field.invalid .ct-input, .ct-field.invalid .ct-text{ border-color:#ff5a64; box-shadow:0 0 0 4px rgba(255,90,100,.16); }
.ct-field.invalid .ct-label{ color:#ff8a92; }
.ct-meta{ display:flex; justify-content:flex-end; margin-top:7px; font-size:11.5px; font-weight:700; font-variant-numeric:tabular-nums; color:var(--text-muted); transition:color .2s; }
.ct-meta.near{ color:var(--accent); }
.ct-meta.over{ color:#ff8a92; }

.ct-alert{
    display:flex; gap:12px; align-items:flex-start; margin:0 0 4px; padding:14px 16px; border-radius:18px;
    background:rgba(255,90,100,.09); border:1px solid rgba(255,90,100,.45);
    font-size:13.5px; line-height:1.55; font-weight:600; color:#ffb4b9;
    animation:ctShake .5s cubic-bezier(.36,.07,.19,.97) both;
}
.ct-alert i{ flex:0 0 auto; margin-top:2px; color:#ff6b74; }
@keyframes ctShake{ 10%, 90%{ transform:translateX(-1px); } 20%, 80%{ transform:translateX(3px); } 30%, 50%, 70%{ transform:translateX(-5px); } 40%, 60%{ transform:translateX(5px); } }

/* send */
.ct-send{
    position:relative; overflow:hidden;
    display:inline-flex; align-items:center; justify-content:center; gap:11px;
    align-self:flex-start; height:56px; padding:0 30px; border:0; border-radius:18px;
    background:linear-gradient(135deg, var(--accent), var(--accent-strong)); color:var(--accent-contrast);
    font:inherit; font-size:15px; font-weight:800; letter-spacing:.01em;
    box-shadow:0 16px 36px -14px rgba(255,154,46,.9);
    transition:transform .18s, box-shadow .25s, filter .2s;
}
.ct-send::after{ content:""; position:absolute; top:0; bottom:0; left:-40%; width:40%; background:linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform:skewX(-18deg); transition:left .6s ease; }
.ct-send:hover{ transform:translateY(-2px); box-shadow:0 22px 44px -14px rgba(255,154,46,1); }
.ct-send:hover::after{ left:120%; }
.ct-send:active{ transform:scale(.97); }
.ct-send i{ transition:transform .35s cubic-bezier(.2,.8,.2,1); }
.ct-send:hover i{ transform:translate(5px, -5px) rotate(8deg); }
.ct-send .idle{ display:inline-flex; align-items:center; gap:11px; }
.ct-send .busy{ display:none; }
.ct-send.is-busy{ filter:saturate(.7); cursor:progress; }
.ct-send.is-busy .idle{ display:none; }
.ct-send.is-busy .busy{ display:inline-flex; align-items:center; gap:10px; }
.ct-spinner{ width:18px; height:18px; border-radius:50%; border:3px solid rgba(26,18,6,.25); border-top-color:var(--accent-contrast); animation:ctSpin .8s linear infinite; }

/* the form arrives field by field */
.pl-rv.in .ct-form > *{ animation:ctRise .6s cubic-bezier(.2,.8,.2,1) backwards; }
.pl-rv.in .ct-form > *:nth-child(1){ animation-delay:.05s; } .pl-rv.in .ct-form > *:nth-child(2){ animation-delay:.12s; }
.pl-rv.in .ct-form > *:nth-child(3){ animation-delay:.19s; } .pl-rv.in .ct-form > *:nth-child(4){ animation-delay:.26s; }
.pl-rv.in .ct-form > *:nth-child(5){ animation-delay:.33s; } .pl-rv.in .ct-form > *:nth-child(6){ animation-delay:.4s; }
@keyframes ctRise{ from{ opacity:0; transform:translateY(16px); } }
.pl-rv.in .ct-form > .ct-alert{ animation:ctShake .5s cubic-bezier(.36,.07,.19,.97) both; }

/*==========================================================
   SIGNED OUT: the gate
==========================================================*/
.ct-gate{ text-align:center; padding:clamp(18px, 4vw, 40px) 4px; }
.ct-gate-ico{
    position:relative; width:84px; height:84px; margin:0 auto 22px; border-radius:50%;
    display:grid; place-items:center; font-size:30px; color:var(--accent);
    background:radial-gradient(circle at 35% 30%, #2b2b32, #111114); border:1px solid var(--border-strong);
    box-shadow:0 0 0 7px rgba(255,176,85,.07), 0 0 50px rgba(255,154,46,.3);
}
.ct-gate-ico::before{ content:""; position:absolute; inset:-9px; border-radius:50%; border:1.5px solid rgba(255,176,85,.5); animation:plPulse 3s ease-out infinite; }
.ct-gate p{ margin:0 auto 24px; max-width:34ch; font-size:clamp(17px, 2.2vw, 21px); line-height:1.5; font-weight:700; letter-spacing:-.01em; }

/*==========================================================
   SENT: the confirmation
==========================================================*/
.ct-done{ position:relative; text-align:center; padding:clamp(22px, 5vw, 52px) 6px; }
.ct-done-ico{ position:relative; width:128px; height:128px; margin:0 auto 22px; }
.ct-done-ico svg{ width:100%; height:100%; overflow:visible; }
.ct-done-ico .bg{ fill:rgba(255,176,85,.1); stroke:none; }
.ct-done-ico .ring{ fill:none; stroke:var(--accent); stroke-width:4; stroke-linecap:round; stroke-dasharray:314; stroke-dashoffset:0; transform:rotate(-90deg); transform-origin:50% 50%; filter:drop-shadow(0 0 10px rgba(255,176,85,.7)); animation:ctDraw 1s cubic-bezier(.4,0,.2,1) .1s backwards; }
.ct-done-ico .tick{ fill:none; stroke:var(--accent); stroke-width:6; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:70; stroke-dashoffset:0; animation:ctDrawTick .6s cubic-bezier(.4,0,.2,1) .85s backwards; }
@keyframes ctDraw{ from{ stroke-dashoffset:314; } }
@keyframes ctDrawTick{ from{ stroke-dashoffset:70; } }
.ct-plane{ position:absolute; left:50%; top:50%; margin:-13px 0 0 -13px; font-size:26px; color:var(--accent); opacity:0; animation:ctFly 1.5s cubic-bezier(.5,0,.7,.4) 1.2s 1 forwards; }
@keyframes ctFly{ 0%{ opacity:1; transform:translate(0, 0) rotate(0) scale(1); } 100%{ opacity:0; transform:translate(150px, -150px) rotate(8deg) scale(.5); } }
.ct-spark{ position:absolute; left:50%; top:50%; width:7px; height:7px; margin:-3.5px; border-radius:50%; background:var(--c, var(--accent)); box-shadow:0 0 10px var(--c, var(--accent)); opacity:0; animation:ctSpark 1.1s cubic-bezier(.2,.8,.2,1) .95s 1 forwards; }
.ct-spark:nth-of-type(3n+2){ --c:#ff6b6b; } .ct-spark:nth-of-type(3n){ --c:#8fa6d6; }
@keyframes ctSpark{ 0%{ opacity:1; transform:rotate(var(--a)) translateX(30px) scale(1); } 100%{ opacity:0; transform:rotate(var(--a)) translateX(112px) scale(.2); } }
.success-msg{ margin:0 0 10px; font-size:clamp(20px, 2.8vw, 28px); line-height:1.3; font-weight:800; letter-spacing:-.02em; animation:ctRise .6s ease 1.1s backwards; }
.ct-done-sub{ display:flex; align-items:center; justify-content:center; gap:10px; margin:0 0 24px; font-size:13px; font-weight:600; color:var(--text-muted); animation:ctRise .6s ease 1.3s backwards; }
.ct-count{ position:relative; width:30px; height:30px; flex:0 0 auto; }
.ct-count svg{ width:100%; height:100%; transform:rotate(-90deg); }
.ct-count circle{ fill:none; stroke-width:3; }
.ct-count .bg{ stroke:rgba(255,255,255,.12); }
.ct-count .fg{ stroke:var(--accent); stroke-linecap:round; stroke-dasharray:81.7; stroke-dashoffset:0; animation:ctCount var(--wait, 4s) linear 1.3s forwards; }
@keyframes ctCount{ to{ stroke-dashoffset:81.7; } }
.ct-count b{ position:absolute; inset:0; display:grid; place-items:center; font-size:11px; font-weight:800; font-variant-numeric:tabular-nums; }
.ct-done .btns{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; animation:ctRise .6s ease 1.5s backwards; }

/*==========================================================
   ASIDE
==========================================================*/
.ct-quote{ position:relative; margin:0; padding:clamp(24px, 3vw, 34px); border-radius:28px; text-align:center; }
.ct-quote::after{
    content:"\201C"; position:absolute; z-index:-1; left:50%; top:-.1em; translate:-50% 0;
    font-family:Georgia, 'Times New Roman', serif; font-size:190px; line-height:1; font-weight:700;
    color:transparent; -webkit-text-stroke:1.5px rgba(255,176,85,.16); pointer-events:none;
}
.ct-quote p{ margin:0; font-size:clamp(17px, 1.9vw, 21px); line-height:1.5; font-weight:800; letter-spacing:-.02em;
    background:linear-gradient(100deg, var(--accent), #ff6b6b, #a78bfa, var(--accent)); background-size:200% 100%;
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; animation:plShine 7s linear infinite; }

.ct-links{ padding:18px; border-radius:28px; }
.ct-links h3{ margin:0 0 12px 6px; font-size:12px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); }
.ct-links a{
    display:flex; align-items:center; gap:13px; padding:12px 12px; border-radius:16px;
    font-size:14px; font-weight:700; color:var(--text-secondary);
    transition:background .2s, color .2s, transform .2s;
}
.ct-links a i:first-child{ flex:0 0 auto; width:34px; height:34px; border-radius:12px; display:grid; place-items:center; background:rgba(255,176,85,.13); color:var(--accent); font-size:13px; transition:background .2s, color .2s; }
.ct-links a span{ flex:1; min-width:0; }
.ct-links a i:last-child{ font-size:11px; opacity:.5; transition:transform .2s, opacity .2s; }
.ct-links a:hover, .ct-links a:focus-visible{ background:rgba(255,255,255,.06); color:var(--text-primary); transform:translateX(3px); }
.ct-links a:hover i:first-child{ background:var(--accent); color:var(--accent-contrast); }
.ct-links a:hover i:last-child{ transform:translateX(4px); opacity:1; }

/*==========================================================
   PHONES
==========================================================*/
@media (max-width:899px){
    .contact-page .pl-hero{ grid-template-columns:minmax(0, 1fr); gap:22px; }
    .contact-page .pl-hero > *{ min-width:0; }
}
@media (max-width:639px){
    .ct-orbit{ display:none; }                     /* the form is what the reader came for */
    .ct-card{ padding:22px 16px 20px; border-radius:26px; }
    .ct-head{ gap:12px; margin-bottom:18px; }
    .ct-badge{ width:44px; height:44px; font-size:17px; }
    .ct-who{ padding:14px; }
    .ct-input, .ct-text{ font-size:16px; }         /* 16px stops iPhones zooming in when a field is tapped */
    .ct-input{ height:56px; }
    .ct-text{ min-height:200px; }
    .ct-topic{ height:42px; }
    .ct-send{ width:100%; align-self:stretch; height:58px; }
    .ct-links a{ padding:14px 10px; }              /* easy to tap */
    .ct-quote, .ct-links{ border-radius:24px; }
    .ct-done-ico{ width:112px; height:112px; }
}
/* while someone is typing, the footer navigation steps aside so it never sits on top of the keyboard */
@media (max-width:899px){
    .bottom-nav{ transition:translate .25s ease; }
    .ct-typing .bottom-nav{ translate:0 140%; }
}

/*==========================================================
   REDUCED MOTION
==========================================================*/
@media (prefers-reduced-motion:reduce){
    .ct-pulse, .ct-halo, .ct-ring, .ct-track, .ct-sat > span, .ct-core i, .ct-badge i, .ct-gate-ico::before,
    .ct-quote p, .ct-spinner{ animation:none !important; }
    .pl-rv.in .ct-form > *, .ct-alert, .success-msg, .ct-done-sub, .ct-done .btns,
    .ct-done-ico .ring, .ct-done-ico .tick, .ct-spark, .ct-plane{ animation:none !important; }
    .ct-plane, .ct-spark{ display:none; }
    .ct-count .fg{ animation-duration:.001s; }
}
