/* Services: every check has a place on the box. Without JavaScript it is a readable list; box.js adds .box-live,
   which holds the section while an x-ray of the container turns to the part each service concerns. */
.box-services {
  position: relative; isolation: isolate; padding: var(--section-space) var(--content);
  background: #070907; color: var(--white); color-scheme: dark; --focus-color: var(--signal);
}
.box-title { margin: 0 0 40px; font: 750 var(--section-title)/1.05 var(--display); letter-spacing: -.055em; }
.box-stage, .box-track, .box-callout { display: none; }
.box-copy { max-width: 640px; margin-bottom: clamp(48px, 8vw, 96px); }
.box-copy:focus { outline: none; }
.box-copy h3 { margin: 0 0 clamp(18px, 3svh, 30px); font: 740 clamp(3.1rem, 8.4vw, 8.6rem)/.9 var(--display); letter-spacing: -.068em; }
.box-copy dl { margin: 0 0 22px; max-width: 34rem; }
.box-copy dl div { padding: 13px 0; border-top: 1px solid #ffffff2b; }
.box-copy dt { font: 700 clamp(1.1rem, 1.4vw, 1.4rem)/1.2 var(--display); letter-spacing: -.02em; }
.box-copy dd { margin: 5px 0 0; color: #e2e2e2; font-size: clamp(1rem, 1.12vw, 1.1rem); }
.box-copy > a { display: inline-block; padding: .22rem 0; color: var(--signal); font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid var(--signal-line); }
@media (hover: hover) and (pointer: fine) { .box-copy > a:hover { border-color: var(--signal); } }
.box-rail { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 44px; font: 700 clamp(1.2rem, 2.2vw, 2rem)/1 var(--display); letter-spacing: -.045em; }
.box-rail a { position: relative; padding-top: 18px; color: #ffffff8c; white-space: nowrap; transition: color .3s ease, scale 140ms cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) and (pointer: fine) { .box-rail a:hover { color: #ffffffd0; } }
.box-rail a[aria-current] { color: var(--white); }
.box-rail a::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--signal);
  box-shadow: 0 0 14px #43ff71aa; transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.8,.25,1);
}
.box-rail a[aria-current]::before { transform: none; }

.box-services.box-live { padding: 0; }
.box-live .box-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.box-live .box-stage {
  display: block; position: sticky; top: 0; z-index: 0; height: 100vh; height: 100svh; overflow: hidden; pointer-events: none;
}
.box-ground {
  position: absolute; inset: 0; background: url("terminal.webp") 50% 64% / cover; opacity: .34;
  filter: grayscale(1) contrast(1.1); transform: translateX(var(--box-pan, 0%)) scale(1.06);
}
.box-ground::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #070907 0%, #070907e6 32%, #07090733 60%, #07090799 100%),
              linear-gradient(180deg, #070907cc, transparent 30%, transparent 70%, #070907);
}
#box-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.box-live.is-ocean .box-stage { pointer-events: auto; cursor: grab; touch-action: pan-y; }
.box-live.is-ocean .box-stage.is-dragging { cursor: grabbing; }
.box-live .box-overlay {
  position: sticky; top: 0; z-index: 1; height: 100vh; height: 100svh; margin-top: -100vh; margin-top: -100svh; pointer-events: none;
}
.box-live .box-copy {
  position: absolute; left: var(--content); top: 19svh; margin: 0; width: min(40vw, 560px);
  opacity: var(--copy-show, 0); transform: translate3d(0, var(--copy-shift, 0px), 0); pointer-events: none;
}
.box-live .box-copy.is-current, .box-live .box-copy:focus-within { pointer-events: auto; }
.box-live .box-copy:focus-within { opacity: 1; transform: none; filter: none !important; }
.box-live .box-copy h3 { white-space: nowrap; }
.box-live .box-copy dl div { color: #ffffff8f; transition: color .3s ease; }
.box-live .box-copy dl div dd { color: inherit; }
.box-live .box-copy dl div.is-lit { color: var(--white); }
.box-live .box-copy dl div.is-lit dt::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 12px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 10px var(--signal); vertical-align: 2px;
}
.box-live .box-callout {
  display: block; position: absolute; left: calc(72vw - var(--content)); top: 1svh; width: min(24vw, 340px); margin: 0;
  font: 400 clamp(1rem, 1.2vw, 1.15rem)/1.4 Arial, sans-serif; color: #d8d8d8;
}
.box-live .box-callout strong {
  display: block; margin-bottom: 10px; color: var(--white);
  font: 700 clamp(1.6rem, 2.4vw, 2.3rem)/1.04 var(--display); letter-spacing: -.045em;
}
.box-live .box-rail {
  position: absolute; left: 0; right: 0; bottom: 0; height: 104px; margin: 0; flex-wrap: nowrap;
  align-items: flex-start; justify-content: space-between; gap: 24px; padding: 0 var(--content); pointer-events: auto;
}
.box-live .box-rail a { color: #ffffff57; }
@media (hover: hover) and (pointer: fine) { .box-live .box-rail a:hover { color: #ffffffb3; } }
.box-live .box-rail a[aria-current] { color: var(--white); }
.box-live .box-track { display: block; margin-top: -100vh; margin-top: -100svh; }
.box-track div { height: 115vh; height: 115svh; }
.box-track div:last-child { height: 150vh; height: 150svh; }
@media (max-width: 760px) {
  .box-ground::after { background: linear-gradient(180deg, #070907 0%, #070907e0 40%, #07090740 62%, #070907cc 100%); }
  .box-live .box-copy { top: 10svh; right: var(--content); width: auto; }
  .box-copy h3 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .box-live .box-copy dl div { padding: 7px 0; }
  .box-copy dd { font-size: .95rem; }
  .box-live .box-callout { display: none; }
  /* All four services fit as a two-by-two grid, so none is cut off. */
  .box-live .box-rail {
    display: grid; grid-template-columns: 1fr 1fr; height: auto; gap: 2px 16px; font-size: 1rem;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, transparent, #070907e6 30%);
  }
  .box-rail a { padding-top: 12px; padding-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .box-ground { transform: scale(1.06); }
  .box-rail a, .box-rail a::before, .box-live .box-copy dl div { transition: none; }
}

/* How we work: the same box at three moments, each changing as its row arrives. */
.moments { position: relative; padding: var(--section-space) var(--content); background: #070907; color: var(--white); color-scheme: dark; border-top: 1px solid #ffffff1a; --focus-color: var(--signal); }
.moments:focus { outline: none; }
.moments-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); align-items: end; gap: 24px 48px; margin-bottom: clamp(28px, 4.5vw, 60px); }
.moments-head h2 { margin: 0; font: 750 clamp(2.8rem, 6.2vw, 6.4rem)/.92 var(--display); letter-spacing: -.068em; }
.moments-head p { margin: 0; color: #d6d6d6; font-size: clamp(1.05rem, 1.25vw, 1.25rem); }
.moment { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 24px 48px; border-top: 1px solid #ffffff26; padding: clamp(14px, 2vw, 26px) 0; }
.moment:last-child { border-bottom: 1px solid #ffffff26; }
.moment-copy h3 { margin: 0 0 14px; font: 740 clamp(2.1rem, 4.4vw, 4.5rem)/.95 var(--display); letter-spacing: -.06em; }
.moment-copy p { margin: 0; max-width: 32ch; color: #e2e2e2; font-size: clamp(1.05rem, 1.3vw, 1.3rem); }
.moment canvas { display: block; width: 100%; height: clamp(230px, 25vw, 340px); }
.moments:not(.moments-live) .moment canvas { display: none; }
@media (max-width: 760px) {
  .moments-head, .moment { grid-template-columns: 1fr; }
  .moment canvas { height: 210px; }
}

/* Quote planner: the dark world carries on; the x-ray box shows the equipment being requested. */
.planner-section { background: #070907; color: var(--white); color-scheme: dark; border-top: 1px solid #ffffff1a; }
.planner-section .section-head h2 { font: 750 clamp(2.8rem, 6.2vw, 6.4rem)/.92 var(--display); letter-spacing: -.068em; }
.planner-section .section-head p { color: #d6d6d6; font-size: clamp(1.05rem, 1.25vw, 1.25rem); }
.planner-grid { gap: clamp(24px, 4vw, 64px); grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border: 0; border-radius: 0; background: transparent; overflow: visible; align-items: start; }
.shipment-form { padding: 0; background: transparent; }
.form-grid label { color: #e8efe9; font-size: .95rem; }
.form-grid :is(input, select, textarea) { background: #0d130f; color: #f2fff5; border: 1px solid #34503d; border-radius: 2px; }
@media (hover: hover) and (pointer: fine) { .form-grid :is(input, select, textarea):hover { border-color: #4f7a5b; } }
.form-grid :is(input, select, textarea):focus { border-color: var(--signal); }
.form-grid :is(input, textarea)::placeholder, .optional { color: #9db3a3; }
.shipment-form :focus-visible { outline-color: var(--signal); }
.shipment-form .button { background: transparent; color: var(--white); border: 1px solid #ffffff59; }
@media (hover: hover) and (pointer: fine) { .shipment-form .button:hover { background: #ffffff14; } }
.shipment-form .button.button-accent { background: var(--signal); color: #0b0b0b; border-color: var(--signal); }
@media (hover: hover) and (pointer: fine) { .shipment-form .button.button-accent:hover { background: #b0ffc3; } }
.brief { background: #0b120d; color: var(--white); border: 1px solid #22382a; border-radius: 2px; }
.brief-empty, .brief-route span, .brief-data dt { color: #c9d6cc; }
.planner-box { margin: calc(-1 * clamp(21px, 3vw, 36px)) calc(-1 * clamp(21px, 3vw, 36px)) 18px; border-bottom: 1px solid #22382a; background: radial-gradient(ellipse 70% 80% at 50% 70%, #43ff7112, transparent 70%); }
.planner-box canvas { display: block; width: 100%; height: clamp(200px, 19vw, 270px); }

/* Resources and FAQ: rows of large type on the dark grid, rising in with the scroll. */
.dossier { padding: var(--section-space) var(--content); background: #070907; color: var(--white); color-scheme: dark; border-top: 1px solid #ffffff1a; --focus-color: var(--signal); }
.dossier > h2 { margin: 0 0 clamp(28px, 4.5vw, 60px); font: 750 clamp(2.8rem, 6.2vw, 6.4rem)/.92 var(--display); letter-spacing: -.068em; max-width: 12ch; }
.dossier-row { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 16px 48px; padding: clamp(22px, 3vw, 40px) 0; border-top: 1px solid #ffffff26; }
.dossier-row:last-child { border-bottom: 1px solid #ffffff26; }
.dossier-row h3 { margin: 0; font: 700 clamp(1.25rem, 1.7vw, 1.7rem)/1.15 var(--display); letter-spacing: -.03em; color: #cfe0d4; }
.dossier-link { display: inline-block; font: 740 clamp(2rem, 4vw, 4rem)/1 var(--display); letter-spacing: -.06em; color: var(--white); border-bottom: 3px solid var(--signal); padding-bottom: 6px; transition: color .25s ease; }
@media (hover: hover) and (pointer: fine) { .dossier-link:hover { color: var(--signal); } }
.dossier-body p { margin: 18px 0 0; max-width: 46ch; color: #e0e0e0; font-size: clamp(1.05rem, 1.25vw, 1.25rem); }
.dossier .questions { margin: 0; }
.dossier .questions details { border-top: 1px solid #ffffff1f; }
.dossier .questions details:first-child { border-top: 0; }
.dossier .questions summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 4px 0 18px; cursor: pointer; list-style: none;
  font: 740 clamp(1.6rem, 2.8vw, 2.8rem)/1.05 var(--display); letter-spacing: -.05em;
}
.dossier .questions details + details summary { padding-top: 18px; }
.dossier .questions summary::-webkit-details-marker { display: none; }
.dossier .questions summary::after { content: "+"; flex: none; color: var(--signal); font-weight: 400; transition: transform .3s ease; }
.dossier .questions details[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .dossier .questions summary:hover { color: #d6ffe0; } }
.dossier .questions details p { margin: -4px 0 22px; max-width: 54ch; color: #e0e0e0; font-size: clamp(1.05rem, 1.25vw, 1.25rem); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .dossier-row, .dossier > h2 { animation: dossier-rise linear both; animation-timeline: view(); animation-range: entry 5% entry 75%; }
  }
}
@keyframes dossier-rise { from { opacity: 0; transform: translateY(48px); } }

/* Footer: a dark harbour ending that leaves one action. */
.harbour-footer { position: relative; overflow: clip; background: #050705; padding-top: clamp(90px, 14vw, 200px); border-top: 1px solid #ffffff1a; }
.harbour-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, #050705 0%, #050705b3 30%, #05070566 60%, #050705 100%), url("harbor.webp") 50% 40% / cover;
  filter: grayscale(1) contrast(1.15); opacity: .55;
}
.harbour-footer::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 35%, #43ff7124, transparent 70%); mix-blend-mode: screen;
}
.footer-close { grid-column: 1 / -1; display: grid; justify-items: start; gap: clamp(22px, 3vw, 36px); margin-bottom: clamp(60px, 9vw, 130px); }
.harbour-footer .footer-line { margin: 0; max-width: 16ch; font: 750 clamp(2.8rem, 7vw, 7.2rem)/.92 var(--display); letter-spacing: -.068em; color: var(--white); padding: 0; border: 0; grid-column: auto; }
.footer-quote { min-height: 56px; padding-inline: 30px; font-size: 1.05rem; }
.harbour-footer .footer-note { color: #c8d3cb; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .harbour-footer::before { animation: harbour-brighten linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
    .footer-line { animation: dossier-rise linear both; animation-timeline: view(); animation-range: entry 10% entry 80%; }
  }
}
@keyframes harbour-brighten { from { opacity: .12; } to { opacity: .55; } }
@media (max-width: 760px) {
  .dossier-row { grid-template-columns: 1fr; }
  .planner-grid { grid-template-columns: 1fr; }
}

/* The chat button steps up clear of the Services rail while it runs along the bottom of the screen. */
.freight-chat-launcher { transition: scale 140ms cubic-bezier(.23, 1, .32, 1), translate 320ms cubic-bezier(.23, 1, .32, 1); }
body.over-rail .freight-chat-launcher { translate: 0 -96px; }
@media (max-width: 760px) { body.over-rail .freight-chat-launcher { translate: 0 -108px; } }
@media (prefers-reduced-motion: reduce) { .freight-chat-launcher { transition: none; } }
