/* =========================================================================
   OGH Systems — main stylesheet
   One file for every page. Page bodies (Custom HTML blocks) use these classes.
   ========================================================================= */

/* ---------- fonts (self-hosted, latin + latin-ext for č š ž) ---------- */
@font-face{font-family:'Archivo';font-style:normal;font-weight:500 800;font-display:swap;src:url(../fonts/archivo-latin-ext.woff2) format('woff2');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:'Archivo';font-style:normal;font-weight:500 800;font-display:swap;src:url(../fonts/archivo-latin.woff2) format('woff2');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:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/inter-latin-ext.woff2) format('woff2');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:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/inter-latin.woff2) format('woff2');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';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/plexmono-400-latin-ext.woff2) format('woff2');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';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/plexmono-400-latin.woff2) format('woff2');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';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/plexmono-500-latin-ext.woff2) format('woff2');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';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/plexmono-500-latin.woff2) format('woff2');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;}

/* ---------- tokens ---------- */
:root{
  --bg:#ffffff;
  --bg-alt:#f5f6f7;
  --bg-panel:#ffffff;
  --bg-panel-2:#f1f2f4;
  --line:#dcdfe3;
  --line-soft:#eceef1;
  --ink:#15171a;
  --ink-dim:#565a5f;
  --ink-faint:#80848a;
  --red:#d81f24;
  --red-ink:#b5161b;
  --amber:#b06a09;
  --ok:#1f7a3d;
  --maxw:1240px;
  --gutter:clamp(16px,5vw,64px);
  --header-h:76px;
  --f-display:'Archivo',system-ui,sans-serif;
  --f-body:'Inter',system-ui,sans-serif;
  --f-mono:'IBM Plex Mono',ui-monospace,monospace;
}

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--f-body); font-size:16px; line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:var(--f-display); margin:0; line-height:1.18; letter-spacing:-0.01em; text-wrap:balance;}
p{text-wrap:pretty;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; height:auto; display:block;}
.mono{font-family:var(--f-mono);}
:focus-visible{outline:2px solid var(--red); outline-offset:2px;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation:none !important; transition:none !important;}
}
.visually-hidden{position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;}
.skip-link{position:absolute; left:-9999px; top:8px; background:var(--red); color:#fff; padding:10px 16px; z-index:100; font-size:14px;}
.skip-link:focus{left:8px;}

/* ---------- layout ---------- */
.wrap{max-width:var(--maxw); margin:0 auto; padding-left:var(--gutter); padding-right:var(--gutter);}
section{position:relative;}
section[id]{scroll-margin-top:calc(var(--header-h) + 8px);}
.section-pad{padding:96px 0;}
.alt{background:var(--bg-alt);}
@media (max-width:760px){ .section-pad{padding:64px 0;} }

.grid-bg{
  background-color:var(--bg-alt);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size:64px 64px;
  background-position:center top;
}

/* dimension-line divider */
.dim-divider{display:flex; align-items:center; gap:10px; max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); color:var(--ink-faint);}
.dim-divider .tick{width:1px; height:9px; background:var(--line);}
.dim-divider .rule{flex:1; height:1px; background:var(--line);}
.dim-divider .label{font-family:var(--f-mono); font-size:11px; letter-spacing:.04em; white-space:nowrap; text-transform:uppercase;}

/* ---------- buttons & links ---------- */
.btn-primary{
  display:inline-block; background:var(--red); color:#fff; padding:14px 26px;
  font-weight:600; font-size:14.5px; border:1px solid var(--red);
  transition:background .15s, color .15s; cursor:pointer; font-family:var(--f-body);
}
.btn-primary:hover{background:transparent; color:var(--red);}
.btn-secondary{
  display:inline-block; padding:14px 22px; font-weight:600; font-size:14.5px;
  border:1px solid var(--line); background:var(--bg-panel); color:var(--ink);
}
.btn-secondary:hover{border-color:var(--red); color:var(--red);}
.detail-link,.service-link{
  display:inline-flex; align-items:center; gap:8px; width:fit-content;
  font-size:14px; font-weight:600; color:var(--red);
}
.detail-link .bar,.service-link .bar{width:14px; height:1px; background:var(--red); transition:width .15s;}
.detail-link:hover .bar,.service-link:hover .bar{width:22px;}
.section-more{margin-top:30px;}

/* =========================================================================
   Header & navigation (markup = wp_nav_menu: ul.nav-menu > li > ul.sub-menu)
   ========================================================================= */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.admin-bar .site-header{top:32px;}
@media (max-width:782px){ .admin-bar .site-header{top:0;} }
.site-nav{display:flex; align-items:center; justify-content:space-between; gap:24px; height:var(--header-h);}
.brand{display:flex; align-items:center; flex:0 0 auto;}
.brand img{height:34px; width:auto;}

.nav-menu{list-style:none; margin:0; padding:0; display:flex; align-items:center; gap:34px;}
.nav-menu li{position:relative; margin:0;}
.nav-menu > li > a{
  display:flex; align-items:center; height:var(--header-h);
  font-size:14px; font-weight:500; color:var(--ink-dim); position:relative;
}
.nav-menu > li > a:hover{color:var(--ink);}
.nav-menu > .current-menu-item > a,
.nav-menu > .current-menu-ancestor > a,
.nav-menu > .current-page-ancestor > a{color:var(--ink);}
.nav-menu > .current-menu-item > a::after,
.nav-menu > .current-menu-ancestor > a::after,
.nav-menu > .current-page-ancestor > a::after{
  content:""; position:absolute; left:0; right:0; bottom:22px; height:2px; background:var(--red);
}
.nav-menu > .menu-item-has-children > a::before{
  content:""; order:2; width:6px; height:6px; margin-left:8px;
  border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor;
  transform:translateY(-2px) rotate(45deg);
}
.nav-menu .sub-menu{
  display:none; position:absolute; top:calc(100% - 10px); left:-20px; min-width:280px; z-index:60;
  list-style:none; margin:0; padding:8px 0;
  background:var(--bg-panel); border:1px solid var(--line); border-top:2px solid var(--red);
  box-shadow:0 12px 30px rgba(21,23,26,.10);
}
.nav-menu .sub-menu a{display:block; padding:11px 20px; font-size:14px; color:var(--ink-dim);}
.nav-menu .sub-menu a:hover{background:var(--bg-panel-2); color:var(--ink);}
.nav-menu .sub-menu .current-menu-item > a{color:var(--red);}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu{display:block;}

.nav-right{display:flex; align-items:center; gap:18px;}
.lang-switch{display:flex; align-items:center; gap:2px; font-family:var(--f-mono); font-size:12px;}
.lang-switch a{padding:6px 8px; color:var(--ink-faint); border:1px solid transparent;}
.lang-switch a:hover{color:var(--ink);}
.lang-switch a[aria-current="true"]{color:var(--ink); border-color:var(--line); background:var(--bg-panel);}
.nav-cta{border:1px solid var(--line); padding:9px 18px; font-size:13px; font-weight:500; color:var(--ink); white-space:nowrap;}
.nav-cta:hover{border-color:var(--red); color:var(--red);}
.nav-toggle{
  display:none; background:transparent; color:var(--ink); cursor:pointer;
  font-family:var(--f-mono); font-size:12px; letter-spacing:.04em;
  border:1px solid var(--line); padding:8px 14px;
}

@media (max-width:960px){
  .nav-menu{gap:24px;}
}
@media (max-width:880px){
  .nav-toggle{display:block;}
  .nav-cta{display:none;}
  .primary-nav{display:none;}
  .site-header.open .primary-nav{
    display:block; position:absolute; top:var(--header-h); left:0; right:0;
    background:var(--bg); border-bottom:1px solid var(--line);
    padding:8px var(--gutter) 20px; max-height:calc(100vh - var(--header-h)); overflow:auto;
  }
  .site-header.open .nav-menu{flex-direction:column; align-items:stretch; gap:0;}
  .site-header.open .nav-menu > li > a{height:auto; padding:14px 0; font-size:16px; border-bottom:1px solid var(--line-soft);}
  .site-header.open .nav-menu > li > a::after,
  .site-header.open .nav-menu > li > a::before{display:none;}
  .site-header.open .nav-menu .sub-menu{
    display:block; position:static; min-width:0; border:0; box-shadow:none; background:transparent; padding:0 0 0 18px;
  }
  .site-header.open .nav-menu .sub-menu a{padding:12px 0; font-size:15px; border-bottom:1px solid var(--line-soft);}
}

/* =========================================================================
   Home hero
   ========================================================================= */
.hero{padding:88px 0 64px; overflow:hidden;}
.hero-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center;}
@media (max-width:900px){ .hero{padding:56px 0 48px;} .hero-grid{grid-template-columns:1fr; gap:24px;} }
.hero-eyebrow{display:flex; align-items:center; gap:8px; color:var(--ink-faint); font-size:12px; margin-bottom:22px;}
.hero-eyebrow .line{width:28px; height:1px; background:var(--red); flex:0 0 auto;}
.hero-title{font-size:clamp(2.3rem,5vw,3.6rem); font-weight:800; line-height:1.04; max-width:13ch;}
.hero-sub{color:var(--ink-dim); font-size:16.5px; max-width:48ch; margin:22px 0 0;}
.hero-actions{display:flex; align-items:center; flex-wrap:wrap; gap:16px 26px; margin-top:34px;}
.hero-phone{font-size:13px; color:var(--ink-faint);}
.hero-phone strong{color:var(--ink-dim); font-weight:500;}
.hero-readout{margin-top:44px; display:flex; gap:30px; flex-wrap:wrap;}
.readout-item{border-left:1px solid var(--line); padding-left:14px;}
.readout-item .num{font-family:var(--f-mono); font-size:22px; font-variant-numeric:tabular-nums;}
.readout-item .lbl{font-size:12px; color:var(--ink-faint); margin-top:2px; max-width:18ch;}

/* animated pick-and-place schematic */
.hero-visual{position:relative; aspect-ratio:1/1; max-width:460px; width:100%; margin:0 auto;}
.hero-visual svg{width:100%; height:100%;}
@media (max-width:900px){ .hero-visual{max-width:320px;} }
.carriage{animation:carriage-move 10s ease-in-out infinite;}
@keyframes carriage-move{
  0%,8%{transform:translate(0,0);} 20%,28%{transform:translate(0,120px);} 38%{transform:translate(0,0);}
  64%{transform:translate(200px,0);} 76%,84%{transform:translate(200px,120px);} 92%{transform:translate(200px,0);} 100%{transform:translate(0,0);}
}
.jaws{transform-origin:130px 200px; animation:jaws-anim 10s ease-in-out infinite;}
@keyframes jaws-anim{0%,18%{transform:scaleX(1);} 22%,74%{transform:scaleX(.35);} 78%,100%{transform:scaleX(1);}}
.held-box{animation:heldbox-anim 10s ease-in-out infinite;}
@keyframes heldbox-anim{0%,19%{opacity:0;} 21%,75%{opacity:1;} 77%,100%{opacity:0;}}
.source-box{animation:sourcebox-anim 10s ease-in-out infinite;}
@keyframes sourcebox-anim{0%,19%{opacity:1;} 21%,96%{opacity:0;} 99%,100%{opacity:1;}}
.dropped-box{animation:droppedbox-anim 10s ease-in-out infinite;}
@keyframes droppedbox-anim{0%,75%{opacity:0;} 77%,94%{opacity:1;} 97%,100%{opacity:0;}}

/* =========================================================================
   Section heads, cards, grids
   ========================================================================= */
.section-head{display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:end; margin-bottom:56px;}
@media (max-width:760px){ .section-head{grid-template-columns:1fr; gap:16px; margin-bottom:36px;} }
.section-num{font-family:var(--f-mono); color:var(--red); font-size:13px; margin-bottom:14px;}
.section-title{font-size:clamp(1.7rem,3vw,2.3rem); font-weight:700; max-width:18ch;}
.section-desc{color:var(--ink-dim); font-size:15.5px; max-width:44ch; margin:0;}

.services-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line);}
.services-grid.two{grid-template-columns:repeat(2,1fr);}
@media (max-width:820px){ .services-grid,.services-grid.two{grid-template-columns:1fr;} }
.service-card{background:var(--bg-panel); padding:38px 32px; display:flex; flex-direction:column; gap:18px; min-height:260px;}
@media (max-width:820px){ .service-card{min-height:0; padding:30px 24px;} }
.service-idx{font-family:var(--f-mono); font-size:12px; color:var(--ink-faint);}
.service-card h3{font-size:1.2rem; font-weight:600;}
.service-card p{color:var(--ink-dim); font-size:14.5px; flex:1; margin:0;}
.service-card .service-link{margin-top:auto;}

.mini-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line);}
@media (max-width:820px){ .mini-grid{grid-template-columns:1fr;} }
.mini-cell{background:var(--bg-panel); padding:26px; display:flex; align-items:center; gap:16px; min-height:88px; transition:background .15s;}
.mini-cell:hover{background:var(--bg-panel-2);}
.mini-cell .mono{font-size:12px; color:var(--red);}
.mini-cell .t{font-family:var(--f-display); font-weight:600; font-size:15.5px; flex:1;}
.mini-cell .arrow{color:var(--ink-faint); font-family:var(--f-mono);}
.mini-cell:hover .arrow{color:var(--red);}

/* ---------- TendCell product cards ---------- */
.tendcell-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
@media (max-width:1100px){ .tendcell-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .tendcell-grid{grid-template-columns:1fr;} }
.product-card{display:flex; flex-direction:column; background:var(--bg-panel); border:1px solid var(--line); transition:border-color .15s;}
a.product-card:hover{border-color:var(--red);}
.product-card.featured{border-color:var(--ink);}
.product-imgwrap{position:relative; background:var(--bg-panel); display:flex; align-items:center; justify-content:center; height:230px; padding:16px; border-bottom:1px solid var(--line);}
.product-imgwrap img{max-height:100%; width:auto; object-fit:contain;}
.product-badge{position:absolute; top:12px; left:12px; background:var(--red); color:#fff; font-family:var(--f-mono); font-size:10.5px; letter-spacing:.04em; padding:4px 8px; text-transform:uppercase;}
.product-meta{padding:18px 22px 0; display:flex; flex-direction:column; gap:4px;}
.product-meta .pname{font-family:var(--f-display); font-weight:700; font-size:17px; margin:0;}
.product-meta .pspec{font-family:var(--f-mono); font-size:11.5px; color:var(--ink-faint);}
.product-body{padding:10px 22px 22px; display:flex; flex-direction:column; flex:1;}
.product-body p{margin:0; color:var(--ink-dim); font-size:14px;}
.product-body .detail-link{margin-top:auto; padding-top:16px;}
.specs{margin:16px 0 0; padding:0;}
.specs div{display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-top:1px solid var(--line); font-size:13px;}
.specs dt{color:var(--ink-faint); font-family:var(--f-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.02em;}
.specs dd{margin:0; color:var(--ink); text-align:right;}
.models-lead{max-width:60ch;}

/* comparison table */
.table-scroll{overflow-x:auto; border:1px solid var(--line); background:var(--bg-panel); margin-top:40px;}
.compare{width:100%; border-collapse:collapse; font-size:14px; min-width:640px;}
.compare caption{text-align:left; padding:16px 20px; font-family:var(--f-mono); font-size:12px; color:var(--ink-faint); border-bottom:1px solid var(--line); caption-side:top;}
.compare th,.compare td{padding:12px 20px; text-align:left; border-bottom:1px solid var(--line-soft); vertical-align:top;}
.compare thead th{font-family:var(--f-display); font-size:15px; font-weight:700; background:var(--bg-panel-2); border-bottom:1px solid var(--line);}
.compare tbody th{font-family:var(--f-mono); font-size:11.5px; font-weight:400; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.02em; white-space:nowrap;}
.compare tbody tr:last-child th,.compare tbody tr:last-child td{border-bottom:0;}
.compare .yes{color:var(--ink);}
.compare .yes::before{content:"● "; color:var(--red); font-size:10px;}
.compare .no{color:var(--ink-faint);}

/* ---------- process / why us ---------- */
.why-layout{display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start;}
@media (max-width:860px){ .why-layout{grid-template-columns:1fr; gap:36px;} }
.why-layout h2{font-size:clamp(1.6rem,3vw,2.1rem); font-weight:700;}
.why-layout .lead{color:var(--ink-dim); margin:18px 0 0; font-size:15.5px; max-width:48ch;}
.check-list{list-style:none; margin:26px 0 0; padding:0;}
.check-list li{display:flex; gap:12px; padding:8px 0; font-size:14.5px;}
.check-list li::before{content:""; flex:0 0 14px; height:8px; margin-top:6px; border-left:2px solid var(--red); border-bottom:2px solid var(--red); transform:rotate(-45deg) scale(.8);}
.steps{list-style:none; margin:0; padding:0; counter-reset:step;}
.steps li{display:grid; grid-template-columns:48px 1fr; gap:4px 16px; padding:20px 0; border-top:1px solid var(--line);}
.steps li:last-child{border-bottom:1px solid var(--line);}
.steps .n{grid-row:1/3; font-family:var(--f-mono); font-size:13px; color:var(--red); padding-top:2px;}
.steps h3{font-size:16px; font-weight:600;}
.steps p{margin:0; color:var(--ink-dim); font-size:14px;}
.steps-label{font-family:var(--f-mono); font-size:12px; color:var(--ink-faint); margin-bottom:14px;}

/* ---------- CTA band ---------- */
.cta-band{
  padding:90px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  background:repeating-linear-gradient(135deg, var(--bg-panel-2) 0 2px, var(--bg-alt) 2px 14px);
}
@media (max-width:760px){ .cta-band{padding:64px 0;} }
.cta-inner{max-width:680px;}
.cta-band h2{font-size:clamp(1.8rem,4vw,2.6rem); font-weight:800; line-height:1.1;}
.cta-band p{color:var(--ink-dim); margin:18px 0 0; font-size:15.5px; max-width:52ch;}
.cta-actions{display:flex; flex-wrap:wrap; gap:14px; margin-top:30px;}

/* =========================================================================
   Sub-pages
   ========================================================================= */
.page-hero{padding:56px 0; border-bottom:1px solid var(--line);}
.crumbs{font-family:var(--f-mono); font-size:12px; color:var(--ink-faint); margin-bottom:26px; display:flex; flex-wrap:wrap; gap:8px;}
.crumbs a{color:var(--ink-dim);}
.crumbs a:hover{color:var(--red);}
.crumbs .sep{color:var(--line);}
.page-hero h1{font-size:clamp(2rem,4.2vw,3rem); font-weight:800; line-height:1.08; max-width:22ch;}
.page-hero .lead{color:var(--ink-dim); font-size:16.5px; max-width:64ch; margin:22px 0 0;}
.page-hero.has-fig .wrap{display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center;}
.page-hero.has-fig .hero-fig{margin:0;}
.page-hero.has-fig .hero-fig img{width:100%; max-height:400px; object-fit:cover; border:1px solid var(--line);}
@media (max-width:900px){ .page-hero.has-fig .wrap{grid-template-columns:1fr;} }
.jump{display:flex; flex-wrap:wrap; gap:10px; margin-top:32px; align-items:center;}
.jump .jump-label{font-family:var(--f-mono); font-size:12px; color:var(--ink-faint); margin-right:6px;}
.jump a{border:1px solid var(--line); background:var(--bg-panel); padding:7px 14px; font-size:13px; color:var(--ink-dim);}
.jump a:hover{border-color:var(--red); color:var(--red);}

.detail-sec{padding:72px 0; border-bottom:1px solid var(--line);}
@media (max-width:760px){ .detail-sec{padding:56px 0;} }
.detail{display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:start;}
.detail.no-img{grid-template-columns:minmax(0,820px);}
.detail.rev .detail-fig{order:-1;}
@media (max-width:900px){ .detail{grid-template-columns:1fr; gap:32px;} .detail.rev .detail-fig{order:0;} }
.detail h2{font-size:clamp(1.5rem,2.6vw,2rem); font-weight:700; max-width:24ch;}
.detail p{color:var(--ink-dim); margin:16px 0 0; max-width:60ch; font-size:15.5px;}
.points{list-style:none; margin:22px 0 0; padding:0; max-width:60ch;}
.points li{position:relative; padding:11px 0 11px 20px; border-top:1px solid var(--line); font-size:14.5px;}
.points li:last-child{border-bottom:1px solid var(--line);}
.points li::before{content:""; position:absolute; left:0; top:18px; width:8px; height:8px; background:var(--red);}
.detail-link{margin-top:22px;}
.detail-fig{position:relative; margin:0;}
.detail-fig img{width:100%; max-height:420px; object-fit:cover;}
.detail-fig.contain img{object-fit:contain; background:var(--bg-panel); border:1px solid var(--line); padding:16px;}
.detail-fig figcaption{font-family:var(--f-mono); font-size:11.5px; color:var(--ink-faint); margin-top:10px;}
.fig-stack{display:grid; grid-template-columns:1.3fr .7fr; gap:12px;}
.fig-stack .main-img{grid-row:1/3;}
.fig-stack img{width:100%; height:100%; object-fit:cover; min-height:120px;}
.fig-stack .main-img img{min-height:300px;}
@media (max-width:560px){ .fig-stack .main-img img{min-height:220px;} }

.lifecycle-sec{padding:72px 0; border-bottom:1px solid var(--line);}
.lifecycle{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line);}
@media (max-width:820px){ .lifecycle{grid-template-columns:repeat(2,1fr);} }
@media (max-width:480px){ .lifecycle{grid-template-columns:1fr;} }
.life-step{background:var(--bg-panel); padding:30px 24px;}
.life-step .life-img{width:56px; height:56px; object-fit:cover; margin-bottom:18px; border:1px solid var(--line); background:var(--bg-panel-2);}
.life-step .life-num{font-family:var(--f-mono); font-size:11px; color:var(--ink-faint); margin-bottom:10px;}
.life-step h3,.life-step h4{font-family:var(--f-display); font-size:15px; font-weight:600;}
.life-step p{color:var(--ink-dim); font-size:13.5px; margin:10px 0 0;}

.custom-note{padding:56px 0; border-bottom:1px solid var(--line);}
.custom-note p{color:var(--ink-dim); max-width:62ch; font-size:15.5px; margin:0;}
.custom-note .cta-actions{margin-top:22px;}

/* plain text pages (privacy policy etc.) */
.prose{max-width:760px; padding:56px 0 80px;}
.prose h2{font-size:1.35rem; font-weight:700; margin:40px 0 12px;}
.prose h3{font-size:1.05rem; font-weight:600; margin:28px 0 8px;}
.prose p,.prose li{color:var(--ink-dim); font-size:15.5px;}
.prose a{color:var(--red); text-decoration:underline; text-underline-offset:2px;}
.prose ul{padding-left:20px;}

/* =========================================================================
   Contact section (rendered by the theme on every page)
   ========================================================================= */
#contact{background:var(--bg-alt); border-top:1px solid var(--line);}
.contact-grid{display:grid; grid-template-columns:.85fr 1.15fr; gap:60px;}
@media (max-width:900px){ .contact-grid{grid-template-columns:1fr; gap:40px;} }
.contact-info h2{font-size:clamp(1.6rem,3vw,2.1rem); font-weight:700; max-width:14ch;}
.contact-info p{color:var(--ink-dim); margin:16px 0 0; font-size:15px; max-width:40ch;}
.contact-detail{margin-top:32px; display:flex; flex-direction:column; gap:10px;}
.contact-detail a{font-family:var(--f-mono); font-size:14px; width:fit-content;}
.contact-detail a:hover{color:var(--red);}
.contact-address{margin-top:24px; font-style:normal; font-size:13.5px; color:var(--ink-faint); line-height:1.7;}

.contact-form{display:grid; grid-template-columns:1fr 1fr; gap:18px 24px;}
.contact-form .full{grid-column:1/-1;}
@media (max-width:560px){ .contact-form{grid-template-columns:1fr;} }
.field label{display:block; font-size:12px; color:var(--ink-faint); margin-bottom:8px; font-family:var(--f-mono);}
.field label .opt{color:var(--line);}
.field input,.field textarea{
  width:100%; background:transparent; border:none; border-bottom:1px solid var(--line); border-radius:0;
  color:var(--ink); padding:10px 2px; font-family:var(--f-body); font-size:15px;
}
.field input:focus,.field textarea:focus{outline:none; border-color:var(--red);}
.field textarea{resize:vertical; min-height:110px;}
.field-consent{display:flex; gap:10px; align-items:flex-start; font-size:13px; color:var(--ink-dim);}
.field-consent input{margin:3px 0 0; accent-color:var(--red); width:16px; height:16px; flex:0 0 auto;}
.field-consent a{color:var(--ink); text-decoration:underline; text-underline-offset:2px;}
.hp-field{position:absolute !important; left:-9999px; width:1px; height:1px; overflow:hidden;}
.form-actions{display:flex; align-items:center; flex-wrap:wrap; gap:14px 22px;}
.form-note{font-size:12.5px; color:var(--ink-faint); margin:0;}
.form-msg{padding:14px 16px; font-size:14px; border:1px solid var(--line); background:var(--bg-panel); border-left:3px solid var(--ok);}
.form-msg.error{border-left-color:var(--red);}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer{border-top:1px solid var(--line); padding:56px 0 30px;}
.footer-top{display:grid; grid-template-columns:1fr 1.2fr 1fr; gap:40px; padding-bottom:36px; border-bottom:1px solid var(--line);}
@media (max-width:900px){ .footer-top{grid-template-columns:1fr; gap:28px;} }
.footer-brand img{height:30px; width:auto;}
.footer-brand p{color:var(--ink-faint); font-size:13px; margin:14px 0 0; max-width:34ch;}
.footer-menu,.footer-menu .sub-menu{list-style:none; margin:0; padding:0;}
.footer-menu{display:flex; flex-direction:column; gap:8px; font-size:13.5px;}
.footer-menu .sub-menu{display:flex; flex-direction:column; gap:6px; margin:8px 0 2px 14px; font-size:13px;}
.footer-menu a{color:var(--ink-dim);}
.footer-menu a:hover{color:var(--red);}
.footer-address{color:var(--ink-dim); font-size:13.5px; line-height:1.7; font-style:normal;}
.footer-address a:hover{color:var(--red);}
.footer-bottom{display:flex; justify-content:space-between; padding-top:24px; color:var(--ink-faint); font-size:12.5px; flex-wrap:wrap; gap:10px 24px;}
.footer-bottom nav{display:flex; gap:18px; flex-wrap:wrap;}
.footer-bottom a:hover{color:var(--red);}

/* =========================================================================
   Wide media band and video
   A .media figure shows its image. With data-video (MP4 URL) or data-youtube
   (video ID), main.js turns it into a player with a play button.
   ========================================================================= */
.media-band{padding:0 0 72px;}
.media-band.flush{padding-top:56px;}
.media{position:relative; margin:0; background:var(--bg-panel); border:1px solid var(--line); overflow:hidden;}
.media img,.media video,.media iframe{display:block; width:100%; height:auto; aspect-ratio:var(--ratio, 16/9); object-fit:cover; border:0;}
.media.contain img{object-fit:contain;}
.media figcaption{
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding:12px 16px; border-top:1px solid var(--line); background:var(--bg-panel);
  font-family:var(--f-mono); font-size:11.5px; color:var(--ink-faint);
}
.media .play{
  position:absolute; left:50%; top:calc(50% - 22px); transform:translate(-50%,-50%);
  display:none; align-items:center; gap:12px; cursor:pointer;
  background:var(--red); color:#fff; border:0; padding:16px 24px 16px 20px;
  font:600 14.5px var(--f-body); box-shadow:0 10px 30px rgba(21,23,26,.25);
}
.media .play::before{content:""; width:0; height:0; border-style:solid; border-width:8px 0 8px 13px; border-color:transparent transparent transparent #fff;}
.media .play:hover{background:var(--red-ink);}
.media.has-video .play{display:inline-flex;}
.media.has-video img{cursor:pointer;}
.media.playing .play{display:none;}

.split-media{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
@media (max-width:760px){ .split-media{grid-template-columns:1fr;} }

/* robot types */
.robot-types{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); margin-top:8px;}
@media (max-width:820px){ .robot-types{grid-template-columns:1fr;} }
.robot-type{background:var(--bg-panel); padding:24px; display:flex; flex-direction:column; gap:10px;}
.robot-type img{height:200px; width:100%; object-fit:contain; margin-bottom:8px;}
.robot-type h3{font-size:16px; font-weight:600;}
.robot-type p{margin:0; color:var(--ink-dim); font-size:14px;}

/* ---------- sub-page hero with a background image ----------
   <section class="page-hero has-bg" style="--hero-img:url(…)">  Dark on the left for the text,
   image visible on the right. */
.page-hero.has-bg{
  position:relative; color:#fff; border-bottom:0; padding:88px 0 80px;
  background:#2b2f35 var(--hero-img) right center / cover no-repeat;
}
.page-hero.has-bg::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(21,23,26,.88) 0%, rgba(21,23,26,.72) 42%, rgba(21,23,26,.18) 78%, rgba(21,23,26,.05) 100%);
}
.page-hero.has-bg .wrap{position:relative;}
.page-hero.has-bg h1{color:#fff;}
.page-hero.has-bg .lead{color:rgba(255,255,255,.86);}
.page-hero.has-bg .crumbs,.page-hero.has-bg .jump .jump-label{color:rgba(255,255,255,.6);}
.page-hero.has-bg .crumbs a{color:rgba(255,255,255,.85);}
.page-hero.has-bg .crumbs a:hover{color:#fff;}
.page-hero.has-bg .crumbs .sep{color:rgba(255,255,255,.35);}
.page-hero.has-bg .jump a{background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.3); color:#fff;}
.page-hero.has-bg .jump a:hover{background:#fff; border-color:#fff; color:var(--ink);}
@media (max-width:760px){
  .page-hero.has-bg{padding:56px 0; background-position:70% center;}
  .page-hero.has-bg::before{background:rgba(21,23,26,.78);}
}

/* ---------- machine-tending cycle (TendCell "how it works") ----------
   Four nodes on a circle light up in turn (2 s each); the robot ⇄ CNC link in the
   centre animates continuously. The legend list is highlighted in sync. */
.cycle{display:grid; grid-template-columns:200px 1fr; gap:28px; align-items:center; margin-top:28px; max-width:60ch;}
@media (max-width:480px){ .cycle{grid-template-columns:1fr; justify-items:center;} .cycle svg{max-width:200px;} }
.cycle svg{width:100%; height:auto; display:block;}
.cy-track{fill:none; stroke:var(--line); stroke-width:1.5;}
.cy-arrow{fill:var(--line);}
.cy-node circle{fill:var(--bg-panel); stroke:var(--line); stroke-width:1.5; animation:cy-node 8s infinite;}
.cy-node text{fill:var(--ink-dim); font:600 13px var(--f-mono); text-anchor:middle; dominant-baseline:central; animation:cy-text 8s infinite;}
.cy-n2 circle,.cy-n2 text{animation-delay:2s;}
.cy-n3 circle,.cy-n3 text{animation-delay:4s;}
.cy-n4 circle,.cy-n4 text{animation-delay:6s;}
@keyframes cy-node{0%{fill:var(--red); stroke:var(--red);} 24%{fill:var(--red); stroke:var(--red);} 25%,100%{fill:var(--bg-panel); stroke:var(--line);}}
@keyframes cy-text{0%,24%{fill:#fff;} 25%,100%{fill:var(--ink-dim);}}
.cy-com-label{fill:var(--ink-faint); font:500 9px var(--f-mono); text-anchor:middle; letter-spacing:.04em;}
.cy-com-line{stroke:var(--ok); stroke-width:1.5; stroke-dasharray:3 4; animation:cy-dash .8s linear infinite;}
.cy-com-dot{fill:var(--ok); animation:cy-pulse 1.6s ease-in-out infinite;}
@keyframes cy-dash{to{stroke-dashoffset:-7;}}
@keyframes cy-pulse{0%,100%{opacity:1;} 50%{opacity:.25;}}

.cycle-steps{list-style:none; margin:0; padding:0;}
.cycle-steps li{display:flex; align-items:center; gap:12px; padding:9px 10px; font-size:14px; line-height:1.35; border-left:2px solid transparent; animation:cy-li 8s infinite;}
.cycle-steps li .n{flex:0 0 24px; height:24px; display:grid; place-items:center; border:1px solid var(--line); font:600 11.5px var(--f-mono); color:var(--ink-dim); animation:cy-badge 8s infinite;}
.cycle-steps li:nth-child(2),.cycle-steps li:nth-child(2) .n{animation-delay:2s;}
.cycle-steps li:nth-child(3),.cycle-steps li:nth-child(3) .n{animation-delay:4s;}
.cycle-steps li:nth-child(4),.cycle-steps li:nth-child(4) .n{animation-delay:6s;}
@keyframes cy-li{0%,24%{background:var(--bg-panel-2); border-left-color:var(--red);} 25%,100%{background:transparent; border-left-color:transparent;}}
@keyframes cy-badge{0%,24%{background:var(--red); border-color:var(--red); color:#fff;} 25%,100%{background:transparent; border-color:var(--line); color:var(--ink-dim);}}
.cycle-steps li.com{animation:none; margin-top:6px; border-top:1px solid var(--line); padding-top:12px; color:var(--ink-dim); font-size:13.5px;}
.cycle-steps li.com .n{animation:none; border:0;}
.cycle-steps li.com .n::before{content:""; width:9px; height:9px; border-radius:50%; background:var(--ok); animation:cy-pulse 1.6s ease-in-out infinite;}
/* cycle as the right-hand column of a .detail section */
.cycle-detail{align-items:center;}
.cycle.cycle-lg{margin-top:0; max-width:none; grid-template-columns:170px 1fr; gap:20px; padding:24px; background:var(--bg-panel); border:1px solid var(--line);}
@media (max-width:560px){ .cycle.cycle-lg{grid-template-columns:1fr; justify-items:center; padding:20px;} .cycle.cycle-lg svg{max-width:220px;} }
/* two text blocks side by side in one section */
.detail.pair{grid-template-columns:1fr 1fr; gap:56px;}
.detail.pair .detail-text[id]{scroll-margin-top:calc(var(--header-h) + 24px);}
@media (max-width:900px){ .detail.pair{grid-template-columns:1fr; gap:48px;} }

/* ---------- hero with a background video ----------
   <section class="page-hero has-bg has-bgvideo" data-youtube="ID" | data-video="clip.mp4">
     <div class="hero-bgvideo" aria-hidden="true"></div> …
   --hero-img is the poster: shown until the video runs, and instead of it on phones,
   with reduced motion or with data saver. */
.page-hero.has-bgvideo{overflow:hidden;}
.hero-bgvideo{position:absolute; inset:0; overflow:hidden; pointer-events:none;}
.hero-bgvideo iframe,.hero-bgvideo video{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  border:0; opacity:0; transition:opacity .8s ease;
}
.hero-bgvideo video{width:100%; height:100%; object-fit:cover;}
.hero-bgvideo.on iframe,.hero-bgvideo.on video{opacity:1;}
.page-hero.has-bg::before{z-index:1;}
.page-hero.has-bg .wrap{z-index:2;}

/* ---------- home: one dark image section (TendCell) ----------
   <section class="section-pad section-dark" style="--sec-img:url(…)">  Cards stay white on top. */
.section-dark{
  position:relative; color:#fff;
  background:#23272d var(--sec-img) center / cover no-repeat;
}
.section-dark::before{content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(21,23,26,.86) 0%, rgba(21,23,26,.74) 45%, rgba(21,23,26,.82) 100%);}
.section-dark > .wrap{position:relative;}
.section-dark .section-desc{color:rgba(255,255,255,.82);}
.section-dark .product-card{color:var(--ink); border-color:transparent; box-shadow:0 12px 32px rgba(0,0,0,.28);}
.section-dark a.product-card:hover{border-color:var(--red);}
.section-dark .product-card.featured{border-color:var(--red);}
.section-dark .section-more .detail-link{color:#fff;}
.section-dark .section-more .detail-link .bar{background:#fff;}

/* ---------- cards with a picture on top (home) ---------- */
.service-card.has-img{padding-top:0; overflow:hidden;}
.service-card.has-img .card-img{display:block; width:calc(100% + 64px); max-width:none; margin:0 -32px 6px; height:190px; object-fit:cover; border-bottom:1px solid var(--line);}
@media (max-width:820px){ .service-card.has-img .card-img{width:calc(100% + 48px); margin:0 -24px 6px;} }

.mini-grid.with-img .mini-cell{flex-direction:column; align-items:stretch; padding:0; gap:0;}
.mini-grid.with-img .mini-cell img{width:100%; height:170px; object-fit:cover; border-bottom:1px solid var(--line);}
.mini-grid.with-img .mini-cell img.contain{object-fit:contain; padding:14px; background:var(--bg-panel);}
.mini-grid.with-img .mini-row{display:flex; align-items:center; gap:16px; padding:20px 24px;}

/* ---------- cookie consent banner ---------- */
.consent{position:fixed; left:0; right:0; bottom:0; z-index:90; padding:0 var(--gutter) 16px; pointer-events:none;}
.consent[hidden]{display:none;}
.consent-inner{
  pointer-events:auto; max-width:var(--maxw); margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:16px 32px; flex-wrap:wrap;
  background:var(--bg-panel); border:1px solid var(--line); border-top:2px solid var(--red);
  padding:16px 20px; box-shadow:0 12px 40px rgba(21,23,26,.18);
}
.consent-text{margin:0; font-size:14px; color:var(--ink-dim); max-width:80ch;}
.consent-text strong{color:var(--ink); font-weight:600;}
.consent-text a{color:var(--ink); text-decoration:underline; text-underline-offset:2px;}
.consent-actions{display:flex; gap:10px; flex-wrap:wrap;}
/* Both choices equally prominent. */
.consent-btn{
  min-width:120px; padding:11px 20px; cursor:pointer;
  font:600 14px var(--f-body); background:var(--ink); color:#fff; border:1px solid var(--ink);
}
.consent-btn:hover{background:var(--red); border-color:var(--red);}
