/* Artificers AI, Cinematic kit for screens: slides, demos, one-pagers, web pages.
   Built from the brand book (brand.html, Cinematic edition, 16 October 2026), scenes 03 to 09.
   The brand book wins where this file and it differ: fix this file, never the book.
   Copy the whole kit folder (this file, fonts/, img/) beside the deliverable so it works offline. */

@font-face{font-family:'Archivo';src:url(fonts/archivo.woff2) format('woff2');font-weight:100 900;font-stretch:62% 125%;font-display:block}
@font-face{font-family:'Chivo Mono';src:url(fonts/chivo-mono.woff2) format('woff2');font-weight:300 400;font-display:block}

:root{
  color-scheme:dark;
  --black:#000000;--graphite:#111113;--ash:#8C8C91;--bone:#EDEDEA;--white:#FFFFFF;
  --black-rgb:0 0 0;--white-rgb:255 255 255;--bone-rgb:237 237 234;--graphite-rgb:17 17 19;
  --ink:var(--bone);
  --ink-2:rgb(var(--bone-rgb) / .64);   /* body copy */
  --ink-dim:rgb(var(--bone-rgb) / .46); /* dimmed first half of a title */
  --ink-3:rgb(var(--bone-rgb) / .40);   /* mono labels, scene numbers, timecodes */
  --line:rgb(var(--white-rgb) / .10);   /* hairlines and the grid */
  --line-2:rgb(var(--white-rgb) / .20); /* a line that holds an edge, tags, the slate */
  --line-3:rgb(var(--white-rgb) / .28); /* ghost buttons, pill outlines */
  --line-hi:rgb(var(--white-rgb) / .60);
  --cross:rgb(var(--white-rgb) / .70);  /* crosshairs */
  --brand-blue:#2F6BFF;--brand-blue-rgb:47 107 255; /* the one brand colour: under 1% of a frame */
  --working:#10B981;--warning:#F59E0B;--broken:#EE4444; /* real states of real systems only */
  --title:'Archivo',ui-sans-serif,system-ui,sans-serif;
  --mono:'Chivo Mono',ui-monospace,Menlo,Consolas,monospace;
  --brand-out:cubic-bezier(.16,1,.3,1);  /* entering */
  --brand-ui:cubic-bezier(.2,.8,.2,1);   /* small moves */
  --power2-in:cubic-bezier(.55,.085,.68,.53); /* leaving */
  --sine-io:cubic-bezier(.37,0,.63,1);   /* the fade-up */
}

/* ---------- type ---------- */
.k-display,.k-title{font-family:var(--title);font-stretch:125%;font-weight:200;text-transform:uppercase;line-height:1.04;letter-spacing:.01em;color:var(--ink)}
.k-display{font-size:84px;letter-spacing:.005em}
.k-title{font-size:56px}
.k-card-title{font-family:var(--title);font-stretch:125%;font-weight:300;text-transform:uppercase;font-size:24px;line-height:1.15;letter-spacing:.05em;color:var(--ink)}
.k-small-title{font-family:var(--title);font-stretch:125%;font-weight:400;text-transform:uppercase;font-size:14px;letter-spacing:.14em;color:var(--ink)}
.k-dim{color:var(--ink-dim)}
.k-body{font-family:var(--title);font-stretch:100%;font-weight:300;font-size:20px;line-height:1.55;color:var(--ink-2)}
.k-body b,.k-body strong{font-weight:400;color:var(--ink)}
.k-label{font-family:var(--title);font-stretch:125%;font-weight:400;text-transform:uppercase;font-size:11px;line-height:1.3;letter-spacing:.3em;color:var(--ink-2)}
.k-label b{font-weight:400;color:var(--ink-3);margin-right:.6em}
.k-mono{font-family:var(--mono);font-weight:400;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
.k-figure{font-family:var(--mono);font-weight:300;color:var(--ink)}
.k-bracket{font-family:var(--mono);font-weight:300;font-size:22px;letter-spacing:.16em;color:var(--ink);white-space:nowrap}
.k-bracket em{font-style:normal;color:var(--ink-3)}

/* ---------- structure ---------- */
/* slate: section label, a hairline, the scene and timecode. Every section opens on one. */
.k-slate{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px}
.k-slate .k-label{color:var(--ink)}
.k-slate__rule{height:1px;background:var(--line)}
/* hairline frame with crosshairs at its corners */
.k-frame{position:relative;border:1px solid var(--line)}
.k-frame>.k-x{position:absolute;width:11px;height:11px;pointer-events:none}
.k-frame>.k-x::before,.k-frame>.k-x::after{content:"";position:absolute;background:var(--cross)}
.k-frame>.k-x::before{left:5px;top:0;width:1px;height:11px}
.k-frame>.k-x::after{top:5px;left:0;height:1px;width:11px}
.k-x.tl{left:-6px;top:-6px}.k-x.tr{right:-6px;top:-6px}.k-x.bl{left:-6px;bottom:-6px}.k-x.br{right:-6px;bottom:-6px}
/* timeline and playhead: the playhead marks time only */
.k-timeline{position:relative;height:9px;background:
  repeating-linear-gradient(90deg,rgb(var(--white-rgb)/.34) 0 1px,transparent 1px 96px) left bottom/100% 9px no-repeat,
  repeating-linear-gradient(90deg,rgb(var(--white-rgb)/.16) 0 1px,transparent 1px 12px) left bottom/100% 4px no-repeat}
.k-playhead{position:absolute;top:-6px;bottom:0;width:1px;background:var(--brand-blue);transition:left .6s linear}
.k-playhead::before{content:"";position:absolute;left:-3px;top:-3px;width:7px;height:7px;border-radius:50%;background:var(--brand-blue)}

/* ---------- components ---------- */
.k-btn{display:inline-flex;align-items:center;gap:12px;height:48px;padding:0 22px;border-radius:999px;font-family:var(--title);font-stretch:125%;font-weight:500;text-transform:uppercase;font-size:11px;letter-spacing:.2em;white-space:nowrap;cursor:pointer;transition:background .3s var(--brand-ui),border-color .3s var(--brand-ui)}
.k-btn--primary{background:var(--brand-blue);color:var(--white);border:1px solid var(--brand-blue)} /* one per view */
.k-btn--ghost{background:transparent;color:var(--ink);border:1px solid var(--line-3)}
.k-btn--pill{background:transparent;color:var(--ink);border:1px solid var(--line-3);padding:0 6px 0 22px;gap:16px}
.k-ring{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid rgb(var(--white-rgb)/.34);transition:background .3s var(--brand-ui),border-color .3s var(--brand-ui)}
.k-btn--pill:hover .k-ring{background:var(--brand-blue);border-color:var(--brand-blue)}
.k-tag{display:inline-flex;align-items:center;height:20px;padding:0 7px;border:1px solid var(--line-2);border-radius:3px;font-family:var(--mono);font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-2);white-space:nowrap}
.k-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--brand-blue)} /* what's live or chosen, one per view */
/* glass: only ever over the liquid or an image, never on flat black */
.k-glass{background:linear-gradient(165deg,rgb(var(--white-rgb)/.085),rgb(var(--white-rgb)/.02) 55%,rgb(var(--white-rgb)/.035));
  -webkit-backdrop-filter:blur(20px) saturate(130%);backdrop-filter:blur(20px) saturate(130%);
  border:1px solid rgb(var(--white-rgb)/.12);box-shadow:inset 0 1px 0 rgb(var(--white-rgb)/.12),0 40px 80px -40px rgb(0 0 0/.9);border-radius:18px}
/* the edge glow: light on the border of the thing being talked about, spilling outward only. One at a time. */
.k-lit{border-color:rgb(var(--brand-blue-rgb)/.9)!important;box-shadow:0 0 0 1px rgb(var(--brand-blue-rgb)/.35),0 0 22px -4px rgb(var(--brand-blue-rgb)/.55)}

/* ---------- material and grain ---------- */
/* the black liquid: once per page or deck, behind the content that matters most. Fades to black top and bottom. */
.k-liquid{position:absolute;inset:0;background:#000 url(img/vc-liquid.jpg) center/cover no-repeat;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 24%,#000 76%,transparent);mask-image:linear-gradient(180deg,transparent,#000 24%,#000 76%,transparent);
  animation:k-drift 40s linear infinite alternate}
@keyframes k-drift{from{transform:scale(1.04) translateX(-1%)}to{transform:scale(1.08) translateX(1%)}}
.k-grain{position:absolute;inset:-20%;pointer-events:none;opacity:.18;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation:k-grain .9s steps(5) infinite}
@keyframes k-grain{0%{transform:translate(0,0)}25%{transform:translate(-3%,2%)}50%{transform:translate(2%,-3%)}75%{transform:translate(-2%,-1%)}100%{transform:translate(1%,3%)}}

/* ---------- motion: arrive fast, settle long, never bounce ---------- */
.k-rise{opacity:0;transform:translateY(14px);transition:opacity .6s var(--brand-out),transform .6s var(--brand-out);transition-delay:var(--d,0s)}
.k-track{opacity:0;letter-spacing:.6em;transition:opacity .9s var(--brand-out),letter-spacing .9s var(--brand-out);transition-delay:var(--d,0s)}
.k-fade{opacity:0;transition:opacity 1.2s var(--sine-io);transition-delay:var(--d,0s)}
.k-rise.on,.k-fade.on{opacity:1;transform:none}
.k-track.on{opacity:1;letter-spacing:.01em}
.k-display.k-track.on{letter-spacing:.005em}

@media (prefers-reduced-motion:reduce){.k-rise,.k-track,.k-fade{transition:none}.k-liquid,.k-grain{animation:none}}
