/* Robsen Robotics: site styles. Tokens live in tokens.css. */

/* Fonts, self-hosted */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-400-latin-ext.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-500-latin.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-500-latin-ext.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font-sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; font-stretch: var(--wdth-display-pct); letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--line-strong) transparent; }

.wrap { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }
.data { font-family: var(--font-mono); font-size: var(--fs-data); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: absolute; left: var(--gutter); top: 0; z-index: 100; transform: translateY(-120%);
  background: var(--ink); color: #fff; padding: var(--s-3) var(--s-4); border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none; font-weight: 500; transition: transform var(--t-fast) var(--ease);
}
.skip:focus { transform: translateY(0); }

/* Buttons */
.btn {
  --bg: var(--blue); --fg: #fff; --bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 48px; padding: 0 var(--s-5);
  font: 600 var(--fs-sm)/1 var(--font-sans); font-stretch: 106%; letter-spacing: 0.005em;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: var(--radius);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover { --bg: var(--blue-hover); --bd: var(--blue-hover); }
.btn--sm { min-height: 40px; padding: 0 var(--s-4); }
.btn--block { width: 100%; }
.btn .arrow { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: var(--s-6); height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 128px; height: auto; }

.primary-nav { display: none; flex: 1; height: 100%; }
.nav-list { display: flex; align-items: stretch; height: 100%; gap: var(--s-1); }
.nav-list > li { display: flex; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 0 var(--s-3); height: 100%;
  font-size: var(--fs-sm); font-weight: 500; line-height: 1;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
/* The hover indicator is drawn as a dimension line: a rule with end ticks, measured out from the middle. */
.nav-link::after {
  content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 18px; height: 7px;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 100% 1px no-repeat,
    linear-gradient(var(--blue), var(--blue)) left center / 1px 100% no-repeat,
    linear-gradient(var(--blue), var(--blue)) right center / 1px 100% no-repeat;
  transform: scaleX(0); transition: transform var(--t-base) var(--ease);
}
.nav-link:hover::after,
.nav-link[aria-expanded="true"]::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link .chev { width: 12px; height: 12px; color: var(--steel-soft); transition: transform var(--t-base) var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--blue); }
.irocube-mark { width: 7px; height: 7px; background: var(--irocube); flex: none; }
.ext-icon { width: 12px; height: 12px; color: var(--steel-soft); }

.header-actions { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; }
.header-cta { display: none; }

.menu-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; border-radius: var(--radius); cursor: pointer;
}
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform var(--t-base) var(--ease); }
.menu-toggle span + span { margin-top: 6px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu-toggle-box { display: grid; }

@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 1100px) {
  .primary-nav { display: block; }
  .menu-toggle { display: none; }
  .header-bar { gap: var(--s-7); }
}

/* Mega menus: anchored to the header, full width */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-overlay);
}
.mega[hidden] { display: none; }
.mega.is-entering { animation: mega-in var(--t-base) var(--ease); }
/* Visible from the first frame: the panel only settles into place, it never fades in from nothing. */
@keyframes mega-in { from { transform: translateY(-6px); } to { transform: none; } }
.mega-inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-8); padding-top: var(--s-7); padding-bottom: var(--s-7); }

.mega-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); align-content: start; }
.mega-item {
  display: grid; gap: var(--s-1); padding: var(--s-4) 0; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.mega-item .mi-name { font-weight: 600; font-stretch: 108%; letter-spacing: -0.01em; font-size: 1.0625rem; display: inline-flex; align-items: center; gap: var(--s-2); transition: color var(--t-fast); }
.mega-item .mi-name .arrow { width: 14px; height: 14px; opacity: 0; transform: translateX(-4px); transition: opacity var(--t-fast), transform var(--t-base) var(--ease); }
.mega-item .mi-desc { color: var(--steel); font-size: var(--fs-sm); line-height: 1.45; }
.mega-item:hover .mi-name, .mega-item:focus-visible .mi-name { color: var(--blue); }
.mega-item:hover .arrow, .mega-item:focus-visible .arrow { opacity: 1; transform: none; }
/* A solution's own pages, a row of small links under it in the mega menu. */
.mega-list > li { display: grid; align-content: start; }
.mega-cells { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin: calc(-1 * var(--s-2)) 0 var(--s-4); font-size: var(--fs-sm); }
.mega-cells a { color: var(--ink); font-weight: 500; text-decoration: none; }
.mega-cells a:hover, .mega-cells a:focus-visible { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.mega-all-li { grid-column: 1 / -1; margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--ink); }
.mega-all { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; color: var(--ink); }
.mega-all .arrow { width: 14px; height: 14px; transition: transform var(--t-base) var(--ease); }
.mega-all:hover { color: var(--blue); }
.mega-all:hover .arrow { transform: translateX(3px); }

.mega-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-6); align-content: start; }
.mega-group h2 { font-family: var(--font-mono); font-size: var(--fs-data); font-weight: 500; letter-spacing: 0.01em; font-stretch: 100%; color: var(--steel-soft); padding-bottom: var(--s-3); }

.mega-feature { display: grid; gap: var(--s-4); align-content: start; padding-left: var(--s-7); border-left: 1px solid var(--line); }
.mega-feature img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; background: var(--mist); }
.mega-feature h2 { font-size: 1.375rem; line-height: 1.15; display: flex; align-items: center; gap: var(--s-2); }
.mega-feature p { color: var(--steel); font-size: var(--fs-sm); line-height: 1.5; }
.mega-feature .data { color: var(--ink); }
.mega-feature .links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .arrow, .text-link .ext-icon { width: 14px; height: 14px; color: currentColor; }
.loop { display: grid; gap: 0; margin-top: var(--s-2); }
.loop li { display: grid; grid-template-columns: 14px 1fr; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); color: var(--steel); padding: 3px 0; }
.loop li::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--blue); justify-self: center; }

/* Small dropdown (Resources) */
.has-drop { position: relative; }
.drop {
  position: absolute; top: 100%; left: 0; min-width: 240px; padding: var(--s-2) 0;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-overlay); border-radius: 0 0 var(--radius) var(--radius);
}
.drop[hidden] { display: none; }
.drop.is-entering { animation: mega-in var(--t-base) var(--ease); }
.drop a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--s-5); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.drop a:hover, .drop a:focus-visible { background: var(--mist); color: var(--blue); }

/* Mobile navigation */
.mobile-nav {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 49;
  background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav.is-entering { animation: mega-in var(--t-base) var(--ease); }
.mobile-nav .wrap { padding-top: var(--s-4); padding-bottom: var(--s-7); display: grid; gap: var(--s-6); }
.m-list > li { border-bottom: 1px solid var(--line); }
.m-link, .m-acc {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 60px;
  padding: 0; background: none; border: 0; text-align: left; text-decoration: none; cursor: pointer;
  font-size: 1.25rem; font-weight: 600; font-stretch: 108%; letter-spacing: -0.01em; color: var(--ink);
}
.m-link .irocube-mark { margin-right: var(--s-3); }
.m-link-label { display: inline-flex; align-items: center; }
.m-acc .chev { width: 16px; height: 16px; color: var(--steel-soft); transition: transform var(--t-base) var(--ease); }
.m-acc[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--blue); }
.m-sub { padding: 0 0 var(--s-4); }
.m-sub[hidden] { display: none; }
.m-sub a { display: block; padding: var(--s-2) 0; text-decoration: none; color: var(--steel); font-weight: 500; }
.m-sub a:hover { color: var(--blue); }
.m-sub .m-cell a { padding: var(--s-1) 0 var(--s-1) var(--s-4); font-size: var(--fs-sm); font-weight: 400; }
.m-sub .m-sub-all { color: var(--blue); font-weight: 600; padding-top: var(--s-3); }
.m-group-title { font-family: var(--font-mono); font-size: var(--fs-data); color: var(--steel-soft); padding: var(--s-3) 0 var(--s-1); }
@media (min-width: 1100px) { .mobile-nav { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* Opening: five full-height photographs, one per solution, with the headline drawn across them as a dimension. */
.hero { position: relative; background: var(--paper); }

.hero-head { display: flex; flex-direction: column; gap: var(--s-4); padding: clamp(28px, 6vw, 48px) var(--gutter) var(--s-6); }
.hero h1 { font-size: clamp(1.875rem, 1.2rem + 3vw, 2.75rem); line-height: 1.1; max-width: 18ch; }

/* A dimension half: a line with an arrowhead at the outer end, stopped by an extension tick. */
.dim { --dim: var(--blue); position: relative; flex: 1 1 0; min-width: 40px; height: 24px; }
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--dim); }
.dim::after { content: ""; position: absolute; top: calc(50% - 4px); width: 10px; height: 8px; background: var(--dim); }
.dim--start { border-left: 1px solid var(--dim); display: none; }
.dim--start::before { transform-origin: right center; }
.dim--start::after { left: 0; clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.dim--end { order: 1; flex: none; border-left: 1px solid var(--dim); border-right: 1px solid var(--dim); }
.dim--end::before { transform-origin: left center; }
.dim--end::after { right: 0; clip-path: polygon(100% 50%, 0 0, 0 100%); }
@media (prefers-reduced-motion: no-preference) {
  .dim::before { animation: dim-run 900ms var(--ease) 200ms both; }
}
@keyframes dim-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Panels. Mobile: stacked photographs with their text always visible. */
.panels { display: flex; flex-direction: column; gap: 2px; background: var(--paper); }
.panel { position: relative; isolation: isolate; display: block; overflow: hidden; min-height: 260px; color: #fff; text-decoration: none; background: var(--ink); }
.panel picture { display: contents; }
.panel img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
/* Resting shade: just enough under the name to read it. */
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(11, 28, 38, 0.66) 0%, rgba(11, 28, 38, 0.24) 24%, rgba(11, 28, 38, 0) 42%);
}
/* Reveal shade: rises from the bottom when the solution is explored. */
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(to top, rgba(11, 28, 38, 0.94) 0%, rgba(11, 28, 38, 0.8) 34%, rgba(11, 28, 38, 0) 74%);
  transition: opacity 500ms var(--ease);
}
.panel-content { position: absolute; left: var(--s-5); right: var(--s-5); bottom: var(--s-5); display: grid; }
.panel-name {
  font-size: clamp(1.375rem, 0.9rem + 1vw, 1.875rem); font-weight: 600; font-stretch: var(--wdth-display-pct);
  line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance;
  text-shadow: 0 1px 16px rgba(11, 28, 38, 0.35);
}
.panel-reveal { display: grid; grid-template-rows: 1fr; }
.panel-reveal-inner { overflow: hidden; display: grid; gap: var(--s-2); align-content: start; }
.panel-desc { padding-top: var(--s-2); color: rgba(255, 255, 255, 0.92); font-size: var(--fs-sm); line-height: 1.5; max-width: 42ch; }
.panel-apps, .panel-proof { display: none; }
.panel-apps { color: var(--on-ink-soft); font-size: var(--fs-sm); line-height: 1.5; }
.panel-proof { color: #fff; }
.panel-cta { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--blue-on-ink); font-weight: 600; font-size: var(--fs-sm); }
.panel-cta .arrow { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease); }
.panel:hover .panel-cta .arrow, .panel:focus-visible .panel-cta .arrow { transform: translateX(4px); }
.panel:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 0; }
@media (max-width: 999px) {
  .panel::after { opacity: 0.85; }
}

/* Wide screens: the opening fills the screen; five equal photographs, the headline drawn across their top. */
@media (min-width: 1000px) {
  .hero { height: calc(100svh - var(--header-h)); min-height: 600px; }
  .hero::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; z-index: 1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(11, 28, 38, 0.58) 0%, rgba(11, 28, 38, 0.24) 55%, rgba(11, 28, 38, 0) 100%);
  }
  .hero-head {
    position: absolute; left: 0; right: 0; top: 0; z-index: 2; pointer-events: none;
    flex-direction: row; align-items: center; gap: var(--s-5);
    padding: clamp(28px, 3.4vw, 52px) var(--gutter) 0; color: #fff;
  }
  .hero h1 {
    flex: none; max-width: none; text-align: center;
    font-size: clamp(1.75rem, 0.4rem + 2.1vw, 2.875rem);
    text-shadow: 0 1px 18px rgba(11, 28, 38, 0.4);
  }
  .dim { --dim: #fff; }
  .dim--start { display: block; }
  .dim--end { order: 0; flex: 1 1 0; border-left: 0; }
  .panels { flex-direction: row; height: 100%; }
  .panel { flex: 1 1 0; min-width: 0; min-height: 0; }
  .panel-content { left: clamp(20px, 1.8vw, 32px); right: clamp(20px, 1.8vw, 32px); bottom: clamp(24px, 2.6vw, 40px); }
  .panel-reveal { grid-template-rows: 0fr; }
  .panel-desc { padding-top: var(--s-3); }
  .panel-apps, .panel-proof { display: block; }
  .panel-cta { margin-top: var(--s-2); }
}

/* With a real pointer: the explored photograph widens a little, the shade rises and the details appear in white. */
@media (min-width: 1000px) and (hover: hover) and (pointer: fine) {
  .panel { transition: flex-grow 650ms var(--ease); }
  .panel-reveal { transition: grid-template-rows 550ms var(--ease); }
  .panel:hover, .panel:focus-visible { flex-grow: 1.45; }
  .panel:hover::after, .panel:focus-visible::after { opacity: 1; }
  .panel:hover .panel-reveal, .panel:focus-visible .panel-reveal { grid-template-rows: 1fr; }
  .panel:hover img, .panel:focus-visible img { transform: scale(1.03); }
}

/* Test opening: production line scene (design/hero-uretim-hatti.html) */
.line-hero { background: var(--paper); display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h)); }
.lh-head { width: 100%; padding-top: clamp(28px, 4vw, 52px); display: grid; gap: var(--s-3); }
.lh-head h1 { font-size: clamp(1.875rem, 0.9rem + 2.4vw, 3.25rem); line-height: 1.08; max-width: 22ch; }
.lh-head p { color: var(--steel); max-width: 60ch; }
.lh-scene { position: relative; flex: 1 1 auto; display: grid; align-items: center; padding: var(--s-5) var(--gutter) var(--s-5); }
.lh-stage { position: relative; }
.lh-stage svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Line art: ink edges on light faces; one blue accent for the parts that travel end to end. */
.lh-stage svg polygon, .lh-stage svg line { vector-effect: non-scaling-stroke; stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.f-top { fill: #FFFFFF; } .f-front { fill: #EEF2F5; } .f-side { fill: #DCE3E8; }
.f-top.muted { fill: #F2F5F7; } .f-front.muted { fill: #E2E8EC; } .f-side.muted { fill: #CFD8DE; }
.f-top.cell { fill: #FFFFFF; } .f-front.cell { fill: #FBE7A8; } .f-side.cell { fill: #F2D57D; }
.f-top.ink { fill: #2A4152; } .f-front.ink { fill: #13293A; } .f-side.ink { fill: #0B1C26; }
.f-top.carton { fill: #F3E8D3; } .f-front.carton { fill: #E9D9BC; } .f-side.carton { fill: #DCC7A4; }
.f-top.belt { fill: #3E5361; } .f-front.belt { fill: #D6DEE3; } .f-side.belt { fill: #C3CDD3; }
.f-top.part { fill: #4C82F0; } .f-front.part { fill: #1D5FE6; } .f-side.part { fill: #1A4FC4; }
.f-glass { fill: #E3EDF3; stroke-width: 0.8 !important; }
.lh-stage .t-out { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.lh-stage .t-in { fill: none; stroke: #FFFFFF; stroke-linecap: round; stroke-linejoin: round; }
.lh-stage .l-edge { stroke-width: 1.4; }
.lh-stage .floor { fill: transparent; stroke: none !important; transition: fill 300ms var(--ease); }
.lh-stage .dim-line { stroke: var(--blue) !important; stroke-width: 1; }
.lh-stage .dim-tag { fill: var(--paper); stroke: var(--blue); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lh-stage .dim-text { font: 500 13px var(--font-mono); fill: var(--ink); }

.lh-stage .zone { cursor: pointer; transition: opacity 300ms var(--ease); }
.lh-stage .zone.is-hot polygon, .lh-stage .zone.is-hot line, .lh-stage .zone.is-hot .t-out { stroke: var(--blue); }
.lh-stage .zone.is-hot .floor { fill: var(--blue-soft); }
.lh-scene[data-hot]:not([data-hot=""]) .zone:not(.is-hot) { opacity: 0.38; }

/* Tags: a label on a leader line above each zone. */
.lh-tag {
  position: absolute; transform: translate(-50%, calc(-100% - var(--lead, 30px))); white-space: nowrap;
  padding: 7px 12px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: var(--fs-sm); font-weight: 600; font-stretch: 106%; color: var(--ink); text-decoration: none;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.lh-tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: var(--lead, 30px); background: var(--line-strong); }
.lh-tag.is-hot, .lh-tag:hover, .lh-tag:focus-visible { border-color: var(--blue); color: #fff; background: var(--blue); }
.lh-tag.is-hot::after { background: var(--blue); }

/* Detail card: the hovered solution, with its photograph. */
.lh-card { position: absolute; z-index: 3; display: none; width: clamp(260px, 21vw, 310px); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-overlay); }
.lh-card.is-open { display: block; }
.lh-detail { display: grid; gap: var(--s-2); padding: 0 0 var(--s-4); }
.lh-detail[hidden] { display: none; }
.lh-detail img { width: 100%; aspect-ratio: 2.6 / 1; object-fit: cover; margin-bottom: var(--s-1); background: var(--mist); }
.lh-card .lh-apps { display: none; }
.lh-detail > *:not(img) { margin-left: var(--s-4); margin-right: var(--s-4); }
.lh-card .lh-name { font-size: 1.25rem; }
.lh-name { font-size: 1.375rem; font-weight: 600; font-stretch: var(--wdth-display-pct); letter-spacing: -0.015em; line-height: 1.15; }
.lh-desc { color: var(--steel); font-size: var(--fs-sm); line-height: 1.5; }
.lh-apps { font-size: var(--fs-sm); line-height: 1.5; }
.lh-proof { color: var(--steel); }

.lh-list { display: none; }
@media (max-width: 999px) {
  .lh-tags, .lh-card { display: none; }
  .lh-scene { padding-bottom: var(--s-3); }
  .lh-list { display: grid; border-top: 1px solid var(--line); }
  .lh-list a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-3) var(--gutter); border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
  .lh-list img { width: 112px; height: 76px; object-fit: cover; }
  .lh-list .lh-name { font-size: 1.125rem; display: block; }
  .lh-list .lh-desc { display: block; }
}

/* ---------- the footer, on ink: who we are and how to reach us, then the site's sections, then the small print ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-soft); border-top: 1px solid rgba(255, 255, 255, .08); font-size: var(--fs-sm); line-height: 1.5; }
.site-footer a { color: var(--on-ink); text-decoration: none; transition: color var(--t-fast) var(--ease); }
.site-footer a:hover { color: var(--blue-on-ink); }
.site-footer a:focus-visible { outline: 2px solid var(--blue-on-ink); outline-offset: 3px; border-radius: 2px; }
.foot-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 3fr); gap: var(--s-8); padding: var(--s-9) 0 var(--s-8); }
.foot-brand { display: grid; gap: var(--s-5); align-content: start; justify-items: start; }
.foot-brand .brand img { width: 136px; }
.foot-brand > p { max-width: 36ch; }
.foot-asi { color: var(--on-ink); }
.foot-contact { display: grid; gap: var(--s-2); font-style: normal; }
.foot-social { display: flex; gap: var(--s-2); }
.foot-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.foot-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.foot-social svg { width: 18px; height: 18px; }
.foot-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); }
.foot-col h2 { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); font-family: var(--font-mono); font-size: var(--fs-data); font-weight: 400; color: var(--on-ink-soft); }
.foot-col ul { display: grid; gap: var(--s-3); }
.foot-col .ext-icon { display: inline-block; width: 11px; height: 11px; margin-left: 2px; color: var(--on-ink-soft); vertical-align: 0; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3) var(--s-6); padding: var(--s-5) 0 var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, .1); }
.foot-legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.foot-legal a { color: var(--on-ink-soft); }

@media (max-width: 1099px) {
  .foot-main { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
}
@media (max-width: 699px) {
  .foot-main { padding: var(--s-8) 0 var(--s-7); }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* "Hover over…" hints: the hover clips play only where the pointer can hover and motion is welcome (frames.js), so
   touch screens and reduced motion don't get the instruction either */
@media not all and (hover: hover) and (pointer: fine) {
  .hover-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hover-hint { display: none; }
}

/* "On this page": a quiet row of links under the opening of a long page (About, Transfer machines) */
.on-page { border-block: 1px solid var(--line); }
.on-page .wrap { display: flex; align-items: center; gap: var(--s-5); padding-block: var(--s-3); }
.on-page p { flex: none; margin: 0; color: var(--steel-soft); }
.on-page ul { display: flex; gap: var(--s-2) var(--s-5); flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.on-page a { color: var(--steel); text-decoration: none; font-weight: 500; }
.on-page a:hover, .on-page a:focus-visible { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 699px) {
  .on-page .wrap { display: block; }
  .on-page p { margin-bottom: var(--s-2); }
  .on-page ul { gap: var(--s-2) var(--s-4); }
}
