.home-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-media { position: relative; isolation: isolate; }
.hero-media .port-dusk { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .62s ease; pointer-events: none; }
.hero-media[data-port-scene="dusk"] .port-dusk { opacity: 1; }
.port-controls {
  position: absolute;
  right: clamp(12px, 2.3vw, 30px);
  top: clamp(12px, 2.3vw, 30px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  isolation: isolate;
  padding: 4px;
  border: 1px solid #ffffffb9;
  border-radius: 999px;
  background: #eff5ffac;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px #12223929;
}
.port-controls::before {
  position: absolute;
  z-index: -1;
  inset: 4px auto 4px 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 999px;
  background: #fff;
  transition: transform .3s cubic-bezier(.2,.7,.25,1);
  content: "";
}
[data-port-scene="dusk"] .port-controls::before { transform: translateX(100%); }
.port-controls button, .journey-segments button { border: 0; background: transparent; color: var(--ink); font-weight: 600; }
.port-controls button { min-height: 40px; padding: 0 12px; border-radius: 999px; font-size: .875rem; white-space: nowrap; }
.port-controls button[aria-pressed="true"] { color: #004d99; }
.port-controls[aria-busy="true"] [data-scene="dusk"] { cursor: wait; }
.port-error { position: absolute; right: 18px; top: clamp(66px, 8vw, 84px); margin: 0; padding: 7px 12px; border-radius: 9px; background: #fff; color: var(--ink); font-size: .9rem; }

.order-story { margin-bottom: clamp(33px, 5vw, 64px); }
.order-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(340px, 35vw, 455px);
  border-radius: 23px;
  background: #dce8f5;
  --order-progress: .42;
}
.order-scenes { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 3px; }
.order-shot { position: relative; isolation: isolate; overflow: hidden; min-width: 0; background: #31577b; }
.order-shot img {
  position: absolute;
  inset: -55px 0 auto;
  width: 100%;
  height: calc(100% + 110px);
  object-fit: cover;
  object-position: 50% 54%;
  transform: translateY(var(--order-shot-shift, 0px));
}
.order-shot-seller img { --order-shot-shift: var(--order-seller-shift, 0px); }
.order-shot-warehouse img { --order-shot-shift: var(--order-warehouse-shift, 0px); }
.order-shot-air img { --order-shot-shift: var(--order-air-shift, 0px); }
.order-shot::after { position: absolute; inset: 0; background: linear-gradient(0deg, #112337bc 0%, transparent 29%); content: ""; }
.order-shot-label {
  position: absolute;
  z-index: 1;
  bottom: 16px;
  left: 18px;
  right: 12px;
  color: #fff;
  font-size: .89rem;
  font-weight: 650;
  line-height: 1.25;
}
.order-relay {
  position: absolute;
  top: 55%;
  left: 15%;
  right: 15%;
  height: 2px;
  opacity: .75;
  background: #ffffffb8;
  transform: translateY(var(--order-ticket-shift, 0px));
}
.order-relay::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--order-progress) * 100%);
  background: #5bb1ff;
  box-shadow: 0 0 12px #49a5ffb0;
  content: "";
}
.order-ticket {
  position: absolute;
  z-index: 2;
  top: 55%;
  left: 50%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 7px 12px;
  width: min(235px, calc(100% - 25px));
  padding: 13px 15px 12px;
  border: 1px solid #ffffffb8;
  border-radius: 15px;
  background: #fffffff0;
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 8px 28px #11233742;
  transform: translate(-50%, calc(-50% + var(--order-ticket-shift, 0px)));
}
.order-ticket img { align-self: center; justify-self: center; }
.order-ticket-caption, .order-ticket-status { display: block; }
.order-ticket-caption { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.order-ticket .order-ticket-status { display: none; color: var(--ink); font-size: .99rem; line-height: 1.23; font-weight: 680; }
.order-scene[data-stage="0"] [data-order-label="0"],
.order-scene[data-stage="1"] [data-order-label="1"],
.order-scene[data-stage="2"] [data-order-label="2"],
.order-scene[data-stage="3"] [data-order-label="3"] { display: block; }
.order-ticket-track { grid-column: 1 / -1; height: 3px; margin-top: 3px; border-radius: 4px; background: #dce8f7; overflow: hidden; }
.order-ticket-track span { display: block; width: calc(var(--order-progress) * 100%); height: 100%; border-radius: inherit; background: var(--blue); }

.order-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: order-flow;
}
.order-flow li {
  position: relative;
  min-width: 0;
  padding: 12px 0 0 34px;
  border-top: 2px solid var(--rule);
  counter-increment: order-flow;
  transition: border-color .22s;
}
.order-flow li[aria-current="step"] { border-top-color: var(--blue); }
.order-flow li::before {
  position: absolute;
  top: 12px;
  left: 0;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: .85rem;
  font-weight: 650;
  content: counter(order-flow);
}
.order-flow li[aria-current="step"]::before { background: var(--blue); color: white; }
.order-flow h3 { margin-top: 1px; font-size: 1.04rem; line-height: 1.3; letter-spacing: -.017em; }
.order-flow p { margin-top: 5px; color: var(--muted); font-size: .94rem; line-height: 1.48; }
.order-flow-link { margin-top: 5px; font-size: .87rem; }
.services-intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 9px 20px; margin-bottom: 10px; }
.services-intro h3 { font-size: clamp(1.5rem, 2.65vw, 2.35rem); letter-spacing: -.04em; }
.services-intro p { color: var(--muted); }

@media (max-width: 810px) {
  .order-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .services-intro { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .order-scene { height: clamp(290px, 80vw, 365px); border-radius: 16px; }
  .order-scenes { grid-template-columns: 1.04fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .order-shot-seller { grid-row: span 2; }
  .order-shot img { inset: -44px 0 auto; height: calc(100% + 88px); }
  .order-shot::after { background: linear-gradient(180deg, #112337b0 0%, transparent 39%); }
  .order-shot-label { top: 10px; bottom: auto; left: 10px; right: 5px; font-size: .77rem; }
  .order-ticket { top: auto; bottom: 12px; width: min(196px, calc(100% - 22px)); transform: translate(-50%, var(--order-ticket-shift, 0px)); }
  .order-relay { top: auto; bottom: 44px; left: 8%; right: 8%; }
  .order-flow { grid-template-columns: 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .order-shot img, .order-relay { transform: none; }
}

.home-service-gallery { position: relative; }
.gallery-nav { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 5px; }
.gallery-nav button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: white;
  color: var(--blue);
  font-size: .875rem;
  font-weight: 600;
}
.gallery-nav button:hover { background: var(--soft-blue); border-color: #aed3f7; }
.service-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-inline: -7px;
  padding: 19px 7px 19px;
  scroll-padding-inline: 7px;
  scroll-snap-type: x proximity;
}
.service-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  flex: 0 0 calc((100% - 60px) / 6);
  min-width: 152px;
  min-height: 124px;
  aspect-ratio: 1.4;
  padding: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  text-align: left;
  background: #21364b;
  color: white;
  scroll-snap-align: start;
  box-shadow: 0 4px 12px #1e28451c;
  transition: box-shadow .22s ease;
}
.service-tile::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #081827ea, #08182744 40%, transparent 70%); content: ""; }
.service-tile img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .32s ease; }
.service-tile:hover img { scale: 1.045; }
.service-tile-label { font-size: 1rem; line-height: 1.14; font-weight: 650; text-wrap: balance; }
.service-tile[aria-selected="true"] { box-shadow: 0 0 0 2px white, 0 0 0 4px var(--blue); }
.service-tile:focus-visible { outline-offset: 5px; }
@supports (animation-timeline: view()) {
  .home-service-gallery { view-timeline: --service-arrival block; }
  .service-tile {
    animation: open-service-fan 1ms linear both;
    animation-timeline: --service-arrival;
    animation-range: entry 0% cover 28%;
  }
}
@keyframes open-service-fan {
  from { transform: translateY(var(--fan-shift)) rotate(var(--fan-angle)) scale(.94); }
  to { transform: translateY(0) rotate(0) scale(1); }
}
.service-panels { display: grid; gap: 12px; }
.service-panel {
  display: grid;
  grid-template-columns: 1.45fr .65fr;
  align-items: center;
  gap: 24px;
  padding: clamp(21px, 3vw, 35px);
  border-radius: 19px;
  background: var(--paper);
}
.service-panel h3, .journey-panel h3 { font-weight: 650; font-size: clamp(1.65rem, 3.1vw, 2.8rem); letter-spacing: -.044em; }
.service-panel p, .journey-panel p { margin-top: 9px; max-width: 57ch; color: var(--muted); }
.service-panel .page-actions { margin-top: 17px; }
.service-points, .journey-copy ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.service-points li, .journey-copy li { display: flex; align-items: baseline; gap: 9px; font-size: .97rem; line-height: 1.35; }
.service-points li::before, .journey-copy li::before { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--blue); content: ""; transform: translateY(-2px); }
[data-ready] [data-panel]:not([hidden]) { animation: panel-in .25s ease both; }
@keyframes panel-in {
  from { opacity: .35; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.journey-intro { text-align: center; margin-bottom: 26px; }
.journey-intro h2 { max-width: 22ch; margin-inline: auto; }
.journey-segments {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 405px);
  margin: 0 auto 28px;
  padding: 4px;
  border: 1px solid #d9dfe7;
  border-radius: 999px;
  background: #e9edf4;
}
.journey-segments::before {
  position: absolute;
  z-index: -1;
  inset: 4px auto 4px 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  transform: translateX(calc(100% * var(--selected-index, 0)));
  background: white;
  box-shadow: 0 2px 7px #131b2a14;
  transition: transform .3s cubic-bezier(.2,.7,.25,1);
  content: "";
}
.journey-segments button { min-height: 42px; border-radius: 999px; }
.journey-segments button[aria-selected="true"] { color: var(--blue); }
.journey-panels { display: grid; gap: 16px; }
.journey-panel { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; border-radius: 20px; overflow: hidden; background: white; }
.journey-photo { position: relative; min-height: 100%; background: #e7eef8; }
.journey-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.journey-copy { align-self: center; padding: 34px clamp(22px, 4vw, 58px); }
.journey-copy ul { margin-block: 16px; }

@media (max-width: 800px) {
  .service-rail { padding-top: 13px; padding-bottom: 13px; }
  .service-tile { flex-basis: 170px; }
  .service-panel { grid-template-columns: 1fr; gap: 14px; }
  .journey-panel { min-height: 320px; }
}
@media (max-width: 570px) {
  .gallery-nav { justify-content: flex-start; margin-bottom: 2px; }
  .service-panel { padding: 19px; }
  .service-panel .button { padding-inline: 13px; }
  .service-panel .page-actions { gap: 8px; }
  .journey-panel { grid-template-columns: 1fr; }
  .journey-photo { min-height: 190px; aspect-ratio: 1.65; }
  .journey-copy { padding: 23px 20px; }
  .journey-segments { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-tile, [data-ready] [data-panel]:not([hidden]) { animation: none; }
  .hero-media .port-dusk, .port-controls::before, .journey-segments::before, .service-tile img { transition: none; }
  .service-tile:hover img { scale: 1; }
}
