/* Orival Company page - loaded after orival-home.css (shared design tokens,
   buttons, footer, navbar). Everything stays under #hp. */

/* ---------- Scroll reveal: elements appear / slide / wipe in. No flips. ---------- */
#hp.js [data-reveal]{opacity:0;transition:opacity .8s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
#hp.js [data-reveal="up"]{transform:translateY(32px)}
#hp.js [data-reveal="left"]{transform:translateX(-56px)}
#hp.js [data-reveal="right"]{transform:translateX(56px)}
#hp.js [data-reveal="wipe"]{opacity:1}
#hp.js [data-reveal="wipe"] img{clip-path:inset(0 100% 0 0);transition:clip-path 1.2s cubic-bezier(.65,0,.2,1)}
#hp.js [data-reveal].in{opacity:1;transform:none}
#hp.js [data-reveal="wipe"].in img{clip-path:inset(0 0 0 0)}

/* ---------- About: copy + camera-motion photo loop ---------- */
#hp .co-about{align-items:center}
#hp .co-about-copy{grid-column:1/span 5}
#hp .co-about-copy p+p{margin-top:var(--sp-l)}
#hp .co-about-copy p{color:var(--g700)}
#hp .co-loop-wrap{grid-column:7/span 6}
#hp .co-loop{position:relative;aspect-ratio:3/2;overflow:hidden;border-radius:var(--r-m);background:var(--g200);box-shadow:var(--e2);isolation:isolate}
#hp .co-loop img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;visibility:hidden;transform-origin:50% 50%;will-change:transform,opacity}
#hp .co-loop img:first-child{opacity:1;visibility:visible}
#hp .co-loop-ui{display:flex;align-items:center;gap:var(--sp-m);margin-top:var(--sp-m)}
#hp .co-dots{display:flex;gap:8px;flex:1}
#hp .co-dots i{display:block;flex:1;max-width:72px;height:4px;border-radius:2px;background:var(--g300);overflow:hidden}
#hp .co-dots i b{display:block;height:100%;width:0;background:var(--red)}
#hp .co-pause{width:36px;height:36px;margin-left:auto;border-radius:var(--r-pill);border:1px solid var(--g300);background:var(--white);color:var(--g900);cursor:pointer;display:grid;place-items:center;flex:none}
#hp .co-pause:hover{background:var(--black);color:var(--white);border-color:var(--black)}
#hp .co-pause svg{width:16px;height:16px;fill:currentColor}
@media (max-width:1023px){#hp .co-about-copy,#hp .co-loop-wrap{grid-column:1/-1}}

/* ---------- Over Four Decades (red) ---------- */
#hp .co-decades{background:var(--red);color:var(--white)}
#hp .co-decades .co-dec-copy{grid-column:1/span 6}
#hp .co-decades h2{color:var(--white)}
#hp .co-decades p{margin-top:var(--sp-l);color:var(--white)}
#hp .co-decades a.co-inline{color:var(--white);font-weight:700;border-bottom:2px solid var(--white)}
#hp .co-decades .co-actions{margin-top:var(--sp-xl)}
#hp .co-btn-white{background:var(--white);color:var(--red)}
#hp .co-btn-white:hover{background:var(--g100);color:#a70102;transform:translateY(-2px);box-shadow:var(--e2)}
#hp .co-decades :focus-visible{outline-color:var(--white)}
#hp .co-dec-photo{grid-column:8/span 5;align-self:center;margin:0}
#hp .co-dec-photo img{display:block;width:100%;height:auto;border-radius:var(--r-m);box-shadow:var(--e3)}
@media (max-width:1023px){#hp .co-decades .co-dec-copy,#hp .co-dec-photo{grid-column:1/-1}}

/* ---------- Reliability & Maintenance Efficiency ---------- */
#hp .co-rel{background:var(--g100)}
#hp .co-rel-copy{max-width:none}
#hp .co-rel-copy p{margin-top:var(--sp-l);color:var(--g700)}
#hp .co-rel-photos{display:grid;grid-template-columns:16fr 9fr;gap:var(--gutter);margin-top:var(--sp-2xl)}
#hp .co-rel-photos figure{margin:0;overflow:hidden;border-radius:var(--r-m);box-shadow:var(--e2);background:var(--g200)}
#hp .co-rel-photos figure:first-child{aspect-ratio:4/3}
#hp .co-rel-photos img{display:block;width:100%;height:100%;object-fit:cover}
@media (max-width:767px){#hp .co-rel-photos{grid-template-columns:1fr}#hp .co-rel-photos figure:last-child{aspect-ratio:3/4}}

/* ---------- Partner + contact ---------- */
#hp .co-partner{background:var(--white)}
#hp .co-par-title{grid-column:1/span 7;grid-row:1}
#hp .co-par-copy{grid-column:1/span 7;grid-row:2}
#hp .co-par-copy p:first-child{margin-top:0}
#hp .co-par-copy p{margin-top:var(--sp-l);color:var(--g700)}
#hp .co-par-copy .co-actions{margin-top:var(--sp-xl)}
/* the ORIVAL, Inc. box: narrower and at the right edge, more room for the text (Inbar, 30 Nov) */
#hp .co-contact{grid-column:9/span 4;grid-row:2;align-self:start;background:var(--g100);border:var(--b-subtle);border-radius:var(--r-m);padding:var(--sp-xl);font-style:normal;line-height:1.8;color:var(--g700)}
#hp .co-contact strong{display:block;font-size:20px;color:var(--black);margin-bottom:var(--sp-s)}
#hp .co-contact a{color:var(--red);font-weight:600}
#hp .co-contact a:hover{color:#a70102;text-decoration:underline}
#hp .co-contact .li-link{display:inline-flex;align-items:center;gap:var(--sp-s);margin-top:var(--sp-s)}
#hp .co-contact .li-link svg{flex:none}
@media (max-width:1023px){#hp .co-par-title,#hp .co-par-copy,#hp .co-contact{grid-column:1/-1;grid-row:auto}}

@media (prefers-reduced-motion:reduce){
  #hp.js [data-reveal],#hp.js [data-reveal] img{transition:none!important;transform:none!important;opacity:1!important;clip-path:none!important}
}
