/*
 * ePOD animation (A10). Renders inside Webflow's Shadow DOM: colours and fonts come in through custom
 * properties set from props. Sizes are stage pixels (1208 x 906, the WebM's size), scaled to the component
 * width. Positions come from layout.ts as inline styles; sync.ts writes transforms, opacities and the row
 * variables. The frame-0 copy (.shep-zero) is written once with frame 0 when the timeline is built.
 */

.shep-root {
  --shep-bg: var(--_default---swatch--neutral, #ffffff);
  --shep-text: var(--_default---primary--ocean, #1c213d);
  --shep-accent: var(--_default---primary--sky, #00b2ff);
  --shep-border: var(--_default---primary--cloud-3, #e7e7e7);
  --shep-success: #00bc70;
  --shep-route: var(--_default---primary--ocean, #1c213d);
  --shep-vehicle: var(--_default---primary--ocean, #1c213d);
  --shep-overlay: var(--_default---primary--ocean, #1c213d);
  --shep-screen: var(--_default---primary--ocean, #1c213d);
  --shep-phone-text: var(--_default---swatch--neutral, #ffffff);
  --shep-field: var(--_default---swatch--neutral, #ffffff);
  --shep-cta: var(--_default---primary--sky, #00b2ff);
  --shep-ink: var(--_default---primary--ocean, #1c213d);
  --shep-cursor: var(--_default---primary--sky, #00b2ff);
  --shep-white: var(--_default---swatch--neutral, #ffffff);
  --shep-font: var(--_typography---font--primary-family, "Fg Futurist", Arial, sans-serif);
  --shep-frame-radius: 8px;
  --shep-frame-border-color: var(--_default---primary--cloud-3, #e7e7e7);
  --shep-frame-border-width: 1px;
  --shep-overlay-alpha: 0.45;
  --shep-muted: color-mix(in srgb, var(--shep-text) 55%, transparent);
  --shep-pending: color-mix(in srgb, var(--shep-text) 45%, transparent);
  /* Baseline offset of the font at line-height 1 and its cap height (FG Futurist), for text placed by its baseline */
  --shep-asc: 0.85;
  --shep-cap: 0.78;
  --zoom: 1;

  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--shep-frame-radius);
  background: var(--shep-bg);
  font-family: var(--shep-font);
  color: var(--shep-text);
  line-height: 1.25;
  isolation: isolate;
  contain: layout paint;
  -webkit-font-smoothing: antialiased;
}

.shep-root *,
.shep-root *::before,
.shep-root *::after {
  box-sizing: border-box;
}

/* Frame border: drawn inside the root over everything (cursor included), in screen pixels, so the frame
   stands apart from the page; on the root, it shows before the stage is ready */
.shep-root::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  border-radius: inherit;
  box-shadow: inset 0 0 0 var(--shep-frame-border-width) var(--shep-frame-border-color);
  pointer-events: none;
}

/* Webflow wraps the component in a div inside its shadow root; let it fill the parent */
:host > div:has(> .shep-root) {
  display: block;
  width: 100%;
}

/* ---------- stage, first load, camera ---------- */

.shep-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1208px;
  height: 906px;
  overflow: hidden;
  transform-origin: 0 0;
}

/* Until the script has scaled the stage, the CSS-sized poster shows frame 0 */
.shep-root:not([data-ready="true"]) .shep-stage {
  opacity: 0;
}

.shep-poster {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.shep-root[data-ready="true"] .shep-poster {
  visibility: hidden;
}

.shep-poster text {
  font-family: var(--shep-font);
}

.shep-poster__map {
  fill: var(--_default---primary--cloud-2, #f0f0f0);
}

.shep-poster__panel {
  fill: var(--shep-bg);
}

.shep-poster__carrier-label {
  font-size: 17px;
  letter-spacing: 0.08em;
  fill: var(--shep-muted);
}

.shep-poster__carrier-name,
.shep-poster__stop-name {
  font-size: 26px;
  font-weight: 500;
  fill: var(--shep-accent);
}

.shep-poster__rule {
  fill: var(--shep-border);
}

.shep-poster__card {
  fill: var(--shep-white);
  stroke: var(--shep-border);
  stroke-width: 1px;
}

.shep-poster__stop-code {
  font-size: 20px;
  font-style: italic;
  fill: color-mix(in srgb, var(--shep-text) 50%, transparent);
}

.shep-poster__stop-type {
  font-size: 18px;
  fill: color-mix(in srgb, var(--shep-text) 60%, transparent);
}

.shep-poster__chevron {
  color: var(--shep-text);
}

.shep-poster__rail {
  fill: color-mix(in srgb, var(--shep-accent) 25%, transparent);
}

.shep-poster__rail-fill {
  fill: var(--shep-accent);
}

.shep-poster__badge {
  fill: var(--shep-white);
  stroke: var(--shep-accent);
  stroke-width: 2px;
}

.shep-poster__badge--on {
  fill: var(--shep-accent);
  stroke: none;
}

.shep-poster__badge-num {
  font-size: 18px;
  font-weight: 500;
  fill: var(--shep-accent);
}

.shep-poster__badge-num--on {
  fill: var(--shep-white);
}

/* Rows: pending (Full journey) or done with Unload current (Delivery only), as the stage's row variables */
.shep-poster__row {
  font-size: 22px;
  fill: var(--shep-pending);
  color: var(--shep-pending);
}

.shep-poster__num {
  font-variant-numeric: tabular-nums;
}

.shep-poster__row--done {
  font-weight: 500;
  fill: var(--shep-accent);
  color: var(--shep-accent);
}

.shep-poster__row--done .shep-poster__label {
  fill: var(--shep-text);
}

.shep-poster__row--current .shep-poster__label {
  fill: var(--shep-accent);
}

.shep-poster__band {
  fill: color-mix(in srgb, var(--shep-accent) 10%, transparent);
}

.shep-poster__chip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.shep-poster__chip-label {
  font-weight: 500;
  visibility: hidden;
}

/* Phone framing (A4's rule): zoom towards the focus, never past the stage edges */
.shep-camera {
  --z: calc(1 + (var(--zoom, 1) - 1) * var(--cam-k, 0));
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  transform: scale(var(--z))
    translate(
      clamp(calc(1208px / var(--z) - 1208px), calc(604px / var(--z) - var(--cam-x, 604) * 1px), 0px),
      clamp(calc(906px / var(--z) - 906px), calc(453px / var(--z) - var(--cam-y, 453) * 1px), 0px)
    );
}

.shep-root[data-phone-zoom="false"] .shep-camera {
  --zoom: 1;
}

.shep-scene,
.shep-blur {
  position: absolute;
  inset: 0;
}

/* The static frame-0 copy for the loop's crossfade (written once by a second sync at build) */
.shep-zero {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
}

.shep-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--shep-overlay);
  opacity: calc(var(--o, 0) * var(--shep-overlay-alpha));
  visibility: hidden;
}

/* ---------- tracking page ---------- */

.shep-panel {
  position: absolute;
  left: 0;
  top: 0;
  height: 906px;
  background: var(--shep-bg);
}

.shep-panel span,
.shep-panel em {
  white-space: nowrap;
}

.shep-carrier-label,
.shep-carrier-name,
.shep-stop__name,
.shep-stop__type {
  position: absolute;
  line-height: 1;
}

.shep-carrier-label {
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shep-muted);
}

.shep-carrier-name {
  font-size: 26px;
  font-weight: 500;
  color: var(--shep-accent);
}

.shep-header-rule,
.shep-stop__rule {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--shep-border);
}

.shep-tracking {
  position: absolute;
  inset: 0;
}

.shep-stop {
  position: absolute;
  border: 1px solid var(--shep-border);
  border-radius: 16px;
  background: var(--shep-white);
}

.shep-stop__name {
  font-size: 26px;
  font-weight: 500;
  color: var(--shep-accent);
}

.shep-stop__code {
  font-size: 20px;
  font-weight: 400;
  color: color-mix(in srgb, var(--shep-text) 50%, transparent);
}

.shep-stop__type {
  font-size: 18px;
  color: color-mix(in srgb, var(--shep-text) 60%, transparent);
}

.shep-stop__chevron {
  position: absolute;
  width: 26px;
  height: 26px;
  color: var(--shep-text);
}

/* Badges: white with an Accent outline; the fill layer fades in once the stop has started */
.shep-badge,
.shep-badge__fill {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.shep-badge {
  position: absolute;
  border: 2px solid var(--shep-accent);
  background: var(--shep-white);
  color: var(--shep-accent);
}

.shep-badge__fill {
  position: absolute;
  inset: -2px;
  background: var(--shep-accent);
  color: var(--shep-white);
  opacity: 0;
}

.shep-badge__num {
  grid-area: 1 / 1;
}

/* Progress rail between the badges; the fill grows with the voyage, the tip glows at its end (addition 8) */
.shep-rail {
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--shep-accent) 25%, transparent);
}

.shep-rail__fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--shep-accent);
  transform-origin: 50% 0;
  transform: scaleY(0);
}

.shep-rail__tip {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--shep-accent);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--shep-accent) 22%, transparent),
    0 0 18px 6px color-mix(in srgb, var(--shep-accent) 45%, transparent);
  opacity: 0;
  visibility: hidden;
}

/* Status rows: --on lights a row (pending → done), --w swaps regular for medium, --cur marks the current one (band, Accent label) */
.shep-row {
  --on: 0;
  --w: 0;
  --cur: 0;
  position: absolute;
  font-size: 22px;
  line-height: 1;
}

.shep-row__band,
.shep-row__sweep {
  position: absolute;
  inset: 0;
  border-radius: 10px;
}

.shep-row__band {
  background: color-mix(in srgb, var(--shep-accent) 10%, transparent);
  opacity: 0;
}

.shep-row__sweep {
  background: color-mix(in srgb, var(--shep-accent) 16%, transparent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.shep-row__icon {
  position: absolute;
  top: 9px;
  width: 26px;
  height: 26px;
  color: color-mix(in srgb, var(--shep-accent) calc(var(--on) * 100%), var(--shep-pending));
}

.shep-row__main {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.shep-row__date,
.shep-row__time {
  position: absolute;
  top: 0;
  height: 100%;
  align-items: center;
  justify-items: end;
  font-variant-numeric: tabular-nums;
}

.shep-dual {
  display: inline-grid;
}

.shep-dual > * {
  grid-area: 1 / 1;
}

.shep-dual__off {
  color: var(--shep-pending);
  opacity: calc(1 - var(--w));
}

.shep-dual__on {
  --lit: var(--shep-accent);
  font-weight: 500;
  color: color-mix(in srgb, var(--lit) calc(var(--on) * 100%), var(--shep-pending));
  opacity: var(--w);
}

.shep-row__label .shep-dual__on {
  --lit: color-mix(in srgb, var(--shep-accent) calc(var(--cur) * 100%), var(--shep-text));
}

/* Chips (addition 4): Success text on a Success tint */
.shep-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px 0 11px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--shep-success) 12%, transparent);
  color: var(--shep-success);
  font-size: 16px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -10px, 0) scale(0.8);
}

.shep-chip__check {
  width: 17px;
  height: 17px;
}

/* The poster's chip (Delivery only) */
.shep-chip.shep-chip--still {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- damage report (WebM 19.0 s; under the same header, over the tracking page) ---------- */

.shep-report {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}

/* Each item scales up from its left edge (note 11); sync writes the scale */
.shep-report__item {
  position: absolute;
  transform-origin: 0 50%;
}

.shep-report__item > * {
  position: absolute;
  line-height: 1;
}

.shep-report__title {
  font-size: 30px;
  font-weight: 500;
}

.shep-report__check {
  width: 32px;
  height: 32px;
  color: var(--shep-success);
}

.shep-report__rule {
  left: 0;
  right: 0;
  height: 1px;
  background: var(--shep-border);
}

.shep-report__line,
.shep-report__comment {
  font-size: 26px;
}

.shep-report__muted {
  color: var(--shep-muted);
}

.shep-report__strong,
.shep-report__comment,
.shep-report__verified {
  font-weight: 500;
}

/* Wraps to a second line (above the photos) if the comment is long; a longer one ends in an ellipsis */
.shep-report__item > .shep-report__comment {
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.shep-report__verified {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 1em;
}

.shep-report__vcheck {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--shep-success);
}

/* Empty frames for the flying photos */
.shep-report__slot {
  position: absolute;
  border: 2px solid color-mix(in srgb, var(--shep-border) 50%, transparent);
  border-radius: 10px;
}

.shep-report__divider {
  position: absolute;
  width: 1px;
  background: var(--shep-border);
}

/* The flying photos: sync sizes them in px and translates them (no scale, so they stay sharp) */
.shep-fly {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 1px;
  height: 1px;
  max-width: none;
  object-fit: cover;
  visibility: hidden;
}

/* ---------- map ---------- */

.shep-map {
  position: absolute;
  overflow: hidden;
  background: var(--_default---primary--cloud-2, #f0f0f0);
}

.shep-layer {
  position: absolute;
  top: 0;
  max-width: none;
  transform-origin: 0 0;
  will-change: transform;
}

[data-el="epLayerDelivery"] {
  opacity: 0;
  visibility: hidden;
}

.shep-map__art {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}

.shep-route,
.shep-route__casing {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shep-route {
  stroke: var(--shep-route);
  stroke-width: 6px;
}

.shep-route__casing {
  stroke: var(--shep-white);
  stroke-width: 12px;
}

.shep-pin rect {
  fill: var(--shep-route);
  stroke: var(--shep-white);
  stroke-width: 2px;
}

.shep-pin text {
  fill: var(--shep-white);
  font-family: var(--shep-font);
  font-size: 20px;
  font-weight: 500;
}

.shep-vehicle__halo {
  fill: var(--shep-vehicle);
  opacity: 0.2;
}

.shep-vehicle__ring {
  fill: none;
  stroke: var(--shep-accent);
  stroke-width: 5px;
  opacity: 0;
}

.shep-vehicle__marker {
  fill: var(--shep-vehicle);
}

.shep-vehicle__glyph {
  color: var(--shep-white);
}

.shep-vehicle__glyph--vessel {
  opacity: 0;
}

/* ---------- phone (WebM 3.0 s; the client's colours: Ocean screen, white text and fields, Sky CTA) ---------- */

/* The device itself: a near-black body (Ocean-tinted) with a light metal rim */
.shep-root {
  --shep-device: color-mix(in srgb, var(--_default---primary--ocean, #1c213d) 22%, #000000);
  --shep-rim-light: var(--_default---primary--cloud-3, #e7e7e7);
  --shep-rim-dark: color-mix(in srgb, var(--_default---primary--cloud-3, #e7e7e7) 55%, #000000);
  --shep-phone-muted: color-mix(in srgb, var(--shep-phone-text) 60%, transparent);
  --shep-phone-rule: color-mix(in srgb, var(--shep-phone-text) 15%, transparent);
}

/* Grows out of the marker: sync writes the transform (around the top circle's centre) and the clip */
.shep-phone {
  position: absolute;
  z-index: 2;
  transform-origin: 288px 288px;
  visibility: hidden;
  line-height: 1;
}

.shep-phone span,
.shep-phone div {
  white-space: nowrap;
}

.shep-phone__bezel {
  position: absolute;
  inset: 0;
  border-radius: 86px;
  background: linear-gradient(
    150deg,
    var(--shep-rim-light) 0%,
    var(--shep-rim-dark) 22%,
    var(--shep-rim-light) 48%,
    var(--shep-rim-dark) 78%,
    var(--shep-rim-light) 100%
  );
}

.shep-phone__bezel::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 82px;
  background: var(--shep-device);
}

.shep-phone__btn {
  position: absolute;
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--shep-rim-dark), var(--shep-rim-light) 50%, var(--shep-rim-dark));
}

.shep-phone__speaker {
  position: absolute;
  left: 240px;
  top: 9px;
  width: 96px;
  height: 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--shep-rim-dark) 45%, var(--shep-device));
}

/* The Vehicle-colour disc the phone grows out of: it covers the whole phone, the clip shapes it; it fades as the phone opens */
.shep-phone__morph {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--shep-vehicle);
}

.shep-phone__glyph {
  position: absolute;
  left: 125.5px;
  top: 125.5px;
  width: 325px;
  height: 325px;
  color: var(--shep-white);
}

.shep-screen {
  position: absolute;
  overflow: hidden;
  background: var(--shep-screen);
  color: var(--shep-phone-text);
  /* Rounded clipping of transformed children */
  isolation: isolate;
}

.shep-notch {
  position: absolute;
  left: 149px;
  top: 0;
  z-index: 6;
  width: 218px;
  height: 45px;
  border-radius: 0 0 26px 26px;
  background: var(--shep-device);
}

/* The notch's top corners curve into the screen edge */
.shep-notch::before,
.shep-notch::after {
  content: "";
  position: absolute;
  top: 0;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 0 100%, transparent 11.5px, var(--shep-device) 12px);
}

.shep-notch::before {
  left: -12px;
}

.shep-notch::after {
  right: -12px;
  transform: scaleX(-1);
}

.shep-notch__cam {
  position: absolute;
  left: 24px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--_default---primary--sky, #00b2ff) 35%, #101420) 0 2px, #0c0e14 3px);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--shep-device) 70%, #2a2d36);
}

/* ---------- phone: forms ---------- */

.shep-form,
.shep-confirmed {
  position: absolute;
  inset: 0;
}

[data-el="epForm1"],
.shep-root[data-story="delivery"] [data-el="epForm0"] {
  display: none;
}

.shep-root[data-story="delivery"] [data-el="epForm1"] {
  display: block;
}

.shep-title,
.shep-label,
.shep-summary > span,
.shep-confirmed__line,
.shep-cam__title,
.shep-comment__label,
.shep-comment__verified {
  position: absolute;
}

.shep-title {
  font-size: 30px;
  font-weight: 500;
}

.shep-rule {
  position: absolute;
  left: 20px;
  width: 476px;
  height: 2px;
  background: var(--shep-phone-rule);
}

/* Content scrolls under the title rule */
.shep-form__view {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.shep-form__body {
  position: absolute;
  inset: 0;
}

.shep-section {
  position: absolute;
  left: 20px;
  width: 476px;
}

.shep-label {
  left: 0;
  font-size: 26px;
}

/* Field and pad sit in press wrappers: the click scales the wrapper (ring included) around its centre */
.shep-press {
  position: absolute;
  left: 0;
  width: 476px;
}

.shep-field,
.shep-pad {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: var(--shep-field);
}

.shep-field {
  display: flex;
  align-items: center;
  padding-left: 24px;
  color: var(--shep-text);
  font-size: 26px;
}

.shep-caret {
  position: absolute;
  left: 24px;
  top: 18px;
  width: 3px;
  height: 34px;
  border-radius: 1.5px;
  background: var(--shep-accent);
  opacity: 0;
}

/* Focus rings (addition 5): one on the field, one on the pad, crossfaded as the focus moves */
.shep-focus {
  position: absolute;
  inset: -6px;
  border: 3px solid var(--shep-accent);
  border-radius: 15px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--shep-accent) 25%, transparent);
  opacity: 0;
  visibility: hidden;
}

/* The whole block (label, field, sign label, pad) shrinks from the top as it folds into the summary */
.shep-sign {
  position: absolute;
  left: 0;
  width: 476px;
  transform-origin: 50% 0;
}

/* Placed in the pad by SIG_PLACE (layout.ts), inline */
.shep-sig {
  position: absolute;
  overflow: visible;
}

.shep-sig__ink {
  fill: none;
  stroke: var(--shep-ink);
  stroke-width: 3.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.shep-sig__pen {
  fill: var(--shep-ink);
  opacity: 0;
}

.shep-summary {
  position: absolute;
  left: 0;
  width: 476px;
}

.shep-section .shep-summary {
  opacity: 0;
  visibility: hidden;
}

.shep-summary__muted {
  font-size: 22px;
  color: var(--shep-phone-muted);
}

.shep-summary__name {
  font-size: 24px;
  font-weight: 500;
}

.shep-summary__time {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 1em;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.shep-check {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--shep-success);
}

.shep-check--large {
  width: 32px;
  height: 32px;
}

/* Button bar: slides up from the bottom of the screen */
.shep-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--shep-cta) 12%, var(--shep-screen));
  opacity: 0;
  visibility: hidden;
}

.shep-btn {
  position: absolute;
  left: 20px;
  display: grid;
  place-items: center;
  width: 476px;
  height: 64px;
  border-radius: 10px;
  font-size: 26px;
  font-weight: 500;
  color: var(--shep-phone-text);
}

.shep-btn--outline {
  border: 2px solid var(--shep-phone-text);
}

.shep-btn--cta {
  background: var(--shep-cta);
}

/* "Loading confirmed" (note 4): the summaries under the confirmation */
.shep-confirmed {
  opacity: 0;
  visibility: hidden;
}

.shep-confirmed .shep-summary {
  left: 20px;
}

.shep-confirmed__line {
  left: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 1em;
  font-size: 34px;
  font-weight: 500;
}

/* ---------- phone: camera and comment screens ---------- */

.shep-cam,
.shep-comment {
  position: absolute;
  inset: 0;
  visibility: hidden;
}

.shep-cam {
  z-index: 2;
  background: var(--shep-device);
}

.shep-cam__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.shep-cam__scrim {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 200px;
  background: linear-gradient(color-mix(in srgb, var(--shep-screen) 55%, transparent), transparent);
}

.shep-cam__title {
  left: 0;
  right: 0;
  text-align: center;
  font-size: 30px;
  font-weight: 500;
  color: var(--shep-white);
}

.shep-cam__strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--shep-screen) 60%, transparent);
}

.shep-slot {
  position: absolute;
  overflow: hidden;
  border-radius: 10px;
  background: color-mix(in srgb, var(--shep-white) 12%, transparent);
  isolation: isolate;
}

.shep-slot__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

[data-el="epShot"] {
  opacity: 0;
}

/* Photos dim under the trash icons */
.shep-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--shep-screen) 30%, transparent);
}

.shep-slot__trash {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  color: var(--shep-white);
}

.shep-flash {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--shep-white);
  opacity: 0;
  visibility: hidden;
}

.shep-comment {
  z-index: 4;
  background: var(--shep-screen);
}

.shep-comment .shep-summary {
  left: 20px;
}

.shep-comment__label {
  left: 20px;
  font-size: 22px;
  color: var(--shep-phone-muted);
}

/* Two balanced lines, as the WebM's "Delivered - minor damage / to packaging"; a longer comment ends in an ellipsis */
.shep-phone .shep-comment__text {
  position: absolute;
  left: 20px;
  display: -webkit-box;
  width: 380px;
  overflow: hidden;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.32;
  white-space: normal;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.shep-comment__verified {
  left: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 1em;
  font-size: 24px;
  font-weight: 500;
}

.shep-thumb {
  position: absolute;
  max-width: none;
  object-fit: cover;
  border-radius: 8px;
}

/* ---------- cursor (A9's: white fill, Cursor outline, soft shadow; placed by its hotspot) ---------- */

.shep-ripple {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  border: 3px solid var(--shep-cursor);
  background: color-mix(in srgb, var(--shep-cursor) 15%, transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.shep-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Press scale around the hotspot */
.shep-cursor__press {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}

.shep-cursor__arrow,
.shep-cursor__hand {
  position: absolute;
}

.shep-cursor__arrow {
  left: -21px;
  top: -7px;
  width: 112px;
  height: 123px;
  filter: drop-shadow(0 11px 4px rgb(4 22 39 / 0.3));
}

.shep-cursor__hand {
  left: -34px;
  top: -6px;
  width: 92px;
  height: 100px;
  opacity: 0;
  filter: drop-shadow(0 4px 4px rgb(18 19 26 / 0.25));
}

.shep-cursor__fill {
  fill: var(--shep-white);
}

.shep-cursor__outline {
  fill: none;
  stroke: var(--shep-cursor);
}

.shep-cursor__line {
  fill: var(--shep-cursor);
}

/* ---------- Delivery only: frame 0 is the arrived shipment ---------- */

.shep-root[data-story="delivery"] .shep-row {
  --on: 1;
  --w: 1;
}

.shep-root[data-story="delivery"] [data-el="epRow5"] {
  --cur: 1;
}

.shep-root[data-story="delivery"] [data-el="epBand5"],
.shep-root[data-story="delivery"] .shep-badge__fill,
.shep-root[data-story="delivery"] .shep-vehicle__glyph--vessel {
  opacity: 1;
}

.shep-root[data-story="delivery"] [data-el="epTruck"] {
  opacity: 0;
}

.shep-root[data-story="delivery"] .shep-rail__fill {
  transform: scaleY(1);
}

.shep-root[data-story="delivery"] [data-el="epChipLoad"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.shep-root[data-story="delivery"] [data-el="epLayerDelivery"] {
  opacity: 1;
  visibility: visible;
}

