/* CK Applied Systems: home v4. Dark ink, cyan and violet signal colour.
   Plain words, real artefacts, one orbit. Homepage only. */

:root {
  --bg: #05070a;
  --bg-2: #090c11;
  --card: #0e131a;
  --card-2: #131a23;
  --text: #eef3f7;
  --muted: #8d99a6;
  --dim: #5b6670;
  --line: rgba(238, 243, 247, .08);
  --line-2: rgba(238, 243, 247, .15);
  --cyan: #5ce1ff;
  --violet: #8f7dff;
  --mint: #4be3a0;
  --amber: #ffb547;
  --grad: linear-gradient(100deg, #5ce1ff 0%, #8f7dff 100%);

  --display: "Bricolage Grotesque", "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --sans: "Instrument Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell: 1220px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.shell { width: 100%; max-width: calc(var(--shell) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* Labels and buttons */
.label { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label span { color: var(--cyan); }
.label span::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; opacity: .6; }
.label-light { color: var(--muted); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; transition: transform .25s var(--ease), background-color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; box-shadow: 0 10px 40px -10px rgba(92, 225, 255, .55); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.link-light { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .25s; }
.link-light:hover { border-color: var(--cyan); }

/* Top bar */
.top { position: absolute; inset: 0 0 auto; z-index: 10; }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 600 17px/1 var(--sans); letter-spacing: -.01em; }
.brand img { width: 34px; height: auto; }
.top-links { display: flex; gap: 28px; }
.top-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.top-links a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 120px 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
    radial-gradient(760px 520px at 76% 42%, rgba(92, 225, 255, .10), transparent 65%),
    radial-gradient(620px 480px at 88% 70%, rgba(143, 125, 255, .12), transparent 65%),
    radial-gradient(700px 500px at 0% 0%, rgba(143, 125, 255, .06), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background-image: radial-gradient(rgba(238, 243, 247, .09) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 65%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(48px, 6vw, 92px); line-height: .96; letter-spacing: -.045em; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { max-width: 48ch; margin-top: 26px; color: var(--muted); font-size: clamp(17px, 1.35vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 34px; }

/* Hero orbit */
.orbit { position: relative; aspect-ratio: 1 / .86; margin-right: calc(var(--gutter) * -1); }
.orbit-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Task feed */
.feed-wrap { position: relative; perspective: 1400px; }
.feed-shadow { position: absolute; inset: 22px -14px -18px 18px; border-radius: var(--radius); background: rgba(143, 125, 255, .06); border: 1px solid rgba(143, 125, 255, .18); transform: rotate(2.4deg); }
.feed { position: relative; border-radius: var(--radius); background: linear-gradient(180deg, #111821, #0c1117); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -30px rgba(92, 225, 255, .35); overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.feed-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed-dots { display: flex; gap: 6px; }
.feed-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.feed-head b { font-weight: 600; }
.feed-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.feed-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(75, 227, 160, .5); } 70% { box-shadow: 0 0 0 8px rgba(75, 227, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(75, 227, 160, 0); } }
.feed-meter { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.feed-meter div { padding: 14px 18px; }
.feed-meter div + div { border-left: 1px solid var(--line); }
.feed-meter small { display: block; font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.feed-meter strong { display: block; margin-top: 6px; font: 600 34px/1 var(--display); letter-spacing: -.03em; }
.feed-wait { color: var(--amber); }
.feed-list { position: relative; height: 296px; overflow: hidden; }
.task { position: absolute; left: 0; right: 0; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; height: 74px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #0d1218; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.task-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(238, 243, 247, .05); color: var(--muted); font: 600 10.5px/1 var(--mono); }
.task-text { min-width: 0; }
.task-text b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; font-size: 14.5px; }
.task-text small { font: 400 12px/1.4 var(--mono); color: var(--muted); }
.task-state { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font: 500 11.5px/1 var(--mono); white-space: nowrap; background: rgba(238, 243, 247, .05); color: var(--muted); }
.task-state .spin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--cyan); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.task.is-done .task-state, .task.is-done .task-ico { background: rgba(75, 227, 160, .1); color: var(--mint); }
.task.is-wait .task-state, .task.is-wait .task-ico { background: rgba(255, 181, 71, .12); color: var(--amber); }
.task .check { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw .5s .1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.task.is-new { background: linear-gradient(90deg, rgba(92, 225, 255, .08), transparent 60%), #0d1218; }
.feed-foot { padding: 12px 18px; font: 400 11.5px/1.5 var(--mono); color: var(--dim); }

/* Stats strip */
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(40px, 6vw, 72px) 0 0; border-top: 1px solid var(--line); }
.stats > div { padding: 26px 24px 34px 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 12px 0 6px; font: 600 clamp(40px, 4.4vw, 58px)/1 var(--display); letter-spacing: -.04em; }
.stats .dd-text { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.15; }
.stats p { color: var(--muted); font-size: 14px; }

/* Sticky section menu */
.subnav { position: sticky; top: 0; z-index: 20; background: rgba(5, 7, 10, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.subnav-links { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a { position: relative; flex: none; padding: 10px 12px; color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.subnav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.subnav-links a:hover, .subnav-links a.is-active { color: var(--text); }
.subnav-links a.is-active::after { transform: scaleX(1); }

/* Sections */
.section { position: relative; padding: clamp(80px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { max-width: 22ch; font-size: clamp(38px, 5vw, 68px); }
.lede { max-width: 56ch; margin-top: 20px; color: var(--muted); font-size: clamp(17px, 1.35vw, 19px); }
.lede + .lede { margin-top: 14px; }

/* 01 What changes */
.changes-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.changes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-top: 1px solid var(--line); }
.change { padding: 32px 28px 8px 0; }
.change + .change { padding-left: 28px; border-left: 1px solid var(--line); }
.change h3 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 22px; }
.change p { font-size: 16px; }
.change p + p { margin-top: 16px; }
.change small { display: block; margin-bottom: 4px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.change .was { color: var(--dim); }
.change .now small { color: var(--mint); }

/* 02 What I do */
.offers { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; margin-top: 56px; }
.offer { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 2.6vw, 36px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), border-color .3s; }
.offer:hover { transform: translateY(-4px); border-color: rgba(92, 225, 255, .3); }
.offer-dark { background: linear-gradient(160deg, rgba(92, 225, 255, .12), rgba(143, 125, 255, .1) 60%, var(--card)); border-color: rgba(92, 225, 255, .28); }
.offer-tag { font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.offer h3 { margin: 18px 0 14px; font-size: clamp(26px, 2.4vw, 34px); }
.offer > p { color: var(--muted); }
.ticks { margin-top: auto; padding-top: 26px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: rgba(75, 227, 160, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234be3a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.after-offers { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 40px; color: var(--muted); }
.after-offers span a { color: var(--text); }

/* 03 Industries */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.industries li { position: relative; padding: 26px 24px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), border-color .3s; }
.industries li::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.industries li:hover { transform: translateY(-4px); border-color: var(--line-2); }
.industries li:hover::before { transform: scaleX(1); }
.industries small { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.industries h3 { margin: 14px 0 10px; font-size: 22px; letter-spacing: -.025em; }
.industries p { color: var(--muted); font-size: 15px; }

/* 04 Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
.steps li { position: relative; padding: 0 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-n { display: block; font: 600 clamp(56px, 6vw, 84px)/1 var(--display); letter-spacing: -.05em; margin-bottom: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 22px; letter-spacing: -.025em; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* Close */
.close { position: relative; overflow: hidden; padding: clamp(100px, 12vw, 150px) 0; text-align: center; border-top: 1px solid var(--line); }
.close::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 380px at 50% 115%, rgba(92, 225, 255, .18), transparent 70%), radial-gradient(500px 300px at 50% 120%, rgba(143, 125, 255, .22), transparent 70%); }
.close-inner { position: relative; }
.close h2 { font-size: clamp(42px, 6vw, 84px); letter-spacing: -.045em; }
.close h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.close p { max-width: 52ch; margin: 22px auto 0; color: var(--muted); font-size: 18px; }
.close-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; margin-top: 36px; }

/* Footer */
.footer { padding: 56px 0 28px; border-top: 1px solid var(--line); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 34px; }
.footer p { color: var(--muted); }
.footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.copyright { margin-top: 40px; font: 400 12px/1 var(--mono); color: var(--dim); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.js .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.js .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.js .orbit { opacity: 0; animation: fade 1.6s .2s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .orbit { max-width: 640px; width: 100%; margin: 0 auto; aspect-ratio: 1 / .8; }
  .changes-top { grid-template-columns: 1fr; }
  .feed-wrap { max-width: 560px; }
  .offers { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top-links { display: none; }
  .hero { padding-top: 104px; }
  .orbit { aspect-ratio: 1 / .95; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .changes { grid-template-columns: 1fr; margin-top: 48px; }
  .change, .change + .change { padding: 28px 0 24px; border-left: 0; }
  .change + .change { border-top: 1px solid var(--line); }
  .industries { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 0; border-left: 0; }
  .subnav-inner { height: 56px; }
  .subnav .btn-sm { display: none; }
  .subnav-links a::after { bottom: -9px; }
  .footer-grid { grid-template-columns: 1fr; }
  .task { grid-template-columns: 28px 1fr; height: 92px; row-gap: 2px; align-content: center; }
  .task-ico { grid-row: span 2; }
  .task-state { grid-column: 2; justify-self: start; padding: 4px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero-copy > *, .js .orbit { opacity: 1; transform: none; }
}
