/* Native scrollbar geometry follows browser and OS preferences. */
html,
body {
  overscroll-behavior: none;
}

html {
  color-scheme: light;
  scrollbar-width: thin;
  scrollbar-color: var(--proto-muted) var(--proto-paper);
}

:where(pre, :has(> pre), .overflow-x-auto, .scroll-thin, [data-scroll-surface]) {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb, var(--proto-muted)) var(--scroll-track, transparent);
}

[data-scroll-surface='light'] {
  color-scheme: light;
  --scroll-thumb: var(--proto-muted);
  --scroll-track: transparent;
}

[data-scroll-surface='dark'] {
  color-scheme: dark;
  --scroll-thumb: var(--proto-paper);
  --scroll-track: transparent;
}

@media (forced-colors: active) {
  html,
  :where(pre, :has(> pre), .overflow-x-auto, .scroll-thin, [data-scroll-surface]) {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
}

:root {
  --proto-paper: #f4f0e9;
  --proto-ink: #2b2521;
  --proto-muted: #6c5e54;
  --proto-orange: #ff6b32;
  --proto-dark: #29221e;
  --proto-line: #d5c9bd;
  --proto-gutter: max(clamp(22px, 4.5vw, 80px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --proto-section-space: clamp(88px, 12vw, 184px);
  --proto-radius: 16px;
  --proto-ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--proto-paper); color: var(--proto-ink); font-family: 'Supreme', sans-serif; font-size: 18px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
::selection { background: var(--proto-orange); color: var(--proto-ink); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: 'Clash Grotesk', sans-serif; font-weight: 500; letter-spacing: -.025em; }
h2 { font-size: clamp(44px, 6vw, 96px); line-height: 1.04; }
h3 { font-size: clamp(32px, 3.4vw, 54px); line-height: 1.08; }
.k-pad { padding: var(--proto-section-space) var(--proto-gutter); }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; background: var(--proto-paper); padding: 14px 22px; }
.skip-link:focus { top: 16px; }
.k-nav { position: absolute; inset: 0 0 auto; z-index: 10; padding: 28px var(--proto-gutter); display: flex; justify-content: space-between; align-items: center; color: var(--proto-paper); }
.k-nav > a:first-child { width: 108px; }
.k-nav img { filter: brightness(0) invert(1); }
.k-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 30px; border-radius: 100px; background: var(--proto-paper); color: var(--proto-ink); padding: 15px 24px; font-size: 16px; transition: background .25s var(--proto-ease), transform .25s var(--proto-ease); }
.k-button:hover { background: var(--proto-orange); transform: translateY(-2px); }
.k-button:active { transform: translateY(0); }
.k-hero { min-height: 680px; height: 100svh; max-height: 1200px; position: relative; overflow: clip; background: #211b18; color: var(--proto-paper); }
.k-film { position: absolute; inset: 0; transform-origin: center; background: url('../images/proto/supercar-hero-A-poster.jpg') 52% center / cover no-repeat; }
html[data-hero-video-variant='B'] .k-film { background-image: url('../images/proto/supercar-hero-B-poster.jpg'); }
html[data-hero-video-variant='C'] .k-film { background-image: url('../images/proto/supercar-hero-C-poster.jpg'); }
html[data-hero-video-variant='F'] .k-film { background-image: url('../images/proto/supercar-hero-F-poster.jpg'); }
.k-film video { width: 100%; height: 100%; object-fit: cover; }
.k-film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,17,12,.58), rgba(24,17,12,.22) 48%, rgba(24,17,12,.04) 78%), linear-gradient(0deg, rgba(24,17,12,.82), transparent 65%); }
.k-hero-content { position: relative; height: 100%; padding: 140px var(--proto-gutter) 52px; z-index: 2; pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; }
.k-hero-intro { font-size: 15px; line-height: 1.4; margin-bottom: 32px; letter-spacing: .015em; }
.k-hero h1 { font-size: clamp(46px, 7vw, 114px); line-height: 1.08; letter-spacing: -.035em; margin-left: -.055em; padding-bottom: 44px; }
.k-hero h1 span { display: block; white-space: nowrap; animation: k-title-in 1.1s var(--proto-ease) both; }
.k-hero h1 span:nth-child(2) { animation-delay: .12s; }
.k-hero-bottom { display: flex; align-items: center; gap: 20px; font-size: 16px; line-height: 1.5; }
.k-section-meta { display: flex; justify-content: space-between; gap: 24px; font-size: 15px; margin-bottom: 68px; }
.k-introduction h2 { font-size: clamp(44px, 6.8vw, 110px); max-width: 1400px; }
.k-underlined { text-decoration: underline; text-decoration-color: var(--proto-orange); text-decoration-thickness: .065em; text-underline-offset: .13em; }
.k-intro-summary { display: grid; grid-template-columns: 1fr 1fr; align-items: start; margin-top: 72px; }
.k-intro-summary p { font-size: clamp(20px, 2vw, 28px); max-width: 660px; line-height: 1.5; }
.k-chapters { display: grid; grid-template-columns: 1fr 1.08fr; gap: 8vw; align-items: start; }
.k-chapters-intro { position: sticky; top: 80px; }
.k-caption { color: var(--proto-muted); font-size: 15px; margin-bottom: 28px; }
.k-chapters-intro h2 { font-size: clamp(40px, 4.7vw, 76px); margin-bottom: 32px; }
.k-chapters-intro > p:not(.k-caption) { color: var(--proto-muted); }
.k-text-link { display: inline-flex; gap: 48px; border-bottom: 1px solid var(--proto-ink); padding: 12px 0; margin-top: 42px; }
.k-text-link:hover { color: #a23712; }
.k-chapter { padding: 0 0 80px; margin-bottom: 60px; border-bottom: 1px solid var(--proto-line); }
.k-chapter:last-child { margin: 0; padding-bottom: 0; border: 0; }
.k-chapter-label { display: flex; justify-content: space-between; margin-bottom: 32px; color: var(--proto-muted); font-size: 15px; }
.k-chapter h3 { margin-bottom: 24px; }
.k-chapter > p { max-width: 540px; color: var(--proto-muted); }
.k-build-art { padding: 32px 0 0; }
.k-prompt { background: #eaded0; border-radius: 12px; padding: 20px; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.k-art-line { height: 32px; width: 1px; background: #a78569; margin: auto; }
.k-mini-app { border: 1px solid #d5c4b3; background: #fcf8f2; border-radius: 12px; overflow: hidden; font-size: 13px; box-shadow: 0 14px 40px #29221e09; }
.k-mini-app > div:first-child { display: flex; align-items: center; gap: 8px; padding: 16px; border-bottom: 1px solid #eaded0; }
.k-mini-app > div:first-child > span:last-child { margin-left: auto; color: var(--proto-muted); font-size: 11px; }
.k-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--proto-orange); flex-shrink: 0; }
.k-mini-columns { display: grid; grid-template-columns: repeat(3,1fr); padding: 16px; gap: 12px; color: var(--proto-muted); }
.k-mini-columns b { display: block; padding: 12px 8px; background: #f0e6da; margin-top: 10px; border-radius: 4px; font-weight: 400; color: var(--proto-ink); }
.k-build-art > small { display: block; text-align: right; color: var(--proto-muted); font-size: 11px; margin-top: 8px; }
.k-approval { margin-top: 36px; padding: 26px 20px; border: 1px solid #d5c9bd; border-radius: 12px; display: flex; align-items: center; gap: 16px; }
.k-approval strong, .k-approval div > span { display: block; }
.k-approval strong { font-weight: 500; font-size: 17px; }
.k-approval div > span { font-size: 13px; color: var(--proto-muted); margin-top: 5px; }
.k-approval svg { margin-left: auto; width: 32px; flex-shrink: 0; }
.k-memory { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.k-memory span { padding: 12px 16px; background: #eaded0; border-radius: 6px; }
.k-memory .k-memory-next { background: var(--proto-ink); color: var(--proto-paper); }
.k-statement { position: relative; overflow: clip; background: var(--proto-orange); padding: 110px var(--proto-gutter) 100px; text-align: center; }
.k-statement h2 { position: relative; font-size: clamp(60px, 10.6vw, 170px); margin: 40px 0; letter-spacing: -.035em; }
.k-statement p { position: relative; font-size: 18px; }
.k-local { background: var(--proto-dark); color: var(--proto-paper); display: grid; grid-template-columns: 1.1fr 1fr; gap: 9vw; align-items: center; }
.k-local .k-caption { color: #c2afa0; }
.k-local h2 { font-size: clamp(44px, 6vw, 96px); }
.k-local-copy > p { color: #d2bfb0; margin-top: 24px; max-width: 510px; }
.k-faq { display: grid; grid-template-columns: 1fr 1.08fr; gap: 8vw; }
.k-faq h2 { font-size: clamp(44px, 4.7vw, 76px); }
.k-faq details { border-bottom: 1px solid var(--proto-line); }
.k-faq details:first-child { border-top: 1px solid var(--proto-line); }
.k-faq summary { padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; font-size: 20px; list-style: none; }
.k-faq summary::-webkit-details-marker { display: none; }
.k-faq summary span { font-size: 24px; transition: transform .3s var(--proto-ease); }
.k-faq details[open] summary span { transform: rotate(45deg); }
.k-faq details p { color: var(--proto-muted); padding: 0 36px 28px 0; }
.k-download { background: #ebd0b8; padding-top: 64px; padding-bottom: 48px; }
.k-download h2 { font-size: clamp(100px, 18vw, 280px); line-height: .82; letter-spacing: -.04em; margin-left: -.05em; }
.k-download-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; margin-top: 64px; align-items: end; }
.k-download-bottom > p { font-size: clamp(23px, 2.2vw, 34px); line-height: 1.35; }
.k-download-links a { display: flex; align-items: center; justify-content: space-between; padding: 19px 0; border-bottom: 1px solid #bf9c7e; font-size: 24px; transition: padding .3s var(--proto-ease); }
.k-download-links a:first-child { border-top: 1px solid #bf9c7e; }
.k-download-links a:hover { padding-left: 12px; padding-right: 12px; }
.k-download-links small { display: block; font-size: 12px; color: #725440; margin-top: 3px; }
.k-alpha-note { font-size: 12px; color: #725440; margin-top: 40px; }
.k-alpha-note a { text-decoration: underline; text-underline-offset: 3px; }
@keyframes k-title-in { from { opacity: 0; transform: translateY(45px); } to { opacity: 1; transform: translateY(0); } }
/* Each headline line lands on one of the film's first three beats. The fallback delay shows the lines if the film never starts. */
html[data-hero-cue] .k-hero h1 span:not(.is-in) { opacity: 0; animation: k-title-in 1.1s var(--proto-ease) 2.4s both; }
html[data-hero-cue] .k-hero h1 span.is-in { animation: k-title-cut .7s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes k-title-cut { from { opacity: 0; transform: translateY(38%) scale(1.035); filter: blur(10px); } 45% { opacity: 1; filter: blur(0); } to { opacity: 1; transform: none; filter: none; } }
@media (min-width: 1800px) { .k-pad { padding-left: max(var(--proto-gutter), calc((100vw - 1640px)/2)); padding-right: max(var(--proto-gutter), calc((100vw - 1640px)/2)); } }
@media (max-width: 1000px) {

  .k-chapters { gap: 5vw; }
  .k-mini-columns { gap: 6px; padding: 10px; font-size: 11px; }
  .k-local { gap: 5vw; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 24px; }
  body { font-size: 17px; }
  .k-nav { padding-top: 22px; }
  .k-nav > a:first-child { width: 88px; }
  .k-button { font-size: 14px; padding: 12px 18px; gap: 18px; }
  .k-hero { height: 92svh; min-height: 650px; max-height: 950px; }
  /* Keep the car visible in the portrait crop of the D/E/F films and posters. */
  .k-film video { object-position: 70% center; }
  .k-hero-content { padding-top: 120px; padding-bottom: 24px; }
  .k-hero-intro { font-size: 15px; }
  .k-hero h1 { font-size: clamp(29px, 8.4vw, 46px); line-height: 1.08; padding-bottom: 38px; }
  .k-hero-bottom { grid-template-columns: 1fr auto; gap: 28px 12px; font-size: 14px; }
  .k-section-meta { margin-bottom: 44px; font-size: 12px; }
  .k-section-meta > span:last-child { text-align: right; max-width: 140px; }
  .k-introduction h2 { font-size: clamp(37px, 7.6vw, 53px); }
  .k-intro-summary { grid-template-columns: 60px 1fr; margin-top: 44px; gap: 20px; }
  .k-intro-summary p { font-size: 18px; }
  .k-chapters, .k-local, .k-faq { grid-template-columns: 1fr; gap: 60px; }
  .k-chapters-intro { position: static; }
  .k-chapters-intro h2 { font-size: 47px; }
  .k-text-link { margin-top: 24px; }
  .k-chapter { padding-bottom: 52px; margin-bottom: 48px; }
  .k-chapter h3 { font-size: 36px; }
  .k-chapter-label { margin-bottom: 24px; }
  .k-mini-columns { font-size: 12px; }
  .k-statement { padding: 80px var(--proto-gutter); }
  .k-statement h2 { font-size: clamp(54px, 11vw, 78px); }
  .k-statement p { font-size: 15px; }
  .k-local { gap: 30px; }
  .k-local h2 { font-size: 53px; }
  .k-faq summary { font-size: 18px; }
  .k-download h2 { font-size: 30vw; }
  .k-download-bottom { grid-template-columns: 1fr; gap: 36px; margin-top: 48px; }
  .k-download-bottom > p { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .k-film { transform: none !important; }
}
.k-case { padding-top: 80px; background: #efe5dc; }
.k-case-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: end; margin-bottom: 60px; }
.k-case-heading h2 { font-size: clamp(44px, 5.5vw, 88px); }
.k-case-heading > p { max-width: 510px; font-size: 22px; }
.k-case-capture { padding: 28px; background: #dbc5b4; border-radius: 16px; }
.k-case-outcomes { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; margin-top: 48px; }
.k-case-outcomes p { color: var(--proto-muted); font-size: 16px; }
.k-case-outcomes strong { display: block; color: var(--proto-ink); font-size: 20px; font-weight: 500; margin-bottom: 10px; }
@media(max-width:700px) {
  .k-case-heading { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
  .k-case-heading > p { font-size: 18px; }
  .k-case-capture { padding: 12px; border-radius: 9px; }
  .k-case-outcomes { grid-template-columns: 1fr; gap: 24px; }
}
/* Routes are meaningful connections; orange strokes carry a quiet action signal. */
.k-network { position: relative; height: 360px; margin-top: 40px; }
.k-network-core { position: absolute; left: 0; top: 50%; width: 25%; padding-block: clamp(24px, 3vw, 44px); transform: translateY(-50%); background: var(--proto-dark); border-radius: 12px; color: var(--proto-paper); display: flex; flex-direction: column; align-items: center; justify-content: center; border-bottom: 3px solid #cf7039; box-shadow: 0 16px 28px #4a302418; }
.k-network-core img { width: 30px; height: 30px; filter: brightness(0) invert(1); margin-bottom: 8px; }
.k-network-core strong { font-size: 17px; font-weight: 500; }
.k-network-core span { font-size: 10px; color: #d2bfb0; }
.k-network-routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: #b79880; }
.k-route-track { stroke: #d7c9bb; stroke-width: 1.5; }
.k-route-tail, .k-route-head { stroke: #bd622d; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 10 190; stroke-dashoffset: 100; animation: k-connection-travel 6s cubic-bezier(.4, 0, .2, 1) infinite; animation-play-state: paused; }
.k-route-tail { stroke: #e2a16e; stroke-width: 3; stroke-dasharray: 17 183; opacity: .42; }
.k-network-route--2 use { animation-delay: -1.2s; }
.k-network-route--3 use { animation-delay: -2.4s; }
.k-network-route--4 use { animation-delay: -3.6s; }
.k-network-route--5 use { animation-delay: -4.8s; }
.k-network[data-moving="true"] .k-route-tail, .k-network[data-moving="true"] .k-route-head { animation-play-state: running; }
.k-network-nodes { position: absolute; inset: 0 0 0 58%; list-style: none; padding: 0; margin: 0; display: grid; grid-template-rows: repeat(5,1fr); gap: 10px; }
.k-network-nodes li { display: flex; flex-direction: column; justify-content: center; padding: 9px 16px; border: 1px solid #ded2c5; border-radius: 8px; background: #faf6ef; }
.k-network-nodes strong { font-size: 15px; font-weight: 550; }
.k-network-nodes span { color: var(--proto-muted); font-size: 11px; margin-top: 3px; }
.k-network-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; font-size: 10px; color: var(--proto-muted); }
.k-network-caption button { background: none; border: 0; padding: 8px 0 8px 8px; font-size: 11px; color: #91522e; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; white-space: nowrap; }
@keyframes k-connection-travel { 0% { stroke-dashoffset: 100; opacity: 0; } 15% { opacity: 1; } 65% { opacity: 1; } 85%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@media (max-width: 1100px) {
  .k-network-nodes li { padding: 8px 10px; }
  .k-network-nodes strong { font-size: 13px; }
  .k-network-nodes span { font-size: 10px; }
}
@media (max-width: 900px) {
}
@media (max-width: 450px) {
  .k-network { height: 340px; }
  .k-network-core img { width: 26px; height: 26px; }
  .k-network-nodes li { padding: 8px; }
  .k-network-caption > span { max-width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .k-route-head, .k-route-tail { animation: none; opacity: 0; }
  .k-network-caption button { display: none; }
}
/* The local core carries state; the optional model sits outside its orbit. */
.k-local-system { position: relative; width: 100%; aspect-ratio: 600 / 420; margin: 0 auto; isolation: isolate; }
.k-local-system-label { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; color: #e4c1a4; font-size: 10px; letter-spacing: .1em; }
.k-local-system-label span { color: #aa8c75; }
.k-local-orbit { position: absolute; border: 1px solid #79614f88; border-radius: 50%; width: 58%; aspect-ratio: 1; left: 18%; top: 12%; }
.k-local-orbit--inner { width: 42%; left: 26%; top: 23.4%; border-style: dashed; }
.k-local-comet { position: absolute; inset: -2px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0deg 275deg, #ff6b3233 315deg, #ffa56e 359deg, transparent 360deg); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); animation: k-local-revolve 9s cubic-bezier(.37, .36, .63, .64) infinite paused; }
.k-local-orbit--inner .k-local-comet, .k-local-orbit--inner .k-local-satellite { animation-duration: 7s; animation-delay: -3s; }
.k-local-link { position: absolute; inset: 0; width: 100%; height: 100%; }
.k-local-signal { animation: k-connection-travel 5s cubic-bezier(.4,0,.2,1) infinite paused; }
.k-local-hub { position: absolute; left: 47%; top: 53%; transform: translate(-50%,-50%); width: 22%; aspect-ratio: 1; border: 1px solid #a476544d; border-radius: 10px; background: #382b22; box-shadow: 0 0 60px #ff6b3212, 0 20px 32px #17100d44; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.k-local-hub img { width: 38%; height: auto; filter: brightness(0) invert(1); }
.k-local-hub span { font-size: 18px; margin-top: 8px; }
.k-local-hub small { font-size: 9px; color: #d2bfb0; margin-top: 2px; }
.k-local-node { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #79614f; border-radius: 9px; background: #332820; box-shadow: 0 12px 24px #17100d33; font-size: 13px; }
.k-local-node small { display: block; font-size: 9px; color: #c2afa0; margin-top: 4px; }
.k-local-node-icon { color: #ffac73; font-size: 24px; }
.k-local-node--workspace { top: 19%; left: 1%; }
.k-local-node--sessions { top: 66%; left: 0; }
.k-local-node--memory { top: 72%; right: 4%; }
.k-local-model { position: absolute; right: 0; top: 12%; padding: 10px 12px; border: 1px dashed #a88162; background: var(--proto-dark); border-radius: 8px; font-size: 12px; color: #efc79d; }
.k-local-model > span { color: #ff9b63; margin-right: 8px; }
.k-local-model small { display: block; color: #c2afa0; font-size: 9px; margin-top: 4px; }
.k-local-system-caption { color: #c2afa0; margin-top: 0; }
.k-local-system-caption button { color: #efb58b; }
.k-local-system[data-moving="true"] .k-local-satellite, .k-local-system[data-moving="true"] .k-local-comet, .k-local-system[data-moving="true"] .k-local-signal { animation-play-state: running; }
@keyframes k-local-revolve { to { transform: rotate(360deg); } }
@media(max-width: 1100px) and (min-width: 701px) { .k-local-node { padding: 8px; gap: 6px; font-size: 11px; } .k-local-node small { font-size: 8px; } .k-local-model { font-size: 10px; padding: 8px; } }
@media(max-width:450px) { .k-local-system { aspect-ratio: 600 / 470; } .k-local-node { padding: 8px; gap: 6px; font-size: 11px; } .k-local-node small { font-size: 8px; } .k-local-node-icon { font-size: 20px; } .k-local-hub span { font-size: 14px; margin-top: 4px; } .k-local-hub small { font-size: 8px; } .k-local-model { font-size: 10px; padding: 8px; } .k-local-orbit { top: 19%; } .k-local-orbit--inner { top: 29%; } .k-local-node--workspace { top: 25%; } .k-local-node--sessions { top: 68%; } .k-local-node--memory { top: 76%; right: 0; } .k-local-system-label { font-size: 8px; } }
@media(prefers-reduced-motion:reduce) { .k-local-comet, .k-local-satellite { animation: none; } .k-local-signal { animation: none; opacity: 0; } }
.k-local-satellite { position: absolute; inset: -2px; border-radius: 50%; animation: k-local-revolve 9s cubic-bezier(.37,.36,.63,.64) infinite paused; }
.k-local-satellite::after { content: ''; position: absolute; top: -2px; left: calc(50% - 3px); width: 7px; height: 7px; border-radius: 50%; background: #ffd2a3; box-shadow: 0 0 12px #ff8a4c, 0 0 24px #ff6b3266; }
.k-hero-intro span { color: #e4cdbd; }
/* A portfolio of business tools: the request, the structure, the review. */
.k-apps { background: #f4f0e9; }
.k-apps-heading { display: grid; grid-template-columns: 1.6fr 1fr; gap: 6vw; align-items: end; margin-bottom: 64px; }
.k-apps-heading h2 { font-size: clamp(44px,6vw,96px); }
.k-apps-heading > p { font-size: 22px; color: var(--proto-muted); padding-bottom: 4px; }
.k-apps-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 20px; }
.k-sample { grid-column: span 2; background: #fcf8f2; padding: clamp(24px,2.5vw,40px); border: 1px solid var(--proto-line); border-radius: 12px; display: flex; flex-direction: column; transition: transform .35s var(--proto-ease), box-shadow .35s var(--proto-ease); }
.k-sample--1, .k-sample--2 { grid-column: span 3; }
.k-sample--1 { background: #3e2d24; color: #fff3e5; border-color: #73513c; }
.k-sample--2 { background: #efc79d; border-color: #d9ad80; }
.k-sample-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; margin-bottom: 32px; }

.k-sample h3 { font-size: clamp(28px,2.7vw,42px); max-width: 370px; line-height: 1.05; }
.k-sample-ask { font-size: 16px; line-height: 1.55; margin: 24px 0 32px; max-width: 460px; opacity: .85; }
.k-sample dl { margin: auto 0 0; font-size: 13px; line-height: 1.5; }
.k-sample dl > div { padding: 14px 0; border-top: 1px solid #ad8d6b44; }
.k-sample dt { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.k-sample dd { margin: 0; opacity: .85; }
.k-sample .k-sample-find dt { font-weight: 600; opacity: 1; }
.k-sample .k-sample-find dd { font-size: 15px; font-weight: 500; opacity: 1; }
.k-sample-review { display: flex; align-items: baseline; gap: 10px; font-size: 12px; margin-top: 24px; }
.k-sample-review > span { color: #b85a29; font-size: 20px; }
.k-sample--1 .k-sample-review > span { color: #ffac73; }
.k-apps-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; font-size: 13px; }
.k-apps-foot p { color: var(--proto-muted); }
.k-apps-foot a { border-bottom: 1px solid #a78569; padding: 10px 0; }
.k-apps-foot a span { margin-left: 20px; }
.k-apps-foot a:hover { color: #a64a22; }
@media(hover:hover) and (prefers-reduced-motion:no-preference) { .k-sample:hover { transform: translateY(-5px); box-shadow: 0 16px 32px #4a302414; } }
@media(max-width:1000px) { .k-apps-heading { grid-template-columns: 1fr; gap: 28px; } .k-apps-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .k-sample { grid-column: span 1; } .k-sample:last-child { grid-column: 1 / -1; } }
@media(max-width:600px) { .k-apps-heading { margin-bottom: 36px; } .k-apps-heading > p { font-size: 18px; } .k-apps-grid { grid-template-columns: 1fr; gap: 16px; } .k-sample { grid-column: 1; } .k-sample h3 { font-size: 34px; } .k-apps-foot { align-items: start; flex-direction: column; gap: 12px; } }
/* Tabler outline icons: consistent strokes, with a concrete role at each use. */
.k-icon { display: inline-block; width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; stroke-width: 1.75; }
.k-icon path, .k-icon circle, .k-icon rect, .k-icon line, .k-icon polyline { vector-effect: non-scaling-stroke; }
.k-local-node-icon .k-icon { width: 22px; height: 22px; }
.k-local-model .k-icon { width: 18px; height: 18px; }
.k-sample-review { align-items: center; }
.k-sample-review .k-icon { width: 20px; height: 20px; }
.k-memory-next { display: flex; align-items: center; justify-content: center; gap: 12px; }
.k-prompt .k-icon { width: 22px; height: 22px; }
.k-download-links { scroll-margin-top: clamp(32px, 12vh, 120px); }
.k-download-links:focus { outline: none; }
.k-download-links a { gap: 22px; }
.k-download-os { flex: 1; }
.k-download-links .k-os-icon { width: 34px; height: 34px; flex-shrink: 0; stroke-width: 2; }
.k-os-icon path, .k-os-icon rect { vector-effect: non-scaling-stroke; }
@media(max-width:700px) { .k-download-links { scroll-margin-top: 32px; } .k-download-links a { gap: 18px; } .k-download-links .k-os-icon { width: 30px; height: 30px; } }
.k-hero-intro { align-self: flex-start; display: flex; align-items: baseline; gap: 9px; white-space: nowrap; padding-bottom: 8px; border-bottom: 1px solid #e4cdbd88; }
.k-hero-intro strong { position: relative; font-weight: 600; }
.k-hero-intro strong::after { content: ""; position: absolute; left: 0; right: -5px; bottom: -9px; height: 3px; background: var(--proto-paper); }
.k-hero-intro span { text-decoration: none; }
.k-film-lines { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; padding: 0; border: 0; background: transparent; color: var(--proto-paper); cursor: pointer; pointer-events: auto; }
.k-film-lines-window { display: block; position: relative; width: 32px; height: 48px; overflow: hidden; mask-image: linear-gradient(transparent, #0003 20%, #000 48%, #000 52%, #0003 80%, transparent); }
.k-film-lines-track { position: absolute; left: 0; right: 0; top: -6px; display: flex; flex-direction: column; gap: 8px; }
.k-film-lines-track i { display: block; flex: 0 0 2px; background: currentColor; width: 100%; }
.k-film-lines:hover { color: #ffbf94; }
.k-film-lines:focus-visible { outline: 2px solid #efc79d; outline-offset: 3px; }
@media(max-width:700px) { .k-hero-intro { display: block; white-space: normal; max-width: 280px; margin-bottom: 28px; font-size: 13px; border-bottom: 1px solid currentColor; padding-bottom: 8px; } .k-hero-intro strong::after { display: none; } .k-hero-intro span { display: block; } .k-hero-bottom { gap: 12px; } .k-film-lines { width: 40px; } .k-film-lines-window { width: 28px; } }
.k-process-sequence { display: flex; align-items: center; gap: clamp(12px,1.6vw,24px); padding-right: 40px; max-width: 500px; }
.k-process-step { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #80624e; flex-shrink: 0; }
.k-process-step > .k-icon { width: 40px; height: 40px; }
.k-process-step > span { font-size: 11px; white-space: nowrap; }
.k-process-step--proto { color: #b84f25; gap: 12px; }
.k-process-step--proto > span { font-size: 14px; font-weight: 600; color: var(--proto-ink); }
.k-process-proto { display: block; width: clamp(88px,8vw,120px); height: auto; overflow: visible; }
.k-process-arrow { color: #b69c86; padding-bottom: 30px; }
.k-process-arrow .k-icon { width: 20px; height: 20px; }
@media(max-width:1100px) { .k-intro-summary { gap: 36px; } .k-process-sequence { gap: 12px; padding-right: 0; } }
@media(max-width:800px) { .k-intro-summary { grid-template-columns: 1fr; gap: 36px; } .k-process-sequence { justify-content: flex-start; gap: 20px; } }
@media(max-width:450px) { .k-process-sequence { gap: 12px; } .k-process-proto { width: 88px; } .k-process-step > .k-icon { width: 32px; height: 32px; } .k-process-step > span { font-size: 10px; } .k-process-step--proto > span { font-size: 13px; } .k-process-arrow .k-icon { width: 18px; } }
/* Three unhurried moves across the entire page; one consistent control. */
.k-roaming-download { --download-x: calc(100vw - 220px); --download-y: 28px; position: fixed; left: 0; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 22px; width: 156px; height: 54px; padding: 12px 20px; font-size: 16px; font-weight: 500; color: var(--proto-ink); background: var(--proto-paper); border: 1px solid #d5c9bd; border-radius: 40px; box-shadow: 0 5px 20px #211b1814; transform: translate3d(var(--download-x),var(--download-y),0); transition: background .35s var(--proto-ease); pointer-events: auto; }
.k-roaming-download:hover { background: #f3dfcc; }
.k-roaming-icon { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; }
.k-roaming-icon > * { grid-area: 1 / 1; }
.k-roaming-download:focus-visible { outline: 3px solid #b84f25; outline-offset: 5px; }
@media(max-width:700px) { .k-roaming-download { width: 144px; height: 50px; padding: 10px 17px; font-size: 15px; } }
@media(prefers-reduced-motion:reduce) { .k-roaming-download { transition: none; } }
/* Three concentric circuits meet the local state cards at their icon ports. */
.k-local-orbit { left: 47%; top: 53%; width: 70%; transform: translate(-50%,-50%); }
.k-local-orbit--middle { width: 54%; border-style: solid; }
/* CCW head remains at 0deg; its tail trails clockwise behind it. */
.k-local-orbit--middle .k-local-comet { background: conic-gradient(from 0deg, #ffa56e 0deg, #ff6b3233 45deg, transparent 85deg 360deg); }
.k-local-orbit--inner { width: 38%; }
.k-local-orbit--middle .k-local-comet, .k-local-orbit--middle .k-local-satellite { animation-duration: 11s; animation-delay: -5s; animation-direction: reverse; }
.k-local-node--workspace { left: 19%; top: 23%; transform: translate(-24px,-50%); }
.k-local-node--sessions { left: 19%; top: 83%; transform: translate(-24px,-50%); }
.k-local-node--memory { left: 75%; right: auto; top: 83%; width: max-content; transform: translate(calc(-100% + 24px),-50%); flex-direction: row-reverse; }
.k-contact-particles { position: absolute; width: 0; height: 0; left: 24px; top: 50%; pointer-events: none; }
.k-local-node--memory .k-contact-particles { left: auto; right: 24px; }
.k-contact-particles i { --px: -20px; --py: -18px; position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffc294; box-shadow: 0 0 6px #ff9b63; opacity: 0; animation: k-contact-exchange 3.6s cubic-bezier(.22,1,.36,1) infinite paused; }
.k-contact-particles i:nth-child(2) { --px: 18px; --py: -22px; animation-delay: -.9s; }
.k-contact-particles i:nth-child(3) { --px: -22px; --py: 16px; animation-delay: -1.8s; }
.k-contact-particles i:nth-child(4) { --px: 20px; --py: 18px; animation-delay: -2.7s; }
.k-local-node--sessions .k-contact-particles { transform: rotate(35deg); }
.k-local-node--memory .k-contact-particles { transform: rotate(-35deg); }
.k-local-system[data-moving="true"] .k-contact-particles i { animation-play-state: running; }
@keyframes k-contact-exchange { 0%, 15% { opacity: 0; transform: translate(calc(var(--px) * -.3),calc(var(--py) * -.3)) scale(.5); } 35% { opacity: .8; } 75%,100% { opacity: 0; transform: translate(var(--px),var(--py)) scale(.4); } }
@media(max-width:450px) { .k-local-node--workspace { top: 26.19%; } .k-local-node--sessions, .k-local-node--memory { top: 79.81%; } .k-local-node-icon { flex-shrink: 0; } }
@media(prefers-reduced-motion:reduce) { .k-contact-particles i { animation: none; opacity: 0; } }
/* Contrast follows the surface; position remains on the same right-hand rail. */
.k-roaming-download { transition: background .5s var(--proto-ease), color .5s var(--proto-ease), border-color .5s var(--proto-ease); }
.k-roaming-download[data-contrast="dark"] { background: var(--proto-ink); color: var(--proto-paper); border-color: #57473a; }
.k-roaming-download[data-contrast="dark"]:hover { background: #49362a; }
@media(prefers-reduced-motion:reduce) { .k-roaming-download { transition: none; } }
.k-roaming-download[data-concealed="true"] { visibility: hidden; opacity: 0; pointer-events: none; }
/* The hub border follows the innermost clockwise comet's phase. */
@property --k-hub-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.k-local-hub::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--k-hub-angle), transparent 0deg 275deg, #ff6b3233 315deg, #ffd2a3 359deg, transparent 360deg);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude; pointer-events: none;
  filter: drop-shadow(0 0 4px #ff9b6380);
  animation: k-hub-border 7s cubic-bezier(.37,.36,.63,.64) -3s infinite paused;
}
.k-local-system[data-moving="true"] .k-local-hub::before { animation-play-state: running; }
@keyframes k-hub-border { to { --k-hub-angle: 360deg; } }
@media(prefers-reduced-motion:reduce) { .k-local-hub::before { animation: none; } }
.k-network-caption { justify-content: flex-start; gap: 2px; }
.k-network-caption .k-diagram-toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 7px; color: inherit; text-decoration: none; border-radius: 4px; transition: color .2s ease; }
.k-diagram-toggle .k-icon { width: 13px; height: 13px; grid-area: 1 / 1; }
.k-diagram-toggle .k-diagram-play, .k-diagram-toggle[aria-pressed="true"] .k-diagram-pause { display: none; }
.k-diagram-toggle[aria-pressed="true"] .k-diagram-play { display: block; }
.k-network-caption .k-diagram-toggle:hover { color: #ff9b63; }
.k-network-caption .k-diagram-toggle:focus-visible { color: #ff9b63; outline: 2px solid currentColor; outline-offset: 2px; }
@media(prefers-reduced-motion:reduce) { .k-network-caption .k-diagram-toggle { display: none; } }

.k-network-caption .k-diagram-toggle:hover, .k-network-caption .k-diagram-toggle:focus-visible { color: #b84f25; }
.k-local-system-caption .k-diagram-toggle:hover, .k-local-system-caption .k-diagram-toggle:focus-visible { color: #ff9b63; }
/* Mobile chrome owns its own visible band, separate from the diagram content. */
.k-mobile-download-dock { display: none; }
.k-roaming-download[hidden], html[data-mobile-device="true"] .k-mobile-download-dock { display: none; }
html[data-mobile-device="true"] { scroll-padding-bottom: 0; }
html[data-mobile-device="true"] .kinetic-page { padding-bottom: 0; }
@media(max-width:700px) {
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .kinetic-page { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .k-mobile-download-dock { display: block; position: fixed; inset: auto 0 0; height: calc(82px + env(safe-area-inset-bottom, 0px)); background: var(--proto-paper); border-top: 1px solid var(--proto-line); z-index: 59; }
  .k-roaming-download, .k-roaming-download[data-contrast] { left: 50%; top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--proto-ink); color: var(--proto-paper); border-color: #57473a; }
  .k-roaming-download[data-concealed="true"] + .k-mobile-download-dock { display: none; }
  .k-network { height: 420px; }
  .k-network-caption > span { max-width: none; }
  .k-network-caption .k-diagram-toggle { flex-shrink: 0; }
}
