/* Section entrances repeat on re-entry; content remains visible without JavaScript. */
.motion-ready [data-reveal] {
  --reveal-delay: 0ms;
  transition: opacity .72s ease var(--reveal-delay), transform .85s cubic-bezier(.2,.75,.2,1) var(--reveal-delay), filter .8s ease var(--reveal-delay), clip-path .95s cubic-bezier(.2,.75,.2,1) var(--reveal-delay);
}
.motion-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translate3d(0,30px,0); filter: blur(3px); }
.motion-ready [data-reveal="slide"]:not(.is-visible) { transform: translate3d(-22px,12px,0); filter: blur(0); }
.motion-ready [data-reveal="fade"]:not(.is-visible) { transform: none; filter: none; }
.motion-ready [data-reveal="image"] { clip-path: inset(0); }
.motion-ready [data-reveal="image"]:not(.is-visible) { transform: none; filter: none; clip-path: inset(0 12% 0 0); }
.motion-ready .hero h1[data-reveal] { clip-path: inset(0); }
.motion-ready .hero h1[data-reveal]:not(.is-visible) { clip-path: inset(0 0 100% 0); transform: translate3d(0,22px,0); }
.motion-ready .hero-content [data-reveal].is-visible { animation: hero-arrive .85s cubic-bezier(.2,.75,.2,1) var(--reveal-delay) both; }
@keyframes hero-arrive { from { opacity: 0; transform: translate3d(0,24px,0); clip-path: inset(0 0 70% 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
.motion-ready .is-visible .gold-line { animation: line-unfold .9s cubic-bezier(.2,.75,.2,1) both; transform-origin: left; }
@keyframes line-unfold { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Continuous motion follows the scroll position rather than elapsed time. */
.motion-ready .hero-image, .motion-ready .approach-image img { transform: translate3d(0,var(--image-shift,0px),0) scale(1.1); }
.motion-ready .hero-image { transform-origin: 68% 60%; }
.motion-ready .approach-image img { transform-origin: 70% 50%; }
.route-progress { stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion-ready .route-progress { stroke-dashoffset: calc(1 - var(--route-progress,0)); }
.route-drawing .route-cargo { fill: var(--gold); stroke: #fff; stroke-width: 2; }
.route-destination::before { content: ''; position: absolute; width: 8px; height: 8px; border: 1px solid var(--gold); border-radius: 50%; left: -16px; top: 1px; }
.contact { background-image: radial-gradient(ellipse at var(--contact-glow,60%) 100%,#31516b45,transparent 65%); }

/* Remove decorative numbering and rebalance the service and principle rows. */
.service-content { padding-left: 65px; }
.service summary { position: relative; isolation: isolate; }
.service summary::before { content: ''; position: absolute; inset: 0 -15px; background: linear-gradient(90deg,#c99a4310,transparent); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.75,.2,1); z-index: -1; }
.service summary h3 { transition: transform .35s ease, color .35s ease; }
.service-icon { transition: transform .45s cubic-bezier(.2,.75,.2,1), color .3s; }
.service summary:hover::before, .service summary:focus-visible::before { transform: scaleX(1); }
.service summary:hover h3, .service summary:focus-visible h3 { transform: translateX(5px); color: #9e752d; }
.service summary:hover .service-icon { transform: translateY(-3px) rotate(-5deg); }
.service summary:hover .expand-icon { transform: rotate(90deg); }
.expand-icon { transition: transform .4s ease; }
.approach-principles > div::before { content: ''; width: 5px; height: 5px; flex: 0 0 5px; border: 1px solid var(--gold-light); transform: rotate(45deg); transition: background .3s, transform .4s; }
.approach-principles h3 { transition: transform .35s; }
.approach-principles > div:hover h3 { transform: translateX(5px); }
.approach-principles > div:hover::before { background: var(--gold-light); transform: rotate(135deg); }

/* Process icons sit on a line that fills as the visitor reaches the section. */
.process-steps { position: relative; isolation: isolate; }
.process-steps::before, .process-steps::after { content: ''; position: absolute; left: 0; right: 0; top: 28px; height: 1px; z-index: -1; }
.process-steps::before { background: #d6d9d5; }
.process-steps::after { background: var(--gold); transform: scaleX(1); transform-origin: left; }
.motion-ready .process-steps::after { transform: scaleX(var(--process-progress,0)); }
.step-top { width: 58px; height: 58px; border: 1px solid #d2d5ce; background: var(--warm); border-radius: 50%; display: grid; place-items: center; margin-bottom: 32px; transition: background .45s, border-color .45s, transform .45s; }
.step-top .icon { width: 27px; height: 27px; }
.process-steps li.is-active .step-top { background: #eddfbf; border-color: var(--gold); }
.process-steps li:hover .step-top { transform: translateY(-5px) rotate(-7deg); background: var(--gold-light); border-color: var(--gold); }
.process-steps li h3 { transition: color .3s; }
.process-steps li:hover h3 { color: #9e752d; }

/* Gold buttons use a directional ink sweep and a pointer-following highlight. */
.button { position: relative; isolation: isolate; overflow: hidden; gap: 22px; transition: color .35s ease, box-shadow .35s ease, transform .35s cubic-bezier(.2,.75,.2,1); }
.button::before { content: ''; position: absolute; inset: -1px; background: var(--navy); transform: translate3d(-102%,0,0); transition: transform .45s cubic-bezier(.2,.75,.2,1); z-index: -2; }
.button::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--pointer-x,50%) var(--pointer-y,50%),#ffffff26,transparent 65%); opacity: 0; transition: opacity .4s; z-index: -1; pointer-events: none; }
.button:hover, .button:focus-visible { color: #fff; background: var(--gold-light); box-shadow: 0 7px 20px #0d20341a; transform: translateY(-2px); }
.button:hover::before, .button:focus-visible::before { transform: translate3d(0,0,0); }
.button:hover::after, .button:focus-visible::after { opacity: 1; }
.button .icon { width: 22px; height: 22px; transition: transform .4s cubic-bezier(.2,.75,.2,1); }
.button:hover .icon, .button:focus-visible .icon { transform: translateX(3px) rotate(-6deg); }
.button:active { transform: translateY(0); box-shadow: none; }
.contact .button::before { background: #fff; }
.contact .button:hover, .contact .button:focus-visible { color: var(--navy); }
.text-link { position: relative; border-bottom-color: #c99a4355; transition: color .3s; }
.text-link::after { content: ''; position: absolute; height: 1px; background: var(--gold); left: 0; right: 0; bottom: -1px; transform: scaleX(.18); transform-origin: left; transition: transform .4s cubic-bezier(.2,.75,.2,1); }
.text-link:hover::after, .text-link:focus-visible::after { transform: scaleX(1); }
.text-link .icon, .header-quote .icon, .hero-bottom .icon, .back-top .icon, .service-content a .icon { transition: transform .35s ease; }
.text-link:hover .icon, .header-quote:hover .icon, .hero-bottom a:hover .icon, .back-top:hover .icon, .service-content a:hover .icon { transform: translateY(-3px) rotate(-8deg); }
.header-quote { transition: color .3s; }
.header-quote:hover { color: #9e752d; }
.language-switch :is(button,a) { transition: color .25s; }
.language-switch :is(button,a):hover { color: #9e752d; }
.dialog-close { transition: transform .3s, background .3s; }
.dialog-close:hover { transform: rotate(90deg); background: #e9e1d2; }
dialog[open] { animation: dialog-enter .3s cubic-bezier(.2,.75,.2,1) both; }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(15px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width:1180px) { .service-content { padding-left: 58px; } }
@media (max-width:940px) { .process-steps::before, .process-steps::after { display: none; } }
@media (max-width:650px) {
  .service-content { padding-left: 44px; }
  .motion-ready [data-reveal]:not(.is-visible) { transform: translate3d(0,20px,0); filter: none; }
  .motion-ready [data-reveal="image"]:not(.is-visible) { transform: none; }
  .motion-ready .hero-image, .motion-ready .approach-image img { transform: translate3d(0,calc(var(--image-shift,0px) * .45),0) scale(1.06); }
  .step-top { width: 50px; height: 50px; margin-bottom: 22px; }
  .button { gap: 20px; }
  .service summary::before { inset-inline: -8px; }
}
@media (hover:none) {
  .button:hover, .button:focus-visible { box-shadow: none; }
  .service summary:hover h3, .service summary:hover .service-icon, .service summary:hover .expand-icon { transform: none; }
}
@media (prefers-reduced-motion:reduce) {
  [data-reveal], .motion-ready [data-reveal]:not(.is-visible) { opacity: 1!important; transform: none!important; filter: none!important; clip-path: none!important; }
  .motion-ready .hero-image, .motion-ready .approach-image img { transform: none; }
  .route-progress { stroke-dashoffset: 0!important; }
  .route-cargo { display: none; }
  .button:hover, .button:focus-visible, .button:hover .icon, .text-link:hover .icon, .header-quote:hover .icon, .hero-bottom a:hover .icon, .back-top:hover .icon, .service-content a:hover .icon, .service summary:hover h3, .service summary:hover .service-icon, .service summary:hover .expand-icon, .approach-principles > div:hover h3, .process-steps li:hover .step-top, .dialog-close:hover { transform: none; }
  .process-steps::after { transform: scaleX(1)!important; }
}
