/* Salim Distro homepage: "The whole path" journey + the 3D carton closing CTA, restored 2026-09-23.
   CEO 2026-09-23 "bring it back". Both were CEO-approved on the pre-redesign homepage (journey 2026-09-06,
   carton placement "closing CTA only") and were left out of the redesign mockup. Rules below are the
   pre-redesign front-page.php styles verbatim (live-theme.20260923-131418.tgz), moved out of the inline
   <style>. Front page only (inc/sdx-home.php). */
  /* CODEX CEO-APPROVED ORANGE DISPATCH LINE — 2026-09-06 */
  .journey, .journey *{ box-sizing:border-box; }
  .journey{ position:relative; }
  .journey .wrap{ width:min(100%,1600px); margin-inline:auto; padding-inline:clamp(24px,4vw,64px); }
  .journey .mono,.journey .eyebrow{ font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:400; line-height:1.6; letter-spacing:.06em; }
  .journey .eyebrow{ text-transform:uppercase; display:flex; align-items:center; gap:14px; }
  .journey .tiny-cross{ font:400 24px/1 'Schibsted Grotesk',sans-serif; color:#ff8a62; }
  .journey .section-heading{ display:flex; align-items:flex-end; justify-content:space-between; }
  .journey .section-heading h2{ font-family:'Schibsted Grotesk',sans-serif; font-weight:500; margin:19px 0 0; }
  .journey .section-heading h2 em{ font-family:Georgia,serif; font-weight:400; }
  .journey .steps{ list-style:none; margin:0; }
  .journey .step{ position:relative; display:flex; flex-direction:column; align-items:flex-start; }
  .journey .step-track{ display:flex; align-items:center; }
  .journey .step-node{ flex-shrink:0; display:grid; place-items:center; position:relative; z-index:1; font-family:'IBM Plex Mono',monospace; font-size:11px; }
  .journey .track-line{ height:1px; position:relative; flex:1; }
  .journey .track-line::after{ content:''; position:absolute; inset:0; transform:scaleX(1); transform-origin:left; }
  .journey .step h3{ font-family:'Schibsted Grotesk',sans-serif; font-weight:600; margin:0; }
  .journey .step-caption{ display:block; }
  .journey .journey-bottom{ display:flex; align-items:center; justify-content:space-between; border-top:1px solid; }
  .journey .journey-bottom>.mono{ display:flex; align-items:center; gap:15px; }
  .journey .journey-bottom-rule{ width:45px; height:1px; }
  .journey .text-link{ display:flex; gap:24px; align-items:center; font-size:12px; font-weight:600; padding-block:8px; text-decoration:none; }
  .journey .text-link span{ font-size:21px; transition:transform .3s; }
  .journey .text-link:hover span{ transform:translate(4px,4px); }

/*
  Salim Distro — Orange Dispatch Line
  Local CEO review overlay. No production or live-store wiring.
*/

.journey[data-concept="orange-dispatch-line"] {
  --journey-progress: 0;
  --journey-drift: 0px;
  isolation: isolate;
  overflow: clip;
  padding: clamp(84px, 9vw, 142px) 0 0;
  color: #f7f1e8;
  background:
    radial-gradient(circle at 18% 12%, rgba(112, 147, 112, .16), transparent 30%),
    radial-gradient(circle at 84% 72%, rgba(255, 87, 34, .08), transparent 26%),
    #10271c;
}

.journey[data-concept="orange-dispatch-line"]::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(210, 226, 207, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 226, 207, .08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 82%, transparent);
  transform: translateY(var(--journey-drift));
}

.journey[data-concept="orange-dispatch-line"]::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.34' filter='url(%23n)'/%3E%3C/svg%3E");
}

.journey-atmosphere,
.journey-atmosphere span {
  position: absolute;
  pointer-events: none;
}

.journey-atmosphere { inset: 0; overflow: hidden; z-index: -1; }
.journey-beacon {
  width: min(74vw, 1060px);
  aspect-ratio: 1;
  right: -31%;
  top: -49%;
  border: 1px solid rgba(240, 190, 152, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(239, 154, 101, .018), 0 0 0 180px rgba(239, 154, 101, .012);
}
.journey-scanline {
  top: 0;
  bottom: 0;
  left: calc(var(--journey-progress) * 100%);
  width: 1px;
  opacity: calc(.08 + var(--journey-progress) * .22);
  background: linear-gradient(transparent 4%, #ff7b4c 30%, #ff7b4c 70%, transparent 96%);
  box-shadow: 0 0 40px 10px rgba(255, 87, 34, .08);
}

.journey[data-concept="orange-dispatch-line"] .section-heading {
  position: relative;
  z-index: 2;
  align-items: end;
  margin-bottom: 26px;
}
.journey[data-concept="orange-dispatch-line"] .section-heading .eyebrow {
  color: #a9bbaa;
}
.journey[data-concept="orange-dispatch-line"] .section-heading h2 {
  max-width: 820px;
  color: #f7f1e8;
  font-size: clamp(62px, 7vw, 112px);
  line-height: .93;
  letter-spacing: -.065em;
}
.journey[data-concept="orange-dispatch-line"] .section-heading h2 em {
  color: #f0c6a8;
}
.journey[data-concept="orange-dispatch-line"] .section-aside {
  color: #a9baaa;
  margin-bottom: 9px;
  padding-right: 0;
}

.journey-concept {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(60px, 7vw, 98px);
  padding: 13px 0;
  color: #8fa291;
  border-top: 1px solid rgba(225, 235, 220, .16);
  border-bottom: 1px solid rgba(225, 235, 220, .08);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.journey-concept span:last-child { color: #e3b38f; }

.journey[data-concept="orange-dispatch-line"] .steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 28px);
  align-items: start;
  perspective: 1400px;
  padding: 30px 0 72px;
}

.journey-route {
  position: absolute;
  z-index: -1;
  inset: 82px -2.8% auto;
  width: 105.6%;
  height: 260px;
  overflow: visible;
  pointer-events: none;
}
.journey-route path { fill: none; vector-effect: non-scaling-stroke; }
.journey-route-shadow {
  stroke: rgba(255, 126, 77, .12);
  stroke-width: 18;
  filter: url(#routeGlow);
}
.journey-route-progress {
  stroke: #ff6431;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--journey-progress));
  filter: drop-shadow(0 0 7px rgba(255, 87, 34, .55));
}

.journey[data-concept="orange-dispatch-line"] .step {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --light-x: 50%;
  --light-y: 20%;
  min-height: 420px;
  padding: 34px 28px 26px;
  color: #183426;
  background:
    radial-gradient(circle at var(--light-x) var(--light-y), rgba(255, 255, 255, .88), transparent 38%),
    linear-gradient(145deg, #fbf5ea 0%, #eee6d8 100%);
  border: 1px solid rgba(255, 255, 255, .46);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .65) inset,
    0 26px 55px rgba(0, 9, 4, .29),
    7px 8px 0 rgba(50, 79, 59, .35);
  transform-style: preserve-3d;
  transform: translateY(var(--step-lift, 0)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-origin: 50% 70%;
  transition: transform .24s cubic-bezier(.2,.75,.25,1), box-shadow .24s ease;
  will-change: transform;
}
.journey[data-concept="orange-dispatch-line"] .step:nth-of-type(even) { --step-lift: 54px; }
.journey[data-concept="orange-dispatch-line"] .step::before {
  content: attr(data-route-step);
  position: absolute;
  z-index: 0;
  right: 18px;
  bottom: 4px;
  color: rgba(20, 56, 39, .055);
  font:700 clamp(88px,8vw,138px)/.8 'Schibsted Grotesk',sans-serif;
  letter-spacing: -.09em;
  transform: translateZ(1px);
}
.journey[data-concept="orange-dispatch-line"] .step::after {
  content: "";
  position: absolute;
  inset: 8px -8px -8px 8px;
  z-index: -1;
  border: 1px solid rgba(218, 229, 211, .12);
  background: rgba(40, 71, 51, .4);
  transform: translateZ(-18px);
}
.journey[data-concept="orange-dispatch-line"] .step:hover {
  box-shadow: 0 34px 72px rgba(0, 9, 4, .38), 9px 10px 0 rgba(255, 91, 36, .55);
}

.journey[data-concept="orange-dispatch-line"] .step-track {
  width: 100%;
  margin-bottom: 40px;
  transform: translateZ(28px);
}
.journey[data-concept="orange-dispatch-line"] .step-node {
  width: 45px;
  height: 45px;
  color: #f7f1e8;
  background: #183b2a;
  border: 1px solid #ff6b38;
  box-shadow: 0 0 0 7px #f4ede1, 0 0 0 8px rgba(24, 59, 42, .13);
}
.journey[data-concept="orange-dispatch-line"] .track-line {
  background: rgba(24, 59, 42, .17);
}
.journey[data-concept="orange-dispatch-line"] .track-line::after {
  background: #ff5b28;
}
.journey[data-concept="orange-dispatch-line"] .step[data-route-step="04"] .track-line::after {
  background: linear-gradient(90deg, #ff5b28, transparent);
}

.journey[data-concept="orange-dispatch-line"] .step-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  color: #bc4720;
  stroke-width: 1.15;
  transform: translateZ(34px);
}
.journey[data-concept="orange-dispatch-line"] .step:hover .step-icon {
  transform: translateZ(40px) translateY(-4px) rotate(-3deg);
}
.journey[data-concept="orange-dispatch-line"] .step h3 {
  position: relative;
  z-index: 1;
  min-height: 110px;
  max-width: 245px;
  font-size: clamp(22px, 1.7vw, 29px);
  line-height: 1.08;
  letter-spacing: -.048em;
  transform: translateZ(24px);
}
.journey[data-concept="orange-dispatch-line"] .step p {
  position: relative;
  z-index: 1;
  max-width: 250px;
  margin: 18px 0 28px;
  color: #526154;
  font-size: 13px;
  line-height: 1.65;
  transform: translateZ(18px);
}
.journey[data-concept="orange-dispatch-line"] .step-caption {
  position: relative;
  z-index: 1;
  width: calc(100% - 38px);
  min-height: 0;
  margin-top: auto;
  padding-top: 13px;
  color: #415545;
  border-color: rgba(21, 50, 37, .19);
  font-size: 9px;
  transform: translateZ(20px);
}
.step-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #7b563f;
  font-size: 7px;
  letter-spacing: .12em;
  transform: translateZ(22px);
}
.step-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d94c20;
  box-shadow: 0 0 0 4px rgba(217, 76, 32, .11);
}
.step-corner {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 19px;
  height: 19px;
  border-top: 1px solid rgba(25, 61, 43, .34);
  border-right: 1px solid rgba(25, 61, 43, .34);
}

.journey[data-concept="orange-dispatch-line"] .journey-bottom {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  padding: 31px 0;
  color: #a5b7a6;
  border-color: rgba(224, 234, 220, .15);
}
.journey[data-concept="orange-dispatch-line"] .journey-bottom > .mono { color: #9db09f; }
.journey[data-concept="orange-dispatch-line"] .journey-bottom-rule { background: #ff6431; }
.journey[data-concept="orange-dispatch-line"] .text-link { color: #f7f1e8; }
.journey[data-concept="orange-dispatch-line"] .text-link span { color: #ff7548; }

@media (max-width: 1000px) and (min-width: 761px) {
  .journey[data-concept="orange-dispatch-line"] .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
  }
  .journey[data-concept="orange-dispatch-line"] .step:nth-of-type(even) { --step-lift: 32px; }
  .journey-route { display: none; }
}

@media (max-width: 760px) {
  .journey[data-concept="orange-dispatch-line"] { padding-top: 64px; }
  .journey[data-concept="orange-dispatch-line"] .section-heading h2 {
    max-width: 100%;
    font-size: clamp(48px, 13vw, 66px);
    line-height: .98;
  }
  .journey[data-concept="orange-dispatch-line"] .section-aside br { display: block; }
  /* 2026-09-23: the aside sat beside a 50px heading at 390px and crowded it; stack them on phones. */
  .journey[data-concept="orange-dispatch-line"] .section-heading { flex-direction: column; align-items: flex-start; gap: 18px; }
  .journey[data-concept="orange-dispatch-line"] .section-aside { margin-bottom: 0; }
  .journey-concept { align-items: flex-start; gap: 24px; margin-bottom: 42px; }
  .journey-concept span:last-child { max-width: 130px; text-align: right; }
  .journey[data-concept="orange-dispatch-line"] .steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 18px 0 42px;
  }
  .journey-route { display: none; }
  .journey[data-concept="orange-dispatch-line"] .step,
  .journey[data-concept="orange-dispatch-line"] .step:nth-of-type(even) {
    --step-lift: 0px;
    min-height: 350px;
    padding: 27px 25px 24px;
  }
  .journey[data-concept="orange-dispatch-line"] .step-track {
    position: static;
    flex-direction: row;
    width: 100%;
    height: auto;
    margin: 0 0 31px;
  }
  .journey[data-concept="orange-dispatch-line"] .track-line { width: auto; min-height: 1px; height: 1px; }
  .journey[data-concept="orange-dispatch-line"] .track-line::after {
    transform: scaleX(0);
    transform-origin: left;
  }
  .journey[data-concept="orange-dispatch-line"] .step.is-visible .track-line::after { transform: scaleX(1); }
  .journey[data-concept="orange-dispatch-line"] .step-icon {
    position: static;
    width: 38px;
    height: 38px;
    margin-bottom: 24px;
  }
  .journey[data-concept="orange-dispatch-line"] .step h3 { max-width: 280px; min-height: 0; font-size: 28px; }
  .journey[data-concept="orange-dispatch-line"] .step h3 br { display: block; }
  .journey[data-concept="orange-dispatch-line"] .step p { max-width: 310px; font-size: 14px; }
  .journey[data-concept="orange-dispatch-line"] .step-caption { max-width: 280px; }
  .journey[data-concept="orange-dispatch-line"] .journey-bottom { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .journey[data-concept="orange-dispatch-line"] *,
  .journey[data-concept="orange-dispatch-line"] *::before,
  .journey[data-concept="orange-dispatch-line"] *::after {
    animation: none !important;
    transition: none !important;
  }
  .journey-scanline { display: none; }
  .journey-route-progress { stroke-dashoffset: 0; }
  .journey[data-concept="orange-dispatch-line"] .step { transform: translateY(var(--step-lift, 0)); }
}

  /* CEO-approved 3D carton placement — closing CTA only */
  .salim-cta{ position:relative; isolation:isolate; overflow:hidden; color:#F7F1E8; background:radial-gradient(circle at 78% 45%,rgba(71,111,79,.34),transparent 35%),linear-gradient(112deg,#102D20 0 51%,#173A29 51% 100%); }
  .salim-cta::before{ content:""; position:absolute; inset:0; z-index:-1; opacity:.12; background-image:linear-gradient(rgba(221,233,215,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(221,233,215,.09) 1px,transparent 1px); background-size:72px 72px; mask-image:linear-gradient(90deg,transparent,#000 24%,#000 88%,transparent); }
  .salim-cta__inner{ max-width:1320px; min-height:620px; margin:0 auto; padding:74px 24px; display:grid; grid-template-columns:minmax(0,.9fr) minmax(500px,1.1fr); align-items:center; gap:clamp(36px,6vw,92px); }
  .salim-cta__content{ position:relative; z-index:3; text-align:left; }
  .salim-cta__eyebrow,.salim-cta__note{ display:block; font-family:'IBM Plex Mono',monospace; text-transform:uppercase; letter-spacing:.12em; }
  .salim-cta__eyebrow{ color:#F0895E; font-size:11px; }
  .salim-cta__h2{ max-width:11ch; margin:20px 0 0; color:#F7F1E8; font-family:'Schibsted Grotesk',sans-serif; font-size:clamp(42px,5vw,72px); font-weight:700; line-height:.98; letter-spacing:-.045em; text-wrap:balance; }
  .salim-cta__sub{ max-width:42ch; margin:24px 0 0; color:#CFDBCB; font-size:clamp(16px,1.5vw,19px); line-height:1.6; }
  .salim-cta__btn{ display:inline-flex; min-width:250px; margin-top:30px; padding:18px 24px; align-items:center; justify-content:space-between; gap:28px; color:#fff; background:var(--sdx-orange-btn, #d14017); border-radius:3px; text-decoration:none; font-size:16px; font-weight:800; transition:background .2s,transform .2s,box-shadow .2s; }
  .salim-cta__btn span{ font-size:24px; font-weight:400; transition:transform .2s; }
  .salim-cta__btn:hover{ color:#fff; background:var(--sdx-orange-btn-hover, #b5361a); transform:translateY(-3px); box-shadow:0 14px 28px rgba(0,0,0,.2); }
  .salim-cta__btn:hover span{ transform:translate(3px,-3px); }
  .salim-cta__note{ margin-top:18px; color:#91A794; font-size:9px; }
  .salim-cta__box-stage{ position:relative; min-height:470px; margin:0; display:flex; align-items:center; justify-content:center; padding:0 12% 0 11%; }
  .salim-cta__orbit{ position:absolute; width:min(72%,420px); aspect-ratio:1; border:1px solid rgba(206,222,198,.10); border-radius:50%; box-shadow:0 0 0 52px rgba(206,222,198,.018),0 0 0 112px rgba(206,222,198,.012); }
  /* the img and the route svg share this frame, so the line can never drift off the carton */
  .salim-cta__frame{ position:relative; width:100%; max-width:600px; animation:salimApprovedBoxFloat 6s ease-in-out infinite; }
  .salim-cta__route{ position:absolute; inset:0; z-index:1; width:100%; height:100%; overflow:visible; pointer-events:none; }
  .salim-cta__route-line{ fill:none; stroke:#FF5722; stroke-width:2; stroke-linecap:round; vector-effect:non-scaling-stroke; }
  .salim-cta__route-dot,.salim-cta__route-square{ fill:#FF5722; }
  .salim-cta__route-start,.salim-cta__route-end{ position:absolute; z-index:4; color:#A9BBA9; font:600 9px 'IBM Plex Mono',monospace; letter-spacing:.09em; line-height:1; white-space:nowrap; }
  .salim-cta__route-start{ left:-12.4%; top:14.6%; transform:translateY(-20px); }
  .salim-cta__route-end{ left:93.5%; top:109.5%; }
  .salim-cta__box{ position:relative; z-index:2; display:block; width:100%; height:auto; filter:drop-shadow(0 35px 30px rgba(0,8,4,.42)); }
  @keyframes salimApprovedBoxFloat{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
  @media(max-width:920px){
    .salim-cta__inner{ min-height:0; grid-template-columns:1fr; gap:26px; padding:68px 24px 54px; }
    .salim-cta__h2{ max-width:13ch; font-size:clamp(40px,12vw,64px); }
    .salim-cta__box-stage{ min-height:330px; padding:0 12% 0 11%; }
    .salim-cta__frame{ max-width:520px; }
  }
  @media(max-width:520px){
    .salim-cta__inner{ padding-inline:20px; }
    .salim-cta__box-stage{ min-height:265px; padding:0 23% 0 12%; }
    .salim-cta__btn{ width:100%; min-width:0; }
    .salim-cta__frame{ max-width:400px; }
    .salim-cta__route-start{ transform:translateY(-16px); font-size:8px; }
    .salim-cta__route-end{ font-size:8px; }
  }
  @media(prefers-reduced-motion:reduce){ .salim-cta__frame{ animation:none; } }


/* 2026-09-26 (CEO go): promo video under the four steps. */
/* CEO 2026-09-26: dark video on the dark section strained the eyes. A cream paper frame with the site's
   hard orange offset shadow (the card-hover signature) separates it from the green. */
.journey .sd-promo { margin: 64px auto 20px; max-width: 1180px; padding: 16px; box-sizing: border-box;
  background: #f3efe4; border: 1px solid #132a21; box-shadow: 12px 12px 0 #ff552e; }
.journey .sd-promo__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #081d15; }
/* Phones get the vertical cut (same 900px switch as the script). */
@media (max-width: 900px) { .journey .sd-promo { max-width: 460px; } .journey .sd-promo__video { aspect-ratio: 9 / 16; } }
@media (max-width: 640px) { .journey .sd-promo { margin: 40px 6px 16px 0; padding: 8px; box-shadow: 6px 6px 0 #ff552e; } }

/* Scroll performance, 2026-09-26 (CEO: "it slows down and feels heavy when i scroll to that section"
   on a Retina MacBook). The full-section grid (::before, masked, drifts on scroll) and the grain
   overlay (::after, soft-light blend) were re-rasterised every scroll frame. Measured in real Chrome
   at 2x density with a 4x slower CPU: slowest frames 17 ms here vs 10 ms in every other section;
   with both on their own compositor layers, 10 ms. Pixel-identical (max diff 1/255). */
.journey[data-concept="orange-dispatch-line"]::before,
.journey[data-concept="orange-dispatch-line"]::after {
  will-change: transform;
}
