/* Smart Robotics site: shared styles for index.html and the product-line pages. */
/* ------------------------------------------------------------------ tokens
   Brand palette from the SR stylesheet v0.1. Mint means "the AI sees it",
   yellow means "the AI is recovering"; neither is used anywhere else. */
:root {
  --slate: #1d4762;
  --slate-deep: #15374d;
  --blue: #007c9f;
  --ocean: #2d8fa1;
  --mint: #a8e6ca;
  --yellow: #e9e982;
  --white: #ffffff;
  --paper: #f4f8fa;
  --paper-2: #e6eef2;
  --ink: #1d4762;
  --ink-2: #4a6a7e;
  --ink-3: #7a8f9c;
  --line: #cfdae0;

  --display: "Titillium Web", "Segoe UI", system-ui, sans-serif;
  --body: "Roboto", "Helvetica Neue", Arial, sans-serif;

  /* type scale, 17px base, ratio ~1.25 */
  --fs-0: 0.875rem;
  --fs-1: 1.0625rem;
  --fs-2: 1.3125rem;
  --fs-3: 1.6875rem;
  --fs-4: 2.125rem;
  --fs-5: 2.625rem;
  --fs-6: clamp(2.4rem, 5.2vw, 4.6rem);

  --gutter: clamp(16px, 4vw, 56px);
  --measure: 62ch;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 var(--fs-1)/1.55 var(--body);
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-color: rgba(0,124,159,.35); text-underline-offset: .15em; }
a:hover { color: var(--ocean); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.light :focus-visible, .light:focus-visible { outline-color: var(--blue); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }
p + p { margin-top: 1em; }
.measure { max-width: var(--measure); }
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto;
  background: var(--slate-deep); color: var(--white); overflow: clip; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.hero__media video { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__media video.is-live { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(21,55,77,.72) 0%, rgba(21,55,77,0) 30%),
    linear-gradient(20deg, rgba(21,55,77,.94) 0%, rgba(21,55,77,.72) 42%, rgba(21,55,77,.12) 78%);
  transition: opacity .8s var(--ease);
}
html[data-state="choose"] .hero__shade { opacity: .7; }
.hero__media video, .hero__media img { filter: brightness(.9) saturate(.9); }

/* top bar */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 0 18px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand svg { width: 40px; height: 40px; }
.brand span { font: 600 var(--fs-2)/1 var(--display); letter-spacing: .01em; }
.bar__nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); }
.bar__links { display: contents; }
.bar__nav a { color: rgba(255,255,255,.86); text-decoration: none; font-size: var(--fs-0); font-weight: 500; letter-spacing: .01em; }
.bar__nav a:hover { color: var(--white); }
.bar__nav .btn--solid { color: var(--slate); }
.bar__nav .btn--solid:hover { color: var(--slate); }
.brand span { white-space: nowrap; }
.btn {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 4px; border: 1px solid transparent;
  font: 500 var(--fs-0)/1 var(--body); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn--solid { background: var(--white); color: var(--slate); }
.btn--solid:hover { background: var(--mint); color: var(--slate); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: var(--white); background: rgba(21,55,77,.25); }
.btn--ghost:hover { border-color: var(--white); background: rgba(21,55,77,.5); color: var(--white); }
.btn--ink { background: var(--slate); color: var(--white); }
.btn--ink:hover { background: var(--blue); color: var(--white); }
.btn--outline { border-color: var(--slate); color: var(--slate); }
.btn--outline:hover { background: var(--slate); color: var(--white); }
.hairline { height: 1px; background: linear-gradient(90deg, var(--blue), var(--mint) 60%, transparent); opacity: .7; }

/* the line switcher lives in the bar once a line is chosen */
.switch { display: none; align-items: center; gap: 4px; padding: 0; margin: 0; list-style: none; }
.switch button {
  background: none; border: 0; padding: 8px 12px; border-radius: 4px; cursor: pointer;
  color: rgba(255,255,255,.7); font: 500 var(--fs-0)/1 var(--body); transition: color .2s, background .2s;
}
.switch button:hover { color: var(--white); }
.switch button[aria-pressed="true"] { color: var(--white); background: rgba(255,255,255,.14); }
html[data-state="focused"] .switch { display: flex; }
@media (max-width: 1100px) { .switch { display: none !important; } }
@media (max-width: 760px) {
  .bar__links { display: none !important; }
  .bar { padding: 14px 0 12px; }
  .brand svg { width: 34px; height: 34px; }
  .bar__nav .btn { padding: 10px 14px; }
}

/* chooser: three panels over the footage */
.hero__body { display: grid; align-content: end; }
.choose {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  margin-top: clamp(24px, 6vh, 72px);
}
.choose__prompt {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-bottom: 14px; color: rgba(255,255,255,.82); font-size: var(--fs-0);
}
.choose__prompt strong { font: 300 var(--fs-3)/1.15 var(--display); color: var(--white); letter-spacing: -.005em; }
.choose__prompt a { color: rgba(255,255,255,.7); text-decoration: none; white-space: nowrap; }
.choose__prompt a:hover { color: var(--white); }
.panel {
  position: relative; text-align: left; border: 0; cursor: pointer; padding: clamp(20px, 3vw, 36px);
  min-height: clamp(260px, 42vh, 420px); display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  background: rgba(21,55,77,.62); color: var(--white); backdrop-filter: saturate(.5) brightness(.85);
  transition: background .45s var(--ease), backdrop-filter .45s var(--ease), transform .45s var(--ease);
}
.panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--mint); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.panel:hover, .panel:focus-visible { background: rgba(21,55,77,.14); backdrop-filter: none; }
.panel:hover::before, .panel:focus-visible::before { transform: scaleX(1); }
.panel h2 { font: 300 clamp(1.55rem, 2.4vw, 2.4rem)/1.08 var(--display); letter-spacing: -.01em; }
.panel h2 b { font-weight: 600; display: block; }
.panel p { font-size: var(--fs-0); color: rgba(255,255,255,.82); max-width: 30ch; line-height: 1.5; }
.panel__go { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--fs-0)/1 var(--body); color: var(--mint); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease); }
.panel:hover .panel__go, .panel:focus-visible .panel__go { opacity: 1; transform: none; }
.panel__go svg { width: 16px; height: 16px; }

/* focused: copy in the bottom-left corner */
.focus { display: none; padding-top: clamp(40px, 10vh, 120px); }
.focus__copy { display: none; max-width: 640px; }
.focus__copy h1 { font: 600 var(--fs-6)/1.02 var(--display); letter-spacing: -.02em; max-width: 13ch; }
.focus__copy p { margin-top: 20px; font-size: var(--fs-2); line-height: 1.45; color: rgba(255,255,255,.88); max-width: 44ch; }
.focus__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.focus__meta { margin-top: 26px; font-size: var(--fs-0); color: rgba(255,255,255,.7); }
.focus__meta button { background: none; border: 0; padding: 0; color: rgba(255,255,255,.7); text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }
.focus__meta button:hover { color: var(--white); }
html[data-state="focused"] .choose { display: none; }
html[data-state="focused"] .focus { display: block; }
html[data-line="palletizing"] .focus__copy[data-for="palletizing"],
html[data-line="picking"] .focus__copy[data-for="picking"],
html[data-line="mixed"] .focus__copy[data-for="mixed"] { display: block; }

.hero__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0 26px; font-size: var(--fs-0); color: rgba(255,255,255,.62); }
.hero__foot .caption { display: inline-flex; align-items: center; gap: 10px; }
.hero__foot .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(168,230,202,.25); }
.hero__foot button { white-space: nowrap; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .15em; }
.hero__foot button:hover { color: var(--white); }

/* page-load moment: the three panels settle into place while the footage fades in */
@media (prefers-reduced-motion: no-preference) {
  .panel { animation: settle .8s var(--ease) both; }
  .panel:nth-child(3) { animation-delay: .08s; }
  .panel:nth-child(4) { animation-delay: .16s; }
  @keyframes settle { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  .choose__prompt { animation: settle .8s var(--ease) both; animation-delay: .24s; }
}

@media (max-width: 900px) {
  .choose { grid-template-columns: 1fr; }
  .panel { min-height: 0; padding: 22px 20px; flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .panel p { display: none; }
  .panel__go { opacity: 1; transform: none; }
  .panel__go span { display: none; }
  .panel__go svg { width: 22px; height: 22px; }
  .choose__prompt { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--paper { background: var(--paper); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.section__head h2 { font: 600 var(--fs-5)/1.08 var(--display); letter-spacing: -.015em; color: var(--ink); }
.section__head p { font-size: var(--fs-2); line-height: 1.45; color: var(--ink-2); }
@media (max-width: 800px) { .section__head { grid-template-columns: 1fr; } }

/* what the robot sees: one still, three overlays, switched by the visitor */
.see { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.see__tabs { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; position: sticky; top: 24px; }
.see__tab {
  text-align: left; background: none; border: 0; border-left: 2px solid var(--line); padding: 14px 18px; cursor: pointer;
  transition: border-color .25s, background .25s; border-radius: 0 4px 4px 0;
}
.see__tab h3 { font: 600 var(--fs-2)/1.2 var(--display); color: var(--ink); }
.see__tab p { margin-top: 6px; font-size: var(--fs-0); color: var(--ink-2); line-height: 1.5; }
.see__tab:hover { background: var(--paper-2); }
.see__tab[aria-selected="true"] { border-left-color: var(--blue); background: var(--white); }
.see__tab[aria-selected="true"] h3 { color: var(--blue); }
.see__stage { position: relative; border-radius: 6px; overflow: hidden; background: var(--slate-deep); aspect-ratio: 1600 / 750; }
.see__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.see__stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.see__layer { display: none; }
.see__layer.is-on { display: block; }
.see__layer polygon, .see__layer path, .see__layer line, .see__layer circle { vector-effect: non-scaling-stroke; }
.see__layer text { font: 500 26px/1 var(--body); fill: var(--white); paint-order: stroke; stroke: rgba(21,55,77,.85); stroke-width: 6px; stroke-linejoin: round; }
.see__layer .box { fill: rgba(168,230,202,.10); stroke: var(--mint); stroke-width: 2; }
.see__layer .box--dim { fill: none; stroke: rgba(168,230,202,.55); stroke-width: 1.5; stroke-dasharray: 6 6; }
.see__layer .box--warn { fill: rgba(233,233,130,.12); stroke: var(--yellow); stroke-width: 2.5; }
.see__layer .lead { stroke: var(--mint); stroke-width: 1.5; fill: none; }
.see__layer .lead--warn { stroke: var(--yellow); }
.see__layer .grasp { fill: var(--mint); }
.see__layer .grasp--warn { fill: var(--yellow); }
.see__card { fill: rgba(21,55,77,.86); stroke: rgba(168,230,202,.5); }
.see__card--warn { stroke: rgba(233,233,130,.6); }
.see__layer .card-t { font-size: 26px; font-weight: 500; stroke: none; }
.see__layer .card-k { font-size: 22px; fill: rgba(255,255,255,.72); stroke: none; }
.see__layer .card-v { font-size: 22px; fill: var(--white); stroke: none; }
.see__layer .ok { fill: var(--mint); }
.see__layer .warn { fill: var(--yellow); }
.see__note { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; background: linear-gradient(180deg, rgba(21,55,77,0), rgba(21,55,77,.85)); color: rgba(255,255,255,.9); font-size: var(--fs-0); }
.see__note strong { color: var(--white); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .see__layer.is-on .box, .see__layer.is-on .box--warn { animation: draw .5s var(--ease) both; }
  @keyframes draw { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 800px) {
  .see { grid-template-columns: 1fr; }
  .see__tabs { position: static; grid-template-columns: repeat(3, 1fr); }
  .see__tab { border-left: 0; border-top: 2px solid var(--line); padding: 12px 8px 0; border-radius: 0; }
  .see__tab[aria-selected="true"] { border-top-color: var(--blue); }
  .see__tab p { display: none; }
  .see__tab h3 { font-size: var(--fs-1); }
  .see__layer text { font-size: 30px; }
}

/* product lines */
.lines { display: grid; gap: clamp(56px, 8vw, 112px); margin-top: clamp(40px, 6vw, 80px); }
.line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.line:nth-child(even) .line__media { order: -1; }
.line__media { border-radius: 6px; overflow: hidden; background: var(--paper); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.line__media img { width: 100%; height: 100%; object-fit: cover; }
.line__media svg { width: 100%; height: 100%; }
.line__copy h3 { font: 600 var(--fs-4)/1.1 var(--display); letter-spacing: -.01em; }
.line__copy .tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: var(--fs-0); font-weight: 500; color: var(--blue); }
.line__copy .tag::before { content: ""; width: 18px; height: 2px; background: var(--blue); }
.line__copy .tag[hidden] { display: none; }
.line__copy .lede { margin-top: 12px; font-size: var(--fs-2); color: var(--ink-2); line-height: 1.45; }
.line__copy .body { margin-top: 18px; max-width: 58ch; }
.line__facts { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 58ch; }
.line__facts li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: baseline; color: var(--ink); }
.line__facts li::before { content: ""; width: 14px; height: 1px; background: var(--ocean); transform: translateY(-.35em); }
.line__copy .btn { margin-top: 26px; }
/* the chosen line comes first */
.line { order: 2; }
html[data-line="palletizing"] .line[data-line="palletizing"],
html[data-line="picking"] .line[data-line="picking"],
html[data-line="mixed"] .line[data-line="mixed"] { order: 1; }
@media (max-width: 800px) {
  .line { grid-template-columns: 1fr; }
  .line:nth-child(even) .line__media { order: 0; }
}

/* platform */
.platform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
.platform dl { margin: 0; display: grid; gap: 0; }
.platform .row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.platform .row:last-child { border-bottom: 1px solid var(--line); }
.platform dt { font: 600 var(--fs-1)/1.35 var(--display); color: var(--ink); }
.platform dd { margin: 0; color: var(--ink-2); }
.platform__media { border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; }
.platform__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
@media (max-width: 800px) { .platform { grid-template-columns: 1fr; } .platform__media { order: -1; } }

/* company + contact */
.company .section__head { align-items: start; }
.company p { font-size: var(--fs-2); line-height: 1.45; color: var(--ink-2); max-width: 56ch; }
.company p:first-of-type { color: var(--ink); }

.contact { background: var(--slate); color: var(--white); }
.contact .section__head h2 { color: var(--white); }
.contact .section__head p { color: rgba(255,255,255,.8); }
.form { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; max-width: 760px; }
.form label { display: grid; gap: 6px; font-size: var(--fs-0); color: rgba(255,255,255,.8); }
.form label.wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: 400 var(--fs-1)/1.4 var(--body); color: var(--white); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.28); border-radius: 4px; padding: 12px 14px; width: 100%;
}
.form select option { color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--mint); outline: none; }
.form .actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form .actions small { color: rgba(255,255,255,.65); font-size: var(--fs-0); }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

footer { background: var(--slate-deep); color: rgba(255,255,255,.7); padding: 40px 0; font-size: var(--fs-0); }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; align-items: center; }
footer .brand span { font-size: var(--fs-1); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer nav a { color: inherit; text-decoration: none; }
footer nav a:hover { color: var(--white); }
footer .fine { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: rgba(255,255,255,.45); }

/* ------------------------------------------------------------------ product-line pages */
.switch a { display: inline-block; padding: 8px 12px; border-radius: 4px; color: rgba(255,255,255,.7); font: 500 var(--fs-0)/1 var(--body); text-decoration: none; transition: color .2s, background .2s; }
.switch a:hover { color: var(--white); }
.switch a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.14); }
.hero--page { min-height: 82svh; }
.hero--page .focus { display: block; padding-top: clamp(32px, 8vh, 96px); }
.hero--page .focus__copy { display: block; }
