/* industREAL landing — standalone. No portal CSS is imported and none is shared: this
 * page has to survive being lifted onto its own domain.
 *
 * Tokens are copied from the brand guidelines (v1.1, §2.1). If they disagree with the
 * guidelines, the guidelines win.
 *
 * The organising idea, taken from the sites this was measured against (Linear, Resend,
 * NVIDIA, Hadrian): the product is the protagonist of every section, and the chrome is
 * a quiet frame around it. So the big things on this page are product surfaces -- a
 * run, a wiring table, a drawing, a device list -- and the type around them is calm.
 * Mono is kept for what the brand assigns it (nav, buttons) and for what is genuinely
 * code or data inside those surfaces; it is not used as decoration on the chrome.
 */
:root {
  color-scheme: dark;

  --ground:    #110F0D;
  --surface:   #191615;
  --surface-2: #211D1B;
  --surface-3: #2A2522;
  --hairline:  #302A27;
  --hairline-soft: rgba(237, 235, 233, 0.06);
  --text:      #EDEBE9;
  --text-2:    #BDB5AE;
  --muted:     #8F8680;
  --orange:    #F6831E;
  --on-orange: #110F0D;

  /* Status colours exist only inside product surfaces, and are the portal's own. */
  --ok:   hsl(145 55% 42%);
  --warn: hsl(38 92% 50%);
  --err:  hsl(0 84% 60%);

  --display: "Space Grotesk", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --label: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1232px;
  --wide: 1320px;
  --gutter: clamp(20px, 5vw, 104px);
  --section: clamp(96px, 11vw, 160px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* Past the page ends the canvas shows: the page colour above, the footer colour below, so a
   phone's bounce at the bottom shows more footer instead of a dark band under it. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  background: linear-gradient(var(--ground) 50%, var(--surface) 50%) fixed; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(246, 131, 30, 0.18);
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* Every corner on this page is 90 degrees. The border-radius that remains is 50%, on
   status dots -- circles by intent. */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--orange); color: var(--on-orange); padding: 10px 14px;
  font: 500 13px/1 var(--label); text-transform: uppercase; letter-spacing: 0.08em;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { width: min(var(--wide), 100% - 2 * clamp(12px, 3vw, 60px)); }

/* ~3.5% fractal noise: the brand's film grain, the one texture on the page. */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ================================================================ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  font: 500 12px/1 var(--label); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; background: none;
  transition: background-color 250ms var(--ease), border-color 250ms var(--ease), color 250ms var(--ease);
  touch-action: manipulation;
}
/* §6.2 outline: orange at 50% for the border, the label in orange, a 10% wash on hover. */
.btn-line { border-color: rgba(246, 131, 30, 0.5); color: var(--orange); height: 40px; padding: 0 16px; }
.btn-line:hover { border-color: var(--orange); background: rgba(246, 131, 30, 0.1); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 11px; }

/* ================================================================ nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 15, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
/* §5: "a thin orange scroll-progress line under it is a nice touch". Driven by the scroll
   position, so it moves only when the reader does. */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: var(--orange); transform-origin: left; transform: scaleX(var(--p, 0));
}
.lockup { display: flex; align-items: center; gap: 14px; text-decoration: none; }
/* The wordmark is the brand's own file, never set in a live font (DESIGN.md 4.2), at the
   24px the guidelines give for the nav. */
.mark { display: block; height: 24px; width: auto; }
.lockup-rule { width: 1px; height: 18px; background: var(--hairline); }
.lockup-product { font: 700 17px/1 var(--display); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font: 500 11px/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 250ms var(--ease);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--text); }
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform 350ms var(--ease);
}
.nav-links a.is-current::after { transform: scaleX(1); }

/* Language: the current one lit, the other one quiet, like the section links. */
.lang { display: flex; align-items: center; gap: 2px; }
.lang a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 6px;
  font: 500 11px/1 var(--label); letter-spacing: 0.1em; color: var(--muted);
  text-decoration: none; transition: color 250ms var(--ease);
}
.lang a:hover { color: var(--text); }
.lang a[aria-current] { color: var(--text); box-shadow: inset 0 -1px 0 var(--orange); }

@media (max-width: 860px) {
  .nav-links, .lockup-rule, .lockup-product { display: none; }
  .nav-in .btn-line, .nav-in .lang { margin-left: auto; }
  .nav-in .lang + .btn-line { margin-left: 0; }
}

/* ================================================================ hero */

/* overflow-x: clip, because the aurora is wider than a phone. clip cuts it off without
   making the hero a scroll container, and without relying on body overflow-x, which iOS
   Safari has a history of ignoring. */
.hero { position: relative; padding-top: clamp(56px, 7vw, 96px); isolation: isolate; overflow-x: clip; }

/* The shine and the grid, kept to the hero and faded out downward, so they introduce
   the page instead of papering every section. One warm light sits behind the product
   window: the thing the eye should land on is the thing that is lit. */
.hero-field {
  position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 42% at 50% 78%, rgba(246, 131, 30, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 14% 0%, rgba(246, 131, 30, 0.06), transparent 70%),
    linear-gradient(to right, rgba(237, 235, 233, 0.045) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, rgba(237, 235, 233, 0.045) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}

.hero-brand {
  font: 700 clamp(28px, 3.4vw, 46px)/1 var(--display); letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px var(--orange);
  margin-bottom: clamp(18px, 2vw, 26px);
}
.hero-h {
  font-size: clamp(44px, 6.9vw, 100px);
  letter-spacing: -0.048em; line-height: 0.93;
}
.hl { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hl > span { display: block; }

/* The one choreographed moment on load: the wordmark, then each headline line rising out
   of its own mask, then the copy, then the product window -- after which the run inside
   it starts. Everything later on the page moves only when the reader does something. */
.js-motion .hero-brand { animation: fade 900ms var(--ease) both; }
.js-motion .hl > span { animation: rise-mask 1000ms var(--ease) both; }
.js-motion .hl:nth-child(1) > span { animation-delay: 120ms; }
.js-motion .hl:nth-child(2) > span { animation-delay: 220ms; }
.js-motion .hero-row { animation: rise 900ms var(--ease) 420ms both; }
.js-motion .hero .app { animation: rise 1100ms var(--ease) 560ms both; }
@keyframes rise-mask { from { transform: translateY(105%); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes fade { from { opacity: 0; } }
.hl-2 { color: var(--orange); }

.hero-row {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: end;
  gap: 32px 56px; margin-top: clamp(28px, 3vw, 44px);
}
.hero-sub { max-width: 52ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--text-2); }

@media (max-width: 760px) {
  .hero-row { grid-template-columns: minmax(0, 1fr); }
}

/* Aurora: a large blurred light that drifts and breathes very slowly. NextQuest runs
   three of these (hero, CTA, footer) at 8-12% alpha under an 80px blur; these are the
   brand's orange at the ~5-10% the guidelines allow for glows. */
.aurora {
  position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  filter: blur(80px); will-change: transform, opacity;
}
.aurora-hero {
  width: 900px; height: 520px; left: 50%; top: 420px; margin-left: -450px;
  background: radial-gradient(circle, rgba(246, 131, 30, 0.16), rgba(223, 82, 12, 0.06) 50%, transparent 72%);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-6%, 0, 0) scale(1);    opacity: 0.8; }
  50%  { transform: translate3d(4%, -4%, 0) scale(1.08); opacity: 1; }
  100% { transform: translate3d(8%, 2%, 0) scale(0.96); opacity: 0.85; }
}

/* ================================================================ lit sections */

/* The hero's field, in miniature, at the top of the sections that carry the product: a
   hairline that glows in the middle, a soft light beneath it, and a patch of grid that
   fades out. Between them the page is calm -- it should read black with orange events. */
.lit { position: relative; isolation: isolate; }
.lit::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1000px, 86%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 131, 30, 0.55), transparent);
}
.lit::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 52% at var(--lit-x, 50%) 0%, rgba(246, 131, 30, 0.09), transparent 72%),
    linear-gradient(to right, rgba(237, 235, 233, 0.04) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, rgba(237, 235, 233, 0.04) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 62% 100% at var(--lit-x, 50%) 0%, #000 18%, transparent 74%);
          mask-image: radial-gradient(ellipse 62% 100% at var(--lit-x, 50%) 0%, #000 18%, transparent 74%);
}
/* In How it works the light sits behind the pinned window, not the heading. */
.lit-right { --lit-x: 72%; }

/* ================================================================ product windows */

.app {
  position: relative; margin: clamp(44px, 4.6vw, 64px) 0 0;
  background: linear-gradient(to bottom, #1B1816, #141210 60%);
  border: 1px solid var(--hairline);
  /* §5, flat depth: no drop shadow. The window lifts by one surface step, its hairline and
     a one-pixel highlight on the top edge -- and by the light behind it. */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.app-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 52px; padding: 0 14px 0 10px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.012);
}
.app-title { font: 500 14px/1 var(--body); color: var(--text); margin-right: auto; }

/* Window chrome, after Flashtype's framed windows: three dots at the left of every title
   bar. Muted rather than traffic-light colours -- the page has one accent. */
.dots { display: inline-flex; gap: 7px; padding: 0 6px 0 4px; flex: none; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #34302d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); }

.app-live {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.app-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(246, 131, 30, 0.16); }
.is-running .app-live i { animation: pulse 1.2s ease-in-out infinite; }
/* Effects layer: the orb replaces the pulsing dot
   while the run works. Without the layer (no JS, reduced motion) nothing changes. */
/* While the run works, the window's edge lights orange and breathes -- square, like the
   window, and visible on a phone. Glow stays within the brand's 35% ceiling. */
.app::before {
  content: ""; position: absolute; inset: -1px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(246, 131, 30, 0.6); opacity: 0; transition: opacity 600ms var(--ease);
  box-shadow: 0 0 22px -10px rgba(246, 131, 30, 0.22);
}
.is-running.app::before { animation: edge 3.2s ease-in-out infinite; }
@keyframes edge { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.55; } }
.fx-orb { display: none; width: 20px; height: 20px; }
.has-fx .is-running .fx-orb { display: inline-block; }
.has-fx .is-running .app-live i { display: none; }
/* With the effects layer, a working tool call shows its orb instead of the spinner ring;
   a finished one hides the orb and shows the green tick as before. */
.has-fx .call { grid-template-columns: 22px minmax(0, 1fr); }
.has-fx .call-g { width: 20px; height: 20px; margin-top: -1px; }
.has-fx .call:not(.is-done) .call-g::before { display: none; }
.has-fx .call.is-done .call-g > * { display: none !important; }
.has-fx .call.is-done .call-g::before { width: 12px; height: 12px; inset: 4px; }
.has-fx .call.is-done .call-g::after { left: 8.5px; top: 5.5px; }
.has-fx .t-work .t-dot { width: 20px; height: 20px; margin-top: 0.05em; background: none; animation: none; }
.has-fx .term-lines .t-prompt, .has-fx .term-lines .t-out { grid-template-columns: 26px minmax(0, 1fr); }
.is-done .app-live i { background: var(--ok); box-shadow: 0 0 0 3px hsl(145 55% 42% / 0.18); }
@keyframes pulse { 50% { opacity: 0.35; } }

.app-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 460px; }

/* -------- the conversation */

.app-chat { padding: 24px 26px 0; border-right: 1px solid var(--hairline); display: flex; flex-direction: column; }

/* An agent session, laid out the way terminal agents draw one (Flashtype's hero does the
   same): a dashed welcome box, the prompt with an orange >, each tool call with its
   result on the line beneath, and an input line waiting at the bottom. */
.term { font-family: var(--label); }
.term-hello {
  text-align: center; padding: 16px 14px 14px; margin-bottom: 22px;
  border: 1px dashed rgba(246, 131, 30, 0.45);
  background: radial-gradient(ellipse at 50% 0%, rgba(246, 131, 30, 0.07), transparent 70%);
}
.th-1 { font-size: 12.5px; color: var(--muted); }
.th-1 b { color: var(--orange); font-weight: 500; }
.th-2 { font-size: 14px; color: var(--text); font-weight: 500; margin-top: 6px; }
/* The brand's chevrons as the session mark. */
.th-mark { display: flex; justify-content: center; gap: 3px; margin: 10px 0 8px; }
.th-mark i { width: 8px; height: 8px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg); }
.th-mark i:nth-child(2) { opacity: 0.7; } .th-mark i:nth-child(3) { opacity: 0.4; }
.th-3, .th-4 { font-size: 12px; color: var(--muted); line-height: 1.6; }

.t-prompt, .t-out { display: grid; grid-template-columns: 18px minmax(0, 1fr); font-size: 13px; line-height: 1.6; margin: 0; }
.t-gt { color: var(--orange); }
.t-prompt { color: var(--text); }
.t-out { color: var(--text-2); }
.t-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); margin-top: 0.6em; }
.t-work .t-dot { background: var(--orange); animation: pulse 1.2s ease-in-out infinite; }
.term-lines { display: grid; gap: 14px; font-family: var(--label); }

.chat-brief { color: var(--text); min-height: 4.8em; }
.chat-brief.is-typing::after {
  content: ""; display: inline-block; width: 7px; height: 1.1em; margin-left: 2px;
  vertical-align: -0.2em; background: var(--orange); animation: caret 900ms steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.nojs { margin-top: 20px; font-size: 14.5px; color: var(--muted); font-family: var(--body); }

.t-input {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center;
  margin: auto -26px 0; padding: 15px 26px; border-top: 1px solid var(--hairline);
  font-size: 13px; background: rgba(0, 0, 0, 0.18);
}
.t-ph { color: var(--muted); }
.is-done .t-ph::after {
  content: ""; display: inline-block; width: 7px; height: 1.1em; margin-left: 4px;
  vertical-align: -0.2em; background: var(--orange); animation: caret 900ms steps(1) infinite;
}

.calls { list-style: none; margin: 4px 0 0; padding: 0; }
/* Tool name on one line, its result beneath in the muted colour -- the way terminal agents
   report a call, and it no longer truncates the result on a narrow screen. */
.calls { margin-top: 14px; }
.call {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 0; row-gap: 2px;
  padding: 6px 0; font: 400 13px/1.45 var(--label);
}
.call-g { width: 12px; height: 12px; margin-top: 0.2em; position: relative; }
.call-g::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--hairline); border-top-color: var(--orange);
  animation: spin 800ms linear infinite;
}
.call.is-done .call-g::before { animation: none; border-color: var(--ok); background: hsl(145 55% 42% / 0.16); }
.call.is-done .call-g::after {
  content: ""; position: absolute; left: 4px; top: 1.5px; width: 3px; height: 6px;
  border-right: 1.5px solid var(--ok); border-bottom: 1.5px solid var(--ok); transform: rotate(45deg);
}
.call-t { color: var(--text); }
.call-t::after { content: " (MCP)"; color: #5f5853; }
.call-r { grid-column: 2; color: var(--muted); font-size: 12px; }
.call-r::before { content: "\2514\2009"; color: #4a433e; }
.call.is-wait { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.chat-reply {
  margin: 18px 0 22px; padding: 12px 14px; font: 400 14px/1.55 var(--body); color: var(--text-2);
  background: rgba(246, 131, 30, 0.05); border-left: 2px solid rgba(246, 131, 30, 0.55);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.chat-reply b { color: var(--text); font-weight: 500; }
.chat-reply.is-wait { opacity: 0; transform: translateY(6px); }

/* -------- the result */

.app-out { padding: 28px 30px 0; display: flex; flex-direction: column; }
.out-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font: 500 12px/1 var(--body); color: var(--muted); padding-bottom: 12px;
}
.out-head-2 { margin-top: 30px; }

.bom, .wire, .devices { width: 100%; border-collapse: collapse; font-size: 14px; }
.bom th, .wire th, .devices th {
  text-align: left; font: 500 11px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline);
}
.bom td, .wire td, .devices td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--hairline-soft); vertical-align: baseline; }
.bom td:first-child, .bom td:last-child { font: 400 12.5px/1.4 var(--label); }
.bom td:nth-child(2) { color: var(--text-2); }
.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bom .num { padding-right: 28px; }
/* "bus host", "set at build", "unassigned": information, so muted (6:1), not faint. The
   contrast with the addresses that are set comes from colour, not from legibility. */
.dim { color: var(--muted) !important; }
.bom tr { transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.bom tr.is-wait { opacity: 0; transform: translateX(-6px); }


.out-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-top: 1px solid var(--hairline);
}
.out-state { font: 500 11px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.out-foot { gap: 20px; }
.out-state { line-height: 1.5; }
@media (max-width: 700px) { .out-foot { padding-block: 16px; } .out-state { flex: 1 1 0; min-width: 0; } }
.is-done .out-state { color: var(--ok); }
.out-deploy { opacity: 0.3; pointer-events: none; transition: opacity 400ms var(--ease), background-color 250ms var(--ease); }
.is-done .out-deploy { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-chat { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .app-chat, .app-out { padding-inline: 18px; }
  .app-bar { height: auto; min-height: 52px; padding-block: 8px; flex-wrap: wrap; }
}
/* On a phone a four-column table wraps every cell into a tower. Each part becomes one
   compact row instead: part number and link on a line, what it does beneath. */
@media (max-width: 700px) {
  .bom thead { display: none; }
  .bom tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 3px 10px; padding: 11px 0; border-bottom: 1px solid var(--hairline-soft); align-items: baseline; }
  .bom td { padding: 0; border: 0; }
  .bom td:nth-child(1) { order: 1; }
  /* Quantity rides beside the part number, as "x2". */
  .bom td:nth-child(3) { order: 2; text-align: left; padding: 0; font: 500 12px/1 var(--label); color: var(--muted); }
  .bom td:nth-child(3)::before { content: "\00D7"; }
  .bom td:nth-child(4) { order: 3; text-align: right; }
  .bom td:nth-child(2) { order: 4; grid-column: 1 / -1; font-size: 13.5px; }
}

/* ================================================================ section heads */

.h2 { font-size: clamp(36px, 4.8vw, 68px); letter-spacing: -0.04em; line-height: 0.98; }

/* Heading left, statement right -- the split used by Linear between product sections.
   It varies the rhythm: not every section opens with the same stacked block. */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px; align-items: end;
}
.split-p { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 44ch; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
/* A heading whose lines are too long for half the column stacks instead of wrapping into
   four ragged lines: heading full width, statement beneath. */
.split-stack { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.split-stack .split-p { max-width: 58ch; }

/* ================================================================ the machine */

.build { padding-top: var(--section); }
/* A <figure>, so the browser's default 40px side margins have to go. */
.scene { margin: clamp(40px, 5vw, 64px) 0 0; }
.scene-art { padding: 4px clamp(10px, 3vw, 40px) clamp(20px, 3vw, 36px); }
.scene-art svg { display: block; width: 100%; height: auto; }

/* Assembly: each part of the machine strokes itself in, in build order -- stand and
   screen, conveyor, gantry, camera, tray, carriage. The moving pieces (parts, gripper,
   camera view) appear only after the last stroke lands at ~2 s, so nothing hangs in the
   air before what holds it has been drawn. */
.js-motion .s-part > * { stroke-dasharray: var(--len, 1700); stroke-dashoffset: var(--len, 1700); fill-opacity: 0; }
/* script.js sets --len to each stroke's real length, so every stroke in a group draws at
   the same pace and they finish together. */
/* :not() -- the carried parts sit in the carriage's group but belong to the cycle; without it
   this rule (4 classes) out-ranks .scene.run .s-held-a (3) and the pick never shows. */
.js-motion .scene.in .s-part > *:not(.s-held-a):not(.s-held-b) { animation: s-draw 1.1s var(--ease) forwards; animation-delay: calc(var(--d) * 180ms); }
/* The fill turns solid the moment its own outline starts, not as it closes: a shape must
   cover what lies behind it (a servo body in front of the pillar) for the whole draw, and
   it still stays hidden until its group's turn, since forwards-only fill leaves the base
   fill-opacity 0 in place during the delay. */
@keyframes s-draw { from { fill-opacity: 1; } to { stroke-dashoffset: 0; fill-opacity: 1; } }
/* The parts the gripper carries are not drawn in: their visibility is the cycle's to run. */
.js-motion .s-part > .s-held-a, .js-motion .s-part > .s-held-b { stroke-dasharray: none; stroke-dashoffset: 0; fill-opacity: 1; }
.js-motion .s-belt, .js-motion .s-cone, .js-motion .s-gate { opacity: 0; transition: opacity 500ms var(--ease) 1.9s; }
.js-motion .scene.in .s-belt, .js-motion .scene.in .s-gate { opacity: 1; }
.js-motion .scene.in .s-cone { opacity: 0.3; }

/* The cycle: one part at a time, 4.8 s each -- a square to tray 1, then a round to tray 2 --
   so a visitor can follow a part from the queue to its tray. Each half, in seconds:
     0.0-0.1   the stopper drops
     0.1-0.8   the front part rolls from the stopper to under the camera; the queue closes up
     0.8       the camera flashes: the check
     1.3-2.0   the part rolls on to the gripper, waiting at home
     2.0-2.3   the gripper dips; picked at 2.3
     2.3-4.7   lift, carry to its tray (115 or 235), lower, drop at 3.7, lift, return home
   A part's own path (28.8 s = six halves, offset one half per part): 170 (behind the roller)
   -> 360 -> 392 -> 424 at the stopper -> 480 camera -> 580 gripper -> picked. The loop starts
   at 0, so the still picture and the first thing a visitor sees are the same: three parts at
   the stopper, the camera and the gripper empty. */
.s-held-a, .s-held-b, .s-drop-a, .s-drop-b { opacity: 0; }
.scene.run .s-q        { animation: s-q-path 28.8s ease-in-out infinite, s-q-vis 28.8s steps(1, end) infinite; }
.scene.run .s-gate     { animation: s-gate 4.8s ease-in-out infinite; }
.scene.run .s-carriage { animation: s-carriage 9.6s ease-in-out infinite; }
.scene.run .s-lift     { animation: s-lift 9.6s ease-in-out infinite; }
.scene.run .s-held-a   { animation: s-held-a 9.6s steps(1, end) infinite; }
.scene.run .s-held-b   { animation: s-held-b 9.6s steps(1, end) infinite; }
.scene.run .s-drop-a   { animation: s-drop-a 9.6s linear infinite; }
.scene.run .s-drop-b   { animation: s-drop-b 9.6s linear infinite; }
.scene.run .s-cone     { animation: s-cone 9.6s linear infinite; }
@keyframes s-q-path { 0%, 0.347% { transform: translateX(170px); } 2.778%, 17.014% { transform: translateX(360px); }
                      19.444%, 33.681% { transform: translateX(392px); } 36.111%, 50.347% { transform: translateX(424px); }
                      52.778%, 54.514% { transform: translateX(480px); } 56.944%, 57.986% { transform: translateX(580px); }
                      58.0%, 100% { transform: translateX(170px); } }
@keyframes s-q-vis  { 0% { opacity: 1; } 57.986% { opacity: 0; } }
@keyframes s-gate   { 0% { transform: translateY(0); } 2.083%, 18.75% { transform: translateY(22px); } 22.917%, 100% { transform: translateY(0); } }
@keyframes s-carriage { 0%, 27.083% { transform: translateX(0); } 35.417%, 41.667% { transform: translateX(115px); } 48.958%, 77.083% { transform: translateX(0); }
                        85.417%, 91.667% { transform: translateX(235px); } 98.958%, 100% { transform: translateX(0); } }
@keyframes s-lift     { 0%, 20.833% { transform: translateY(0); } 23.958% { transform: translateY(60px); } 27.083%, 35.417% { transform: translateY(0); }
                        38.542% { transform: translateY(76px); } 41.667%, 70.833% { transform: translateY(0); } 73.958% { transform: translateY(60px); }
                        77.083%, 85.417% { transform: translateY(0); } 88.542% { transform: translateY(76px); } 91.667%, 100% { transform: translateY(0); } }
@keyframes s-held-a   { 0% { opacity: 0; } 23.958% { opacity: 1; } 38.542% { opacity: 0; } }
@keyframes s-held-b   { 0% { opacity: 0; } 73.958% { opacity: 1; } 88.542% { opacity: 0; } }
@keyframes s-drop-a   { 0%, 38.53% { opacity: 0; transform: translateY(0); }
                        38.542% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(0.5, 0, 1, 1); }
                        41.667% { opacity: 1; transform: translateY(30px); } 41.68%, 100% { opacity: 0; transform: translateY(30px); } }
@keyframes s-drop-b   { 0%, 88.53% { opacity: 0; transform: translateY(0); }
                        88.542% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(0.5, 0, 1, 1); }
                        91.667% { opacity: 1; transform: translateY(30px); } 91.68%, 100% { opacity: 0; transform: translateY(30px); } }
@keyframes s-cone     { 0%, 7.5% { opacity: 0.3; } 8.333% { opacity: 1; } 13.542%, 57.5% { opacity: 0.3; } 58.333% { opacity: 1; } 63.542%, 100% { opacity: 0.3; } }

/* The drawing carries no labels -- only the tray numbers the legend refers to. What each part is lives in the legend underneath, at every
   width: the drawing stays uncluttered and the words stay readable. */
.s-num text { font: 500 13px/1 var(--label); }
.js-motion .s-num { opacity: 0; transition: opacity 500ms var(--ease) 1.9s; }
.js-motion .scene.in .s-num { opacity: 1; }
.scene-legend {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 28px;
  list-style: none; margin: 0; padding: 6px clamp(18px, 3vw, 40px) clamp(22px, 3vw, 34px);
  font-size: 14.5px; line-height: 1.5; color: var(--text-2);
}
.scene-legend li { padding-left: 16px; position: relative; }
.scene-legend li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px;
  border-top: 1.5px solid var(--orange); border-right: 1.5px solid var(--orange); transform: rotate(45deg);
}
.scene-legend b { color: var(--text); font-weight: 500; }
@media (min-width: 1100px) { .scene-legend { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .scene-legend { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .s-num text { font-size: 24px; }
}

/* ================================================================ how it works */

/* Step 1 carries the endpoint and where the token comes from: the place a reader is
   actually setting up their agent, rather than the hero. */
.step-mcp { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.step-token { font: 500 12px/1 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); text-decoration: none; }
.step-token:hover { text-decoration: underline; text-underline-offset: 4px; }
.inline-link { color: var(--text); text-decoration: underline; text-decoration-color: rgba(246, 131, 30, 0.6); text-underline-offset: 3px; }
.inline-link:hover { color: var(--orange); }

.how { padding-top: var(--section); }
.how-in {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px); margin-top: clamp(48px, 6vw, 80px);
}
.how-steps { list-style: none; margin: 0; padding: 0; }

/* Each step is tall enough that scrolling moves through them one at a time, while the
   window beside them holds still and changes to show that step's artifact. */
.how-step {
  padding: 28px 0 28px 24px; min-height: 42vh;
  border-left: 1px solid var(--hairline);
  position: relative;
  transition: opacity 400ms var(--ease);
  opacity: 0.38;
}
.how-step::before {
  content: ""; position: absolute; left: -1px; top: 28px; width: 1px; height: 0;
  background: var(--orange); transition: height 500ms var(--ease);
}
.how-step.is-on { opacity: 1; }
.how-step.is-on::before { height: 72px; }
.how-n { display: block; font: 500 12px/1 var(--label); letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px; }
.how-step.is-on .how-n { color: var(--orange); }
.how-step h3 { font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -0.025em; margin-bottom: 12px; }
.how-step p { color: var(--text-2); font-size: 16px; max-width: 42ch; }

.how-stage { position: relative; }

/* Flashtype sets each product window on a tinted, dotted mat and lets it run off the mat's
   edge. Same device here: the dots are the brand orange at low alpha, and the window is
   inset from the top-left and cut off at the right and bottom. */
.mat {
  position: sticky; top: calc(50vh - 224px);
  padding: 34px 0 0 34px; overflow: hidden;
  border: 1px solid var(--hairline-soft);
  background:
    radial-gradient(circle, rgba(246, 131, 30, 0.22) 1px, transparent 1.4px) 0 0 / 18px 18px,
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(246, 131, 30, 0.09), transparent 70%),
    #141110;
}
.stage {
  position: relative;
  height: 420px; margin-right: -1px; margin-bottom: -1px;
  background: linear-gradient(to bottom, #1B1816, #141210);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.stage-bar {
  height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px 0 10px;
  border-bottom: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.012);
  font: 500 12.5px/1 var(--label); color: var(--text-2);
}
.stage-title { display: inline-flex; align-items: center; gap: 8px; }
/* A small orange chevron in front of the file name, where Flashtype has its bolt. */
.t-ico { width: 6px; height: 6px; border-top: 1.5px solid var(--orange); border-right: 1.5px solid var(--orange); transform: rotate(45deg); margin-right: 2px; }
.pane {
  position: absolute; inset: 44px 0 0; padding: 26px 28px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease);
  pointer-events: none;
}
.pane.is-on { opacity: 1; transform: none; }

/* Inside the pinned window, a pane's rows arrive in order when its step goes live, so
   the artifact reads as produced rather than pasted. --i is set per row by script.js. */
.js-motion .how-stage .pane [style*="--i"] {
  opacity: 0; transform: translateY(6px);
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
  transition-delay: 0ms;
}
.js-motion .how-stage .pane.is-on [style*="--i"] {
  opacity: 1; transform: none; transition-delay: calc(var(--i) * 110ms + 120ms);
}

.code { margin: 0; font: 400 14px/1.75 var(--label); color: var(--text-2); white-space: pre; overflow-x: auto; }
.code-ln { counter-reset: ln; }
.code-ln .l { display: block; }
.code-ln .l::before {
  counter-increment: ln; content: counter(ln); display: inline-block; width: 2.2em; margin-right: 1.2em;
  text-align: right; color: #4a433e; border-right: 1px solid var(--hairline-soft); padding-right: 0.8em;
}
.c-k { color: var(--text); }
.c-s { color: var(--orange); }
.c-p { color: #6f6761; }

.msg { max-width: 82%; font-size: 14.5px; line-height: 1.5; padding: 10px 14px; margin-bottom: 10px; }
.msg-you { margin-left: auto; background: var(--surface-3); color: var(--text); }
.msg-agent { background: rgba(246, 131, 30, 0.06); border-left: 2px solid rgba(246, 131, 30, 0.5); color: var(--text-2); }
.msg-quiet { color: var(--muted); }

.wire td { font-size: 13.5px; color: var(--text-2); }
.wire td:first-child { color: var(--text); }
.wire-no td { color: var(--muted) !important; }
.wire-no td:first-child { color: var(--orange) !important; }

.tlog { list-style: none; margin: 0; padding: 0; font: 400 13.5px/1.2 var(--label); }
.tlog li { display: grid; grid-template-columns: 76px 70px minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--hairline-soft); color: var(--text); }
.tlog time { color: #5f5853; }
.tlog .k { color: var(--muted); }
.log { margin: 0; font: 400 14px/1 var(--label); }
.log > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); padding: 13px 0; border-bottom: 1px solid var(--hairline-soft); }
.log dt { color: var(--muted); }
.log dd { margin: 0; color: var(--text); }
.ok { color: var(--ok); font-weight: 500; }

.mini-fleet { list-style: none; margin: 0; padding: 0; }
.order { list-style: none; margin: 0; padding: 0; }
.order li { display: grid; grid-template-columns: minmax(0, 1fr) 32px 132px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hairline-soft); font-size: 14px; }
.order li span { color: var(--text); }
.order li em { font: 400 12px/1 var(--label); font-style: normal; color: var(--muted); margin-left: 6px; }
.order li b { font: 500 13px/1 var(--label); color: var(--text-2); font-variant-numeric: tabular-nums; }
.order li i { font-style: normal; justify-self: end; }
.order-have span { color: var(--muted) !important; }
@media (max-width: 480px) {
  .order li { grid-template-columns: minmax(0, 1fr) 26px; row-gap: 6px; }
  .order li i { grid-column: 1 / -1; justify-self: start; }
  .order li em { display: block; margin: 3px 0 0; }
}
.how-step .order-foot, .order-foot { margin-top: 12px; max-width: none; font: 500 11px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mini-fleet li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--hairline-soft);
  font: 400 13.5px/1 var(--label);
}

.pill {
  display: inline-block; font: 500 10.5px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 8px; border: 1px solid var(--hairline); color: var(--muted); white-space: nowrap;
  transition: color 400ms var(--ease), border-color 400ms var(--ease), background-color 400ms var(--ease);
}
.pill-ok { color: var(--ok); border-color: hsl(145 55% 42% / 0.45); background: hsl(145 55% 42% / 0.08); }
.pill-warn { color: var(--warn); border-color: hsl(38 92% 50% / 0.45); background: hsl(38 92% 50% / 0.08); }

/* On a phone there is no room beside the steps, and a window pinned above them hid each
   heading as it scrolled underneath. So each step carries its own artifact inline --
   script.js clones the panes in -- and the pinned stage is a desktop behaviour only. */
.pane-inline { display: none; }
@media (max-width: 900px) {
  .how-in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .how-stage { display: none; }
  .how-step { min-height: 0; opacity: 1; padding-bottom: 44px; }
  .how-step::before { height: 48px; }
  .how-step .how-n { color: var(--orange); }
  .pane-inline {
    display: block; position: static; opacity: 1; transform: none; pointer-events: auto;
    margin-top: 20px; padding: 16px;
    background: linear-gradient(to bottom, #1B1816, #141210);
    border: 1px solid var(--hairline); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow-x: auto;
  }
  /* 10.5px fits the whole config at 390; below that a long line wraps at a space rather
     than running off the edge. */
  .pane-inline .code { font-size: 10.5px; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
  .pane-inline .code-ln .l::before { display: none; }
  .pane-inline .tlog { min-width: 400px; font-size: 12.5px; }
  .pane-inline .t-prompt, .pane-inline .t-out { font-size: 12.5px; }
  .pane-inline .msg { font-size: 13.5px; max-width: 92%; }
  .pane-inline .wire { min-width: 460px; }
  .pane-inline .log > div { grid-template-columns: 72px minmax(0, 1fr); font-size: 12.5px; }
}

/* ================================================================ the system */

.system { padding-top: var(--section); }
.drawing {
  position: relative; margin-top: clamp(40px, 5vw, 64px);
  border: 1px solid var(--hairline);
  background:
    linear-gradient(to right, rgba(237, 235, 233, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(to bottom, rgba(237, 235, 233, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(ellipse 60% 55% at 50% 100%, rgba(246, 131, 30, 0.09), transparent 70%),
    linear-gradient(to bottom, #1A1715, #131110);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.drawing-bar { display: flex; align-items: center; padding: 14px 18px; }
.drawing-title { font: 500 12px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
/* Capped: stretched to the full column the labels rendered near 18px and the strokes
   read as clip-art. At this width it keeps the proportions of a drawing. */
.drawing-art { max-width: 940px; margin-inline: auto; padding: 8px clamp(12px, 4vw, 48px) clamp(28px, 4vw, 56px); }
.drawing-art svg { display: block; width: 100%; height: auto; }
.drawing-art svg[hidden] { display: none; }
.lbl text { font-family: var(--label); font-size: 8px; letter-spacing: 0.14em; }
@media (max-width: 600px) { .lbl text { font-size: 11px; letter-spacing: 0.02em; } }

.hud { position: absolute; z-index: 2; width: 14px; height: 14px; pointer-events: none; }
.hud-tl { top: -1px; left: -1px; border-top: 2px solid var(--orange); border-left: 2px solid var(--orange); }
.hud-br { right: -1px; bottom: -1px; border-bottom: 2px solid var(--orange); border-right: 2px solid var(--orange); }

/* Blueprint draw-in when the drawing arrives, then traffic both ways on the bus. */
.dr > * { stroke-dasharray: 700; stroke-dashoffset: 0; }
.js-motion .dr > * { stroke-dashoffset: 700; }
.js-motion .drawing.in .dr > * { animation: draw 1.2s var(--ease) forwards; }
.js-motion .lbl { opacity: 0; transition: opacity 600ms var(--ease) 700ms; }
.js-motion .drawing.in .lbl { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.pk { opacity: 0; }
.drawing.in .pk-out { animation: busOut 2.6s linear 1.2s infinite; }
.drawing.in .pk-back { animation: busBack 2.6s linear 2.5s infinite; }
@keyframes busOut { 0% { opacity: 0; transform: translateX(0); } 8%, 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(294px); } }
@keyframes busBack { 0% { opacity: 0; transform: translateX(0); } 8%, 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(-294px); } }

/* ================================================================ partners */

/* Where a part comes from, one colour each: ours in the brand orange, verified partners in
   green, the customer's own in grey. Used in the hero's parts list and the partner picker. */
.src {
  display: inline-block; white-space: nowrap;
  font: 500 10.5px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 7px; border: 1px solid var(--hairline); color: var(--muted);
}
.src-ours { color: var(--orange); border-color: rgba(246, 131, 30, 0.45); background: rgba(246, 131, 30, 0.07); }
.src-partner { color: var(--ok); border-color: hsl(145 55% 42% / 0.45); background: hsl(145 55% 42% / 0.08); }
.src-own { color: var(--muted); border-color: var(--hairline); }
.bom tr.row-partner td:first-child, .bom tr.row-own td:first-child { font-family: var(--body); font-size: 14px; }

.partners { padding-top: var(--section); }
.partners-in {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(40px, 5vw, 64px);
}
.partner-points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.partner-points li { padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.partner-points h3 { font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -0.02em; margin-bottom: 8px; }
.partner-points p { color: var(--text-2); font-size: 15.5px; max-width: 44ch; }

.pick { margin: 0; }
.pick-list { list-style: none; margin: 0; padding: 8px 22px; }
.pick-list li {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--hairline-soft);
}
.pick-list li:last-child { border-bottom: 0; }
.pick-list b { display: block; font: 500 15px/1.35 var(--body); color: var(--text); }
.pick-list div span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.pick-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--hairline); position: relative; }
/* Selection is UI state, not a source, so it stays neutral: orange means our part. */
.pick-list li.is-on .pick-dot { border-color: var(--text); }
.pick-list li.is-on .pick-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--text); }
.pick-foot { padding: 14px 22px 18px; border-top: 1px solid var(--hairline); font: 500 11px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
  .partners-in { grid-template-columns: minmax(0, 1fr); }
  .pick-list { padding: 4px 16px; }
  .pick-list li { grid-template-columns: 18px minmax(0, 1fr); }
  .pick-list .src { grid-column: 2; justify-self: start; }
}

/* ================================================================ stop doing */

/* The only section without a product surface, so it gets a surface of its own: a
   one-step lift, the way the reference sites separate a pause from the product. */
/* Margin and padding at three quarters of the section rhythm: at full rhythm both, they
   stacked into ~320px of empty grid above the heading. */
.stop {
  margin-top: calc(var(--section) * 0.75); padding: calc(var(--section) * 0.75) 0;
  background: linear-gradient(to bottom, #151210, #120F0E);
  border-block: 1px solid var(--hairline-soft);
}

/* Flood tiles, the brand's motif: at rest they are hairline cells, and the one under
   the pointer floods solid orange with its type flipped to the ground. The dividers are
   borders rather than grid gaps because the cells are transparent. */
.tiles {
  list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline);
}
.tile {
  padding: clamp(28px, 3.4vw, 52px);
  border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  transition: background-color 450ms var(--ease);
}
.tile h3 { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.03em; margin-bottom: 14px; transition: color 450ms var(--ease); }
.tile p { color: var(--muted); font-size: 15.5px; max-width: 44ch; transition: color 450ms var(--ease); }
/* Pointer devices only: on a touch screen :hover sticks after a tap and left a tile orange. */
@media (hover: hover) {
  .tile:hover { background: var(--orange); }
  .tile:hover h3, .tile:hover p { color: var(--on-orange); }
}
@media (max-width: 760px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================ the fleet */

.fleet { padding-top: calc(var(--section) * 0.75); }
.app-fleet { margin-top: clamp(40px, 5vw, 64px); }
.fleet-scroll { overflow-x: auto; padding: 4px 22px 10px; }
.devices { min-width: 820px; }
.devices td { font-size: 14px; color: var(--text-2); padding-block: 16px; }
.devices td:first-child { font: 400 13px/1.4 var(--label); color: var(--text); }
.devices td[data-slot="app"], .devices td:nth-child(5) { font: 400 13px/1.4 var(--label); }
.devices tr.is-flash td { background: rgba(246, 131, 30, 0.05); }
.devices td { transition: background-color 600ms var(--ease); }

/* On a phone the rollout is the point, so the table keeps the three columns that show
   it -- which machine, what it runs, where its update is -- instead of scrolling
   sideways and hiding exactly that. */
@media (max-width: 860px) {
  .fleet-scroll { padding-inline: 14px; }
  .devices { min-width: 0; }
  .devices th:nth-child(2), .devices td:nth-child(2),
  .devices th:nth-child(3), .devices td:nth-child(3),
  .devices th:nth-child(4), .devices td:nth-child(4),
  .devices th:nth-child(7), .devices td:nth-child(7) { display: none; }
  .devices td, .devices td:first-child, .devices td:nth-child(5) { font-size: 11.5px; padding-right: 8px; }
  .devices .pill { font-size: 10.5px; padding: 4px 6px; }
}

/* ================================================================ faq */

.faq { padding-top: var(--section); }
.faq-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: start; }
.faq-list { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 44px 22px 0; font: 700 clamp(18px, 1.6vw, 21px)/1.3 var(--display); letter-spacing: -0.02em;
  transition: color 250ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
/* A plus that turns into a minus: two strokes, the vertical one folds away. */
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--orange);
  transition: transform 300ms var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 44px 24px 0; color: var(--text-2); font-size: 16px; max-width: 62ch; }
@media (max-width: 860px) { .faq-in { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================ cta */

/* The closing chapter sits over the brand's own render: robot arms under a truss, the
   orange chevron lattice glowing from below -- the colour story the guidelines describe.
   Darkened, and faded into the ground at both edges, so it reads as a place the page
   arrives at rather than a picture pasted in. The type sits in the dark upper half. */
.cta { position: relative; isolation: isolate; padding: calc(var(--section) * 1.1) 0 clamp(260px, 30vw, 420px); overflow: hidden; }
.cta-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-scene img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
  opacity: 0.62;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 72%, transparent 100%);
}
.cta-scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--ground) 0%, rgba(17, 15, 13, 0.55) 40%, rgba(17, 15, 13, 0.1) 70%, var(--ground) 100%);
}
.cta-link { display: inline-block; text-decoration: none; }
.cta-l1, .cta-l2 {
  display: block; font: 700 clamp(40px, 7.8vw, 112px)/1 var(--display); letter-spacing: -0.045em;
}
.cta-l1 { color: transparent; -webkit-text-stroke: 1px rgba(246, 131, 30, 0.7); transition: color 500ms var(--ease); }
.cta-link:hover .cta-l1 { color: var(--orange); }
/* The arrows are drawn, not typed: iOS renders the "↗" character as a colour emoji. */
.nw { white-space: nowrap; }
.arr { display: inline-block; width: 0.72em; height: 0.72em; vertical-align: -0.02em; }
.cta-a { display: inline-block; width: 0.62em; height: 0.62em; vertical-align: 0; color: var(--orange); transition: transform 400ms var(--ease); }
.cta-link:hover .cta-a { transform: translate(6px, -6px); }
.cta-note { margin-top: 28px; font-size: 16px; color: var(--text-2); max-width: 60ch; }
.cta-note a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(246, 131, 30, 0.6); text-underline-offset: 3px; }
.cta-note a:hover { color: var(--orange); }

/* ================================================================ footer */

/* The industreal.tech footer: the logo, the social links and the legal line. Same structure and type as the company site, in this
   page's tokens. */
.foot { border-top: 1px solid var(--hairline); background: var(--surface); padding: 40px 0; }

.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.foot-logo img { display: block; height: 32px; width: auto; }
.foot-social { display: flex; align-items: center; gap: 16px; }
.foot-social a {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 1px solid var(--hairline); color: var(--muted);
  transition: border-color 250ms var(--ease), color 250ms var(--ease);
}
.foot-social a:hover { border-color: rgba(246, 131, 30, 0.4); color: var(--orange); }
.foot-social svg { width: 16px; height: 16px; }
.foot-meta { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.foot-meta p { font-size: 12px; color: var(--muted); }
.foot-link {
  font: 500 11px/1 var(--label); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 250ms var(--ease);
}
.foot-link:hover { color: var(--orange); }

@media (max-width: 860px) {
  .foot-row { flex-direction: column; gap: 22px; }
}

/* ================================================================ reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .pk { display: none; }
  .is-running.app::before { animation: none; opacity: 0.4; }
  .aurora { animation: none; }
}


/* ================================================================ phone pass */


@media (max-width: 700px) {
  /* Badges and pills are information, so they get a size a phone can read. */
  .src, .pill { font-size: 10.5px; padding: 5px 7px; }

  /* Wiring: each connection becomes a small card -- the signal on top, from -> to below --
     instead of a three-column table that scrolled sideways and cut words off. */
  .pane-inline .wire { min-width: 0; }
  .pane-inline .wire thead { display: none; }
  .pane-inline .wire tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--hairline-soft); }
  .pane-inline .wire td { padding: 0; border: 0; font-size: 13px; }
  .pane-inline .wire td:first-child { font-weight: 500; }
  .pane-inline .wire td:nth-child(2):not([colspan])::after { content: " \2192"; color: var(--orange); }
  .pane-inline .wire td[colspan] { grid-column: 1; }

  /* Deploy log: the value wraps under its key instead of running off the edge. */
  .pane-inline .tlog { min-width: 0; }
  .pane-inline .tlog li { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 4px; font-size: 12.5px; }
  .pane-inline .tlog li > span:last-child { grid-column: 1 / -1; overflow-wrap: anywhere; }
  .pane-inline .tlog .k { color: var(--text-2); }

  /* The whole footer strip reads at phone size. */
  .foot-link { font-size: 11px; }
}

/* Touch screens: every control people actually tap reaches 44px. */
@media (pointer: coarse) {
  .step-token { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-social { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .foot-social a { width: 44px; height: 44px; }
  .btn-line, .btn-sm { height: 44px; }
  .foot-logo { display: flex; align-items: center; min-height: 44px; }
  .foot-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
  .lockup { min-height: 44px; }
  .lang a { min-height: 44px; }
  /* Inline links keep their line; the padding grows only the area a finger can hit. */
  .cta-note a { display: inline-block; padding-block: 12px; margin-block: -12px; }
}
@media (max-width: 360px) {
  .fleet-scroll { padding-inline: 10px; }
  .devices td, .devices td:first-child, .devices td:nth-child(5) { font-size: 11px; padding-right: 6px; }
}

/* The wordmark may not go below 24px (DESIGN.md 4.2), so on phones the header button shortens
   instead: logo, language switch and "Demó foglalása" were 440px wide on a 430 screen. */
.lbl-short { display: none; }
@media (max-width: 500px) {
  .nav-in { gap: 12px; }
  .nav-cta { padding-inline: 12px; }
  .nav-cta .lbl-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-cta .lbl-short { display: inline; }
}
/* The narrowest phones keep the logo at 24px and both controls: the language switch shows only
   the language you can switch to. */
@media (max-width: 380px) {
  .nav-in { gap: 8px; }
  .nav-cta { padding-inline: 10px; }
  .lang a { padding: 0 4px; }
  .lang a[aria-current] { display: none; }
  /* Six 44px social buttons in one row on a 280px column, instead of five and an orphan. */
  .foot-social { gap: 3px; }
}
/* Tablets: badges, pills and the footer's small labels at the phone sizes, not 9.5px. */
@media (max-width: 1024px) {
  .src, .pill { font-size: 10.5px; }
  .foot-link { font-size: 11px; }
}

/* ================================================================ legal pages */

.doc { padding-block: clamp(56px, 8vw, 104px); }
.doc-in { max-width: 72ch; }
.doc h1 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.04em; margin-bottom: 14px; }
.doc .doc-date { color: var(--muted); font-size: 14px; margin-bottom: clamp(32px, 4vw, 48px); }
.doc h2 { font-size: clamp(20px, 2vw, 25px); letter-spacing: -0.02em; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--text-2); font-size: 16px; line-height: 1.65; }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 8px 0 0; padding-left: 20px; }
.doc a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(246, 131, 30, 0.6); text-underline-offset: 3px; }
.doc a:hover { color: var(--orange); }
.facts { margin: 0; border-top: 1px solid var(--hairline); }
.facts > div { display: grid; grid-template-columns: minmax(0, 17ch) minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--hairline-soft); }
.facts dt { color: var(--muted); font-size: 14.5px; }
.facts dd { margin: 0; color: var(--text); font-size: 15.5px; }
@media (max-width: 560px) { .facts > div { grid-template-columns: minmax(0, 1fr); } }
