/* Krascorp Cortex (/cortex): Krascorp's own AI tools. Built from the home page's frame (home.css: navy sky, glass
   panels, window frames, figures row, marquee); Cortex adds violet and cyan as its own accent, the way Web Design adds
   gold. Each tool shows a small example of its work (made-up data). Motion: transform and opacity only. */
body.brand-home.brand-cortex{--cx-v:#a78bff;--cx-v-deep:#7c5cff;--cx-c:#5ee0ff;--cx-ink:#0c0820;
  --chrome-accent:#a78bff;--chrome-accent-hover:#c2adff;--chrome-accent-ink:#0c0820}
.brand-cortex ::selection{background:#a78bff55}
.brand-cortex :focus-visible{outline-color:var(--cx-v)}
.brand-cortex .header nav a{background-image:linear-gradient(90deg,var(--cx-v),var(--cx-c))}
main:has(.cx-hero){overflow-x:clip}

/* The home's sky, with violet and cyan light in place of red */
.cx-sky i:nth-child(1){background:radial-gradient(closest-side,#6d4dff,transparent)}
.cx-sky i:nth-child(2){background:radial-gradient(closest-side,#1d8bff,transparent)}
.cx-sky i:nth-child(3){background:radial-gradient(closest-side,#00b8d9,transparent)}

/* Buttons: violet, as Web Design's are gold (the home page keeps white) */
.brand-cortex .button{background:var(--cx-v);border-color:var(--cx-v);color:var(--cx-ink)}
.brand-cortex .button:hover{background:#c2adff;border-color:#c2adff;color:var(--cx-ink)}

/* Hero: the second line shimmers once, like a thought forming */
.brand-cortex .kx-pill::before{background:var(--cx-c);box-shadow:0 0 0 4px #5ee0ff33,0 0 12px var(--cx-c)}
.brand-cortex .kx-display .cx-think{background:linear-gradient(90deg,#fff 0%,#d9ccff 30%,var(--cx-v) 55%,var(--cx-c) 80%,#fff 100%);background-size:200% 100%;background-position:100% 0;-webkit-background-clip:text;background-clip:text;color:transparent}
@media(prefers-reduced-motion:no-preference){
  .brand-cortex .kx-display .cx-think{animation:cx-think 2.4s cubic-bezier(.16,1,.3,1) .3s both}
  .cx-hero-shot{animation:cx-rise .9s cubic-bezier(.16,1,.3,1) .2s both}
  .cx-feed p{animation:cx-rise .6s cubic-bezier(.16,1,.3,1) both}
  .cx-feed p:nth-child(1){animation-delay:.9s}.cx-feed p:nth-child(2){animation-delay:1.3s}.cx-feed p:nth-child(3){animation-delay:1.7s}
  .cx-feed small{animation:cx-rise .6s cubic-bezier(.16,1,.3,1) 2.1s both}
  .cx-lead-row.is-busy span::after,.cx-status::before{animation:cx-pulse 1.4s ease-in-out infinite alternate}
}
@keyframes cx-think{from{background-position:100% 0;opacity:.2}to{background-position:0 0;opacity:1}}
@keyframes cx-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes cx-pulse{from{opacity:.35}to{opacity:1}}
.brand-cortex .kx-stats b{background:linear-gradient(180deg,#fff,#c9b8ff)!important;-webkit-background-clip:text!important;background-clip:text!important}

/* Hero picture with a live feed of what the AIs did */
.cx-shot{position:relative;margin:0;border-radius:18px;overflow:hidden;border:1px solid #ffffff24;background:#0b0f1d;box-shadow:0 40px 80px -40px #000,0 0 0 1px #ffffff0a}
.brand-cortex .cx-shot img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border:0;border-radius:0;box-shadow:none}
.cx-hero-shot{width:min(560px,100%)}
.cx-feed{position:absolute;left:16px;bottom:16px;display:grid;gap:8px;width:min(300px,calc(100% - 32px));padding:14px;border-radius:16px;background:#0a0d1acc;border:1px solid #ffffff1f;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.brand-cortex .cx-feed p{display:grid;grid-template-columns:10px auto 1fr;align-items:center;gap:8px;margin:0;font-size:12.5px;color:#c9d2df}
.cx-feed b{color:#fff;font-weight:650}
.cx-feed i{width:8px;height:8px;border-radius:50%;background:var(--cx-c);box-shadow:0 0 8px var(--cx-c)}
.cx-feed small{padding-top:8px;border-top:1px solid #ffffff14;font-size:12px;font-weight:600;color:var(--cx-v)}

/* Marquee */
.cx-marquee b{color:#fff}
.cx-marquee span:not(:has(b)){color:var(--cx-c)}

/* Line-up */
.cx-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,26rem);gap:12px 48px;align-items:end;margin-bottom:36px}
.cx-head h2{margin:0!important}
.cx-head p{margin:0;font-size:16.5px;color:#b7c0d3}
.cx-head--team{margin:clamp(64px,8vw,104px) 0 28px}
.cx-head--team h3{margin:0;font-size:clamp(2rem,3.6vw,3rem);line-height:1;letter-spacing:-.045em;font-weight:650}
.brand-cortex .cx-door{min-height:0;padding:32px;cursor:default}
.brand-cortex .cx-door:hover{transform:none}
.brand-cortex .cx-door small{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;color:var(--cx-c)}
.brand-cortex .cx-door strong{font-size:clamp(2.2rem,3.6vw,3.2rem)}
.brand-cortex .cx-door p{max-width:44ch}
.brand-cortex .cx-door::after{background:conic-gradient(from var(--kx-spin),transparent 0 70%,var(--cx-v) 80%,var(--cx-c) 90%,transparent 100%)}
.cx-status{display:inline-flex;align-items:center;gap:7px;padding:4px 11px;border-radius:999px;border:1px solid #a78bff55;font-size:12.5px;font-weight:650;color:#d9ccff}
.cx-status::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--cx-v);box-shadow:0 0 8px var(--cx-v)}
.brand-cortex .cx-door .cx-mock{position:relative;left:auto;right:auto;bottom:auto;margin-top:24px;border-radius:16px;background:#0a0d1a}
.cx-mock .kh-window-bar{display:flex;align-items:center;gap:6px;height:30px;padding:0 12px;background:#12152199}
.cx-mock .kh-window-bar i{width:9px;height:9px;border-radius:50%;background:#ffffff2e}
.cx-mock .kh-window-bar b{margin-left:8px;font-size:12px;font-weight:650;color:#d3d9e6}
.cx-mock .kh-window-bar em{margin-left:auto;font-style:normal;font-size:11px;font-weight:600;color:#7d879b}

/* Spark: wide panel, copy left, its three clicks right */
.brand-cortex .cx-door--wide{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:center;padding:40px}
.brand-cortex .cx-door--wide .cx-mock{margin-top:0}
.cx-clicks{display:grid;gap:8px;margin:0;padding:16px;list-style:none}
.cx-clicks li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:0 12px;align-items:center;padding:10px 14px;border-radius:14px;border:1px solid #ffffff1a;background:#ffffff08}
.cx-clicks b{grid-row:span 2;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#a78bff24;color:var(--cx-v);font-size:13.5px}
.cx-clicks span{font-size:15px;font-weight:650;color:#eef1f7}
.brand-cortex .cx-clicks small{display:block;font-size:13px;font-weight:400;color:#a9b3c7}
.cx-clicks li:last-child{border-color:#5ee0ff55;background:#5ee0ff0f}
.cx-clicks li:last-child b{background:var(--cx-c);color:var(--cx-ink)}
.brand-cortex .cx-formats{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:18px}
.cx-formats span{padding:5px 11px;border-radius:999px;border:1px solid #ffffff26;font-size:12.5px;font-weight:600;color:#d3d9e6}
.brand-cortex .cx-actions{margin-top:24px}
.cx-formats .cx-where{border:0;padding-left:6px;color:#a9b3c7;font-weight:500}

/* The three AIs and their example windows */
.cx-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.brand-cortex .cx-trio .cx-door{display:flex;flex-direction:column}
.brand-cortex .cx-trio .cx-door .cx-guard{margin-top:auto;padding-top:14px;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#d3d9e6}
.cx-guard::before{content:"";width:15px;height:15px;flex:none;background:var(--cx-c);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1 2.5 3.2v4.2c0 3.3 2.3 6.2 5.5 7.1 3.2-.9 5.5-3.8 5.5-7.1V3.2z' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='m5.6 8 1.7 1.7 3.2-3.4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1 2.5 3.2v4.2c0 3.3 2.3 6.2 5.5 7.1 3.2-.9 5.5-3.8 5.5-7.1V3.2z' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='m5.6 8 1.7 1.7 3.2-3.4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.cx-m{display:grid;gap:8px;margin:0;padding:16px;min-height:168px;align-content:start;list-style:none}
.brand-cortex .cx-m p{margin:0;max-width:none;font-size:13px;line-height:1.4;color:#c9d2df}
.brand-cortex .cx-m-top{display:flex;align-items:center;gap:8px}
.cx-m-top i{width:8px;height:8px;border-radius:50%;background:var(--cx-c);box-shadow:0 0 8px var(--cx-c)}
.cx-m-top b{font-size:12.5px;color:#fff}
.cx-m-top em{margin-left:auto;font-style:normal;font-size:12px;font-weight:700;color:var(--cx-c)}
.brand-cortex .cx-m-handle{font-size:15px!important;font-weight:650;color:#fff!important}
.brand-cortex .cx-m-line.is-idea{padding:8px 10px;border-radius:10px;background:#a78bff14;border:1px solid #a78bff33;color:#e6defe!important}
.brand-cortex .cx-m-pill{justify-self:start;padding:5px 11px;border-radius:999px;background:var(--cx-v);color:var(--cx-ink)!important;font-size:12px!important;font-weight:650}
.brand-cortex .cx-lead-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px;border-radius:10px;background:#ffffff08;border:1px solid #ffffff14}
.cx-lead-row b{margin-right:auto;font-size:13px;color:#fff;font-weight:600}
.cx-lead-row span{padding:2px 8px;border-radius:999px;font-size:11px;font-weight:650;color:#a9b3c7;border:1px solid #ffffff1f}
.cx-lead-row span.ok{color:var(--cx-c);border-color:#5ee0ff44}
.cx-lead-row span.ok::before{content:"✓ "}
.cx-lead-row.is-busy span{display:inline-flex;align-items:center;gap:6px}
.cx-lead-row.is-busy span::after{content:"";width:6px;height:6px;border-radius:50%;background:var(--cx-v)}
.cx-m-cad li{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 10px;padding:9px 10px 9px 30px;position:relative;border-radius:10px;background:#ffffff08;border:1px solid #ffffff14}
.cx-m-cad li::before{content:"";position:absolute;left:12px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;border:1.5px solid var(--cx-v)}
.cx-m-cad b{font-size:13px;color:#fff;font-weight:600}
.cx-m-cad span{justify-self:end;font-size:11px;font-weight:650;color:var(--cx-c)}

/* Steps: three glass cards with a progress bar */
.cx-steps-sec{padding-block:clamp(48px,7vw,96px)}
.cx-steps-sec h2{margin:0 0 36px;font-size:clamp(2.2rem,4.6vw,4.2rem);line-height:1;letter-spacing:-.045em;font-weight:650}
.cx-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0;padding:0;list-style:none;counter-reset:cx}
.cx-steps li{display:grid;gap:10px;align-content:start;padding:28px;border-radius:24px;background:#ffffff0a;border:1px solid #ffffff1a;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.cx-heat{position:relative;display:block;height:4px;border-radius:4px;background:#ffffff14;overflow:hidden;margin-bottom:10px}
.cx-heat::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--cx-v-deep),var(--cx-v),var(--cx-c));transform-origin:left}
.cx-steps li:nth-child(1) .cx-heat::after{transform:scaleX(.34)}.cx-steps li:nth-child(2) .cx-heat::after{transform:scaleX(.67)}
.cx-steps b{font-size:clamp(1.5rem,2.4vw,2rem);font-weight:700;letter-spacing:-.035em;color:#fff}
.cx-steps b::before{counter-increment:cx;content:"0" counter(cx) " ";font-size:.5em;letter-spacing:.04em;vertical-align:.5em;color:var(--cx-c)}
.cx-steps p{margin:0;font-size:15.5px;color:#b7c0d3}

/* Next: three connected nodes and an open one */
.cx-next{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(32px,6vw,80px);align-items:center;padding-block:clamp(48px,7vw,96px) clamp(72px,9vw,120px)}
.cx-slot{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:220px;padding:0 clamp(24px,5vw,48px);border-radius:28px;background:#ffffff08;border:1px solid #ffffff1a}
.cx-slot::before{content:"";position:absolute;left:clamp(40px,7vw,72px);right:clamp(40px,7vw,72px);top:50%;height:1px;background:linear-gradient(90deg,var(--cx-v),var(--cx-c) 70%,transparent)}
.cx-node{position:relative;display:grid;place-items:center;width:clamp(36px,5vw,52px);aspect-ratio:1;border-radius:14px;background:linear-gradient(140deg,#a78bff55,#5ee0ff33);border:1px solid #ffffff33;box-shadow:0 0 24px #a78bff44}
.cx-node.is-new{background:transparent;border:1.5px dashed var(--cx-c);box-shadow:none;color:var(--cx-c);font-size:22px;font-weight:600}
.cx-next h2{margin:0 0 16px;font-size:clamp(2.2rem,4.6vw,4.2rem);line-height:1;letter-spacing:-.045em;font-weight:650}
.cx-next p{margin:0 0 28px;max-width:46ch;font-size:17px;color:#b7c0d3}

/* Contact keeps the home page's glass form */
.brand-cortex .contact-field input:focus,.brand-cortex .contact-field textarea:focus{border-color:var(--cx-v)!important;box-shadow:0 0 0 3px #a78bff33}
.brand-cortex .contact-links .text-link:hover{color:var(--cx-v)}

/* Panels arrive once as they scroll in (cortex.js) */
.fy-motion [data-reveal]{opacity:0;transform:translateY(28px);transition:opacity .7s cubic-bezier(.16,1,.3,1),transform .8s cubic-bezier(.16,1,.3,1)}
.fy-motion [data-reveal].is-in{opacity:1;transform:none}
.fy-motion .cx-trio [data-reveal]:nth-child(2){transition-delay:.08s}.fy-motion .cx-trio [data-reveal]:nth-child(3){transition-delay:.16s}
.fy-motion [data-steps] .cx-heat::after{transform:scaleX(0);transition:transform 1.1s cubic-bezier(.16,1,.3,1)}
.fy-motion [data-steps].is-in li:nth-child(1) .cx-heat::after{transform:scaleX(.34)}
.fy-motion [data-steps].is-in li:nth-child(2) .cx-heat::after{transform:scaleX(.67);transition-delay:.2s}
.fy-motion [data-steps].is-in li:nth-child(3) .cx-heat::after{transform:scaleX(1);transition-delay:.4s}

@media(max-width:1000px){
  .brand-cortex .cx-door--wide{grid-template-columns:1fr}
  .cx-trio,.cx-steps{grid-template-columns:1fr}
}
@media(max-width:760px){
  .cx-head,.cx-next{grid-template-columns:1fr}
  .brand-cortex .cx-door,.brand-cortex .cx-door--wide{padding:24px}
  .cx-slot{min-height:150px}
}

/* Specialised vs general: one glass table; the Cortex column carries the accent */
.cx-diff{padding-block:clamp(56px,8vw,112px) 0}
.cx-diff-card{border-radius:28px;background:#ffffff0a;border:1px solid #ffffff1a;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);overflow:hidden}
.cx-diff table{width:100%;border-collapse:collapse;table-layout:fixed}
.cx-diff :is(th,td){padding:22px 28px;text-align:left;vertical-align:top;font-size:15.5px;line-height:1.5;border-top:1px solid #ffffff12}
.cx-diff thead :is(th,td){border-top:0;padding-block:24px 18px;font-size:13px;font-weight:650;letter-spacing:.08em;text-transform:uppercase}
.cx-diff thead td{width:18%}
.cx-diff tbody th{font-size:13px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:#7d879b}
.cx-diff td.is-gen,.cx-diff thead .is-gen{color:#8f99ad}
.cx-diff thead .is-gen{color:#7d879b}
.cx-diff .is-spec{color:#eef1f7;background:linear-gradient(90deg,#a78bff14,#5ee0ff0a)}
.cx-diff thead .is-spec{color:var(--cx-c)}
.cx-diff td.is-spec{position:relative;padding-left:52px}
.cx-diff td.is-spec::before{content:"";position:absolute;left:28px;top:27px;width:14px;height:14px;background:var(--cx-c);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
@media(max-width:760px){
  .cx-diff :is(table,thead,tbody,tr,th,td){display:block;width:auto}
  .cx-diff thead tr{display:flex;flex-wrap:wrap;gap:8px;padding:20px 20px 4px}
  .cx-diff thead td{display:none}
  .cx-diff thead th{padding:5px 11px;border-radius:999px;border:1px solid #ffffff26;font-size:11.5px;background:none}
  .cx-diff thead th.is-spec{border-color:#5ee0ff55;background:#5ee0ff12}
  .cx-diff tbody tr{padding:20px;border-top:1px solid #ffffff12}
  .cx-diff tbody tr:first-child{border-top:0}
  .cx-diff tbody :is(th,td){padding:0;border:0;background:none}
  .cx-diff tbody th{margin-bottom:10px}
  .cx-diff td.is-gen{padding:0 0 10px;font-size:14.5px}
  .cx-diff td.is-spec{padding:12px 12px 12px 36px;border-radius:12px;background:linear-gradient(90deg,#a78bff1f,#5ee0ff10)}
  .cx-diff td.is-spec::before{left:14px;top:16px}
}
