/* =========================================================
   ContainerBooking — global shipment network (the globe section)
   Dark, editorial, one accent. Tokens come from styles.css; the
   section is dark in both site themes.
   ========================================================= */
.network {
  --net-bg: #08090b; --net-bg-2: #15181c; --net-ink: #f4f5f6; --net-soft: #9aa0a6; --net-line: rgba(244, 245, 246, .10); --net-accent: #ff7a45; --net-glass: rgba(13, 16, 18, .86);
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--net-bg); color: var(--net-ink);
  min-height: clamp(640px, 92vh, 960px);
}
/* light theme: the page's paper tokens; the canvas follows through gl.setTheme */
:root:not([data-theme="dark"]) .network { --net-bg: var(--paper); --net-bg-2: var(--paper-2); --net-ink: var(--ink); --net-soft: var(--ink-soft); --net-line: var(--line); --net-accent: var(--accent); --net-glass: rgba(255, 253, 249, .88); }
.network--page { min-height: max(640px, calc(100vh - 72px)); }
.network__stage { position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 60% at 62% 50%, var(--net-bg-2), var(--net-bg) 70%); }
.network__gl { display: block; width: 100%; height: 100%; cursor: grab; opacity: 0; transition: opacity 1.2s ease; }
.network.is-live .network__gl { opacity: 1; }
.network__gl.is-dragging { cursor: grabbing; }
.network__gl.is-over { cursor: pointer; }
.network__static { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.network.is-static .network__static { opacity: 1; }
.network.is-live .network__static { display: none; }

/* copy + feed float over the stage; the globe sits right of centre on desktop */
.network__layout { position: relative; z-index: 1; min-height: inherit; display: grid; grid-template-columns: minmax(300px, 400px) 1fr; grid-template-rows: 1fr auto; padding-top: 96px; padding-bottom: 72px; gap: 32px; pointer-events: none; }
.network__layout > * { pointer-events: auto; }
.network__copy { grid-row: 1; align-self: start; max-width: 420px; }
.network__copy .kicker { color: var(--net-accent); }
.network__copy h1, .network__copy h2 { font-size: clamp(2.1rem, 3.9vw, 3.1rem); color: var(--net-ink); margin-bottom: 18px; }
.network__copy h1 em, .network__copy h2 em { color: var(--net-accent); }
.network__copy p { color: var(--net-soft); font-size: 1.08rem; max-width: 40ch; margin-bottom: 28px; }
.network__copy .btn--light { background: var(--net-ink); color: var(--net-bg); }
.network__copy .btn--light:hover { opacity: .88; }
.network__copy .btn--text { color: var(--net-soft); }
.network__copy .btn--text:hover { color: var(--net-ink); }

.network__feed { grid-column: 1; grid-row: 2; align-self: end; width: min(100%, 380px); border-top: 1px solid var(--net-line); padding-top: 16px; }
.network__feed-head { display: flex; align-items: center; justify-content: space-between; font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--net-soft); margin-bottom: 10px; }
.network__live { display: inline-flex; align-items: center; gap: 8px; color: var(--net-ink); }
.network__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--net-accent); box-shadow: 0 0 0 0 rgba(255, 122, 69, .6); animation: net-pulse 2.4s ease-out infinite; }
@keyframes net-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 69, .55); } 70% { box-shadow: 0 0 0 7px rgba(255, 122, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 69, 0); } }
.network__feed ol { list-style: none; display: grid; gap: 2px; }
.network__item { display: grid; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--net-line); opacity: 0; transform: translateY(-6px); transition: opacity .6s ease, transform .6s var(--ease), background .2s; cursor: pointer; }
.network__item.is-in { opacity: 1; transform: none; }
.network__item:hover .network__lane { color: var(--net-accent); }
.network__lane { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: .98rem; letter-spacing: -.01em; color: var(--net-ink); transition: color .2s; }
.network__lane i { font-style: normal; color: var(--net-accent); margin: 0 .2em; }
.network__meta { font-family: "IBM Plex Mono", monospace; font-size: .74rem; color: var(--net-soft); }
.network__feed ol li:nth-child(n+4) { opacity: .55; }
.network__feed ol li:nth-child(n+5) { opacity: .3; }

/* hover tooltip, follows the pointer */
.network__tip { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; display: grid; gap: 1px; padding: 8px 12px; border-radius: 8px; background: var(--net-glass); border: 1px solid var(--net-line); backdrop-filter: blur(8px); white-space: nowrap; margin-left: -50%; transform-origin: 50% 100%; }
.network__tip { margin: 0; translate: -50% -100%; }
.network__tip[hidden] { display: none; }
.network__tip b { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .9rem; letter-spacing: -.01em; }
.network__tip span { font-family: "IBM Plex Mono", monospace; font-size: .7rem; color: var(--net-soft); }

/* selection panel */
.network__panel { position: absolute; z-index: 4; right: 28px; bottom: 28px; width: min(360px, calc(100% - 56px)); padding: 22px 24px 18px; border-radius: 14px; background: var(--net-glass); border: 1px solid var(--net-line); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); animation: net-rise .45s var(--ease); }
.network__panel[hidden] { display: none; }
@keyframes net-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.network__panel .kicker { color: var(--net-accent); margin-bottom: 8px; font-size: .7rem; }
.network__panel h3 { font-size: 1.3rem; margin-bottom: 14px; padding-right: 28px; }
.network__panel h3 i { font-style: normal; color: var(--net-accent); }
.network__panel dl { display: grid; gap: 7px; }
.network__panel dl > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: .9rem; }
.network__panel dt { color: var(--net-soft); font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.network__panel dd { color: var(--net-ink); }
.network__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6fcf9a; margin-right: 8px; vertical-align: 1px; }
.network__demo { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--net-line); font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--net-soft); }
.network__close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: none; border-radius: 8px; background: transparent; color: var(--net-soft); font-size: .85rem; cursor: pointer; transition: background .15s, color .15s; }
.network__close:hover { background: var(--net-line); color: var(--net-ink); }

/* interaction hint, fades after first use */
.network__hint { position: absolute; z-index: 2; right: 28px; top: 28px; font-family: "IBM Plex Mono", monospace; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--net-soft); opacity: .8; transition: opacity .8s ease; pointer-events: none; }
.network__hint.is-hidden, .network.is-static .network__hint { opacity: 0; }
.network__hint b { color: var(--net-ink); font-weight: 500; }

/* the hairline that leads into the footer */
.network::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--net-line); }

@media (max-width: 1023px) {
  .network__layout { grid-template-columns: minmax(260px, 320px) 1fr; padding-top: 72px; padding-bottom: 56px; }
  .network__copy h1, .network__copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.4rem); }
  .network__feed { width: min(100%, 320px); }
}
@media (max-width: 899px) {
  .network { min-height: 0; }
  .network__stage { position: absolute; }
  .network__layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; padding-top: 64px; padding-bottom: 40px; gap: 0; min-height: calc(min(100vw, 560px) * 1.4 + 320px); }
  .network__copy { max-width: none; }
  .network__copy p { margin-bottom: 22px; }
  .network__feed { grid-row: 3; width: 100%; }
  .network__feed ol li:nth-child(n+3) { display: none; }
  .network__panel { right: 16px; left: 16px; bottom: 16px; width: auto; padding: 18px 18px 14px; }
  .network__hint { display: none; }
  .network__gl { touch-action: pan-y; }
}
@media (prefers-reduced-motion: reduce) {
  .network__live i { animation: none; }
  .network__item { transition: none; }
  .network__panel { animation: none; }
}

/* the notes under the globe on live.html */
.live-notes { padding: 56px 0 72px; border-top: 1px solid var(--line); }
.live-notes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.live-notes h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.live-notes p { color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.live-notes a { color: var(--accent); }
@media (max-width: 760px) { .live-notes { padding: 40px 0 56px; } .live-notes__grid { grid-template-columns: 1fr; gap: 24px; } }
.live-notes .reveal { transition-delay: calc(var(--i, 0) * 90ms); }
