/* ============================================================
   S J LOGISTICS — pages.css
   Inner pages: manifest-strip hero, solution index/detail,
   industries, about (voyage timeline), contact (booking slip),
   404 (off-route radar).
   ============================================================ */

/* ===== PAGE HERO — the manifest strip ===== */
.ph { position: relative; overflow: hidden; padding: var(--sec-pad-lg) var(--gut) clamp(64px, 9vw, 110px);
  background: linear-gradient(165deg, #2a2140 0%, #3c2b5d 52%, #2b2a29 100%); color: #fff; }

/* Industries hero — full-bleed background image behind the gradient */
.ph-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("https://images.pexels.com/photos/29822715/pexels-photo-29822715.jpeg?auto=compress&cs=tinysrgb&w=1600");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  opacity: 0.18;
  transform: scale(1.04);
  transition: opacity 0.4s ease;
  /* subtle slow zoom for life */
  animation: ph-bgzoom 20s ease-in-out infinite alternate;
}
@keyframes ph-bgzoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}
/* The existing gradient sits on top via z-index layering:
   bg-img (0) → ph-floor (0) → orbs (0) → ph-inner (2) */
.ph-industries { background: linear-gradient(165deg, rgba(42,33,64,.92) 0%, rgba(60,43,93,.85) 52%, rgba(43,42,41,.92) 100%); }

/* Industry DETAIL hero — image comes from the per-industry --hero-img CSS var */
.ph-industry-detail { background: linear-gradient(165deg, rgba(42,33,64,.92) 0%, rgba(60,43,93,.85) 52%, rgba(43,42,41,.92) 100%); }
.ph-industry-detail .ph-bg-img {
  /* falls back to the port cranes shot if i.image is somehow blank */
  background-image: var(--hero-img, url("https://images.pexels.com/photos/29822715/pexels-photo-29822715.jpeg?auto=compress&cs=tinysrgb&w=1600"));
}

/* Solution DETAIL hero — image comes from the per-solution --hero-img CSS var */
.ph-solution-detail { background: linear-gradient(165deg, rgba(42,33,64,.92) 0%, rgba(60,43,93,.85) 52%, rgba(43,42,41,.92) 100%); }
.ph-solution-detail .ph-bg-img {
  background-image: var(--hero-img, url("https://images.pexels.com/photos/1554646/pexels-photo-1554646.jpeg?auto=compress&cs=tinysrgb&w=1600"));
}

@media (prefers-reduced-motion: reduce) {
  .ph-bg-img { animation: none !important; transform: scale(1.04) !important; }
}
.ph-floor { position: absolute; left: -50%; right: -50%; bottom: -34%; height: 90%; z-index: 0;
  background-image: linear-gradient(to right, rgba(196,181,253,.10) 1px, transparent 1px), linear-gradient(to bottom, rgba(196,181,253,.10) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(560px) rotateX(67deg); transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.6), transparent 72%); mask-image: linear-gradient(to top, rgba(0,0,0,.6), transparent 72%);
  animation: ph-floormove 12s linear infinite; opacity: .45; }
@keyframes ph-floormove { from { background-position: 0 0; } to { background-position: 0 56px; } }
.ph-orb { position: absolute; border-radius: 50%; filter: blur(84px); opacity: .45; z-index: 0; pointer-events: none; }
.ph-orb.a { width: 340px; height: 340px; background: #8b5cf6; left: -110px; top: -120px; }
.ph-orb.b { width: 300px; height: 300px; background: #d946ef; right: -90px; bottom: -110px; }
.ph-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; }
/* doc code — like a waybill header */
.ph-doc { display: inline-flex; align-items: center; gap: 10px; font-family: "JetBrains Mono", monospace; font-size: 11.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(225,216,250,.85);
  border: 1px solid rgba(196,181,253,.3); border-radius: 999px; padding: 7px 15px; background: rgba(255,255,255,.05); }
.ph-doc::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c084fc; box-shadow: 0 0 0 4px rgba(168,85,247,.22); }
/* route breadcrumb — port calls */
.ph-route { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 22px;
  font-family: "JetBrains Mono", monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.ph-route a { color: rgba(225,216,250,.66); transition: color .2s ease; display: inline-flex; align-items: center; gap: 9px; }
.ph-route a:hover { color: #fff; }
.ph-route .pc-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(196,181,253,.5); }
.ph-route .cur { color: #fff; display: inline-flex; align-items: center; gap: 9px; }
.ph-route .cur .pc-dot { background: #c084fc; box-shadow: 0 0 0 4px rgba(168,85,247,.2); }
.ph-route .sep { width: 26px; height: 1.5px; background: repeating-linear-gradient(90deg, rgba(196,181,253,.55) 0 4px, transparent 4px 8px); }
.ph h1 { font-family: "Space Grotesk"; font-weight: 700; letter-spacing: -.025em; line-height: 1.03;
  font-size: clamp(38px, 6vw, 72px); margin: 18px 0 0; color: #fff; max-width: 18ch; text-wrap: balance; }
/* Long editorial headlines need their own scale — the marketing size
   turns a 12-word article title into a wall of text. */
.ph.ph-article h1 { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.14; max-width: 26ch; }
.ph.ph-article .ph-sub { font-size: clamp(15px, 1.6vw, 17px); max-width: 62ch; }
.ph h1 .g { background: linear-gradient(100deg, #c4a5ff, #8b5cf6 60%, #d946ef); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 16px rgba(139,92,246,.4)); }
.ph-sub { margin: 18px 0 0; max-width: 56ch; font-size: clamp(15.5px, 1.8vw, 18px); line-height: 1.62; color: rgba(231,224,250,.82); }
.ph-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ph-meta span { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(225,216,250,.72);
  border: 1px solid rgba(196,181,253,.28); border-radius: 999px; padding: 6px 12px; }
/* travelling route dot along the hero's bottom edge */
.ph-lane { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(196,181,253,.35), transparent); }
.ph-lane::after { content: ""; position: absolute; top: 50%; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: #c4a5ff; box-shadow: 0 0 12px 2px rgba(168,85,247,.7); transform: translate(-50%,-50%); animation: ph-fly 8s linear infinite; }
@keyframes ph-fly { 0% { left: -2%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 102%; opacity: 0; } }
.ph-num { position: absolute; right: 24px; bottom: -8px; z-index: 1; font-family: "JetBrains Mono", monospace; font-weight: 700;
  font-size: clamp(90px, 18vw, 220px); line-height: 1; letter-spacing: -.04em; color: rgba(255,255,255,.05); pointer-events: none; user-select: none; }

/* ===== shared section shells ===== */
.sx { padding: var(--sec-pad) var(--gut); }
.sx-inner { max-width: 1180px; margin: 0 auto; }
.sx-light { background: linear-gradient(180deg, #ffffff, #f6f3fc); }
[data-theme="dark"] .sx-light { background: linear-gradient(180deg, #0d0719, #160f28); }
.sx-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #7c46c9; }
.sx-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8b5cf6; box-shadow: 0 0 0 4px rgba(139,92,246,.18); }
[data-theme="dark"] .sx-eyebrow { color: #c4a5ff; }
.sx-h2 { font-family: "Space Grotesk"; font-weight: 700; letter-spacing: -.02em; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.06; margin: 16px 0 0; color: var(--ink); }
.sx-h2 .g { background: linear-gradient(100deg, #633599, #8b5cf6 60%, #d946ef); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sx-sub { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 56ch; }
/* Reveal utility — only hides content when JS is confirmed running, so a
   script failure can never leave a section blank. A safety timer in
   pages.js reveals anything the observer misses. */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
html.js [data-reveal].in { opacity: 1; transform: none; }
/* Already on screen at load — show instantly, no fade, no movement. */
html.js [data-reveal].no-anim { transition: none; opacity: 1; transform: none; }

/* ===== SOLUTIONS INDEX — the fleet grid ===== */
.gx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(34px, 5vw, 52px); }
.gx-card { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 18px 40px -28px rgba(60,43,93,.4);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease; }
[data-theme="dark"] .gx-card { background: rgba(255,255,255,.04); }
.gx-card:hover { transform: translateY(-7px); border-color: rgba(139,92,246,.45); box-shadow: 0 34px 64px -30px rgba(99,53,153,.5), 0 0 30px -12px rgba(139,92,246,.4); }
.gx-media { position: relative; height: 190px; overflow: hidden; background: linear-gradient(150deg, #3c2b5d, #8b5cf6); }
.gx-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.gx-card:hover .gx-media img { transform: scale(1.08); }
.gx-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,30,.05), rgba(20,14,30,.45)); }
.gx-num { position: absolute; z-index: 2; top: 14px; left: 16px; font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 30px;
  color: rgba(255,255,255,.94); text-shadow: 0 3px 16px rgba(0,0,0,.5); letter-spacing: -.02em; }
.gx-ic { position: absolute; z-index: 2; right: 14px; bottom: -19px; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, #633599, #8b5cf6); box-shadow: 0 10px 22px -8px rgba(99,53,153,.7); }
.gx-ic svg { width: 21px; height: 21px; }
.gx-body { padding: 24px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.gx-name { font-family: "Space Grotesk"; font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--ink); margin: 0; }
.gx-desc { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); flex: 1; }
.gx-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; font-size: 14px; color: #7c46c9; }
[data-theme="dark"] .gx-go { color: #c4a5ff; }
.gx-go svg { width: 16px; height: 16px; transition: transform .25s ease; }
.gx-card:hover .gx-go svg { transform: translateX(5px); }
@media (max-width: 940px) { .gx-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gx-grid { grid-template-columns: 1fr; } }

/* ===== SOLUTION DETAIL ===== */
.sd-grid { display: grid; grid-template-columns: 1.5fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.sd-lead { font-family: "Space Grotesk"; font-weight: 600; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.35; letter-spacing: -.01em; color: var(--ink); margin: 0; }
.sd-lead::first-letter { color: #7c46c9; }
.sd-body { margin: 18px 0 0; font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 62ch; }
/* Structured HTML content inside sd-body (shipping solutions sub-sections) */
.sd-body h3 { font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(17px, 2vw, 21px); color: var(--ink); margin: 32px 0 8px; }
.sd-body h3:first-child { margin-top: 0; }
.sd-body p { margin: 0 0 10px; }
.sd-body b { color: var(--ink); font-weight: 700; font-size: 13.5px; display: block; margin: 14px 0 6px; }
.sd-body ul { list-style: disc; padding-left: 22px; margin: 0 0 18px; display: flex; flex-direction: column; gap: 4px; }
.sd-body ul li { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.sd-media { position: relative; margin-top: clamp(28px, 4vw, 40px); border-radius: 22px; overflow: hidden; height: clamp(260px, 30vw, 380px);
  border: 1px solid rgba(196,181,253,.2); box-shadow: 0 36px 70px -34px rgba(60,43,93,.5); background: linear-gradient(150deg, #3c2b5d, #8b5cf6); }
.sd-media img { width: 100%; height: 100%; object-fit: cover; }
.sd-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,14,30,.55)); }
.sd-media .tag { position: absolute; z-index: 2; left: 18px; bottom: 16px; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; background: rgba(20,14,33,.6); backdrop-filter: blur(8px); border: 1px solid rgba(196,181,253,.3);
  border-radius: 999px; padding: 7px 14px; }
/* checklist — customs-check squares */
.sd-checks { margin: clamp(30px, 4vw, 44px) 0 0; }
.sd-checks h3 { font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); margin: 0 0 18px; }
.sd-check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sd-check-list li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--border); font-size: 14.5px; line-height: 1.5; color: var(--ink);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
[data-theme="dark"] .sd-check-list li { background: rgba(255,255,255,.04); }
.sd-check-list li:hover { border-color: rgba(139,92,246,.45); box-shadow: 0 14px 30px -18px rgba(99,53,153,.4); transform: translateY(-2px); }
.sd-check-list .bx { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.6px solid #8b5cf6; display: grid; place-items: center; margin-top: 1px;
  background: rgba(139,92,246,.08); }
.sd-check-list .bx svg { width: 12px; height: 12px; stroke: #7c46c9; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(139,92,246,.5)); }
[data-theme="dark"] .sd-check-list .bx svg { stroke: #c4a5ff; }
@media (max-width: 640px) { .sd-check-list { grid-template-columns: 1fr; } }
/* rate-card rail */
.sd-rail { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 16px; }
.sd-card { border-radius: 20px; padding: 22px; background: linear-gradient(165deg, #2a2140, #1a1229); color: #fff;
  border: 1px solid rgba(196,181,253,.22); box-shadow: 0 34px 70px -32px rgba(20,12,36,.7), inset 0 1px 0 rgba(255,255,255,.06); }
.sd-card .k { font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #c4a5ff; }
.sd-facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; }
.sd-facts li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed rgba(196,181,253,.22); }
.sd-facts li:last-child { border-bottom: none; }
.sd-facts .fk { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(225,216,250,.6); padding-top: 3px; white-space: nowrap; }
.sd-facts .fv { font-family: "Space Grotesk"; font-weight: 600; font-size: 14.5px; text-align: right; color: #fff; }
.sd-card .a-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 18px; padding: 14px 20px;
  border-radius: 999px; color: #fff; font-weight: 700; font-size: 14.5px; }
.sd-card .a-cta svg { width: 16px; height: 16px; }
.sd-call { display: flex; align-items: center; gap: 12px; border-radius: 16px; padding: 15px 17px; background: #fff; border: 1px solid var(--border);
  color: var(--ink); box-shadow: 0 16px 36px -26px rgba(60,43,93,.5); transition: transform .25s ease, border-color .25s ease; }
[data-theme="dark"] .sd-call { background: rgba(255,255,255,.05); }
.sd-call:hover { transform: translateY(-2px); border-color: rgba(139,92,246,.45); }
.sd-call .ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, #633599, #8b5cf6); box-shadow: 0 8px 18px -8px rgba(139,92,246,.6); }
.sd-call .ic svg { width: 18px; height: 18px; }
.sd-call b { font-family: "Space Grotesk"; font-weight: 600; font-size: 14.5px; display: block; }
.sd-call span { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
@media (max-width: 880px) { .sd-grid { grid-template-columns: 1fr; } .sd-rail { position: static; } }
/* related */
.sd-rel { margin-top: clamp(48px, 7vw, 72px); padding-top: clamp(36px, 5vw, 52px); border-top: 1px solid var(--border); }
.sd-rel h3 { font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); margin: 0 0 20px; }
.sd-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sd-rel-card { display: flex; align-items: center; gap: 13px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
[data-theme="dark"] .sd-rel-card { background: rgba(255,255,255,.04); }
.sd-rel-card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.45); box-shadow: 0 22px 44px -26px rgba(99,53,153,.5); }
.sd-rel-card .num { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 13px; color: #7c46c9; flex: none; }
[data-theme="dark"] .sd-rel-card .num { color: #c4a5ff; }
.sd-rel-card .ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #7c46c9;
  background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.25); }
[data-theme="dark"] .sd-rel-card .ic { color: #c4a5ff; }
.sd-rel-card .ic svg { width: 18px; height: 18px; }
.sd-rel-card b { font-family: "Space Grotesk"; font-weight: 600; font-size: 14.5px; color: var(--ink); }
@media (max-width: 720px) { .sd-rel-grid { grid-template-columns: 1fr; } }

/* ===== INDUSTRIES PAGE ===== */
.ix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(34px, 5vw, 50px); }
.ix-card { position: relative; overflow: hidden; border-radius: 20px; padding: 24px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 16px 36px -28px rgba(60,43,93,.4); transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease; }
[data-theme="dark"] .ix-card { background: rgba(255,255,255,.04); }
.ix-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--acc), transparent 80%); opacity: .85; }
.ix-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--acc) 45%, transparent);
  box-shadow: 0 30px 56px -30px color-mix(in srgb, var(--acc) 55%, transparent); }
.ix-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, color-mix(in srgb, var(--acc) 80%, #3c2b5d), color-mix(in srgb, var(--acc) 40%, #2b2a29));
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--acc) 70%, transparent); }
.ix-ic svg { width: 23px; height: 23px; }
.ix-name { font-family: "Space Grotesk"; font-weight: 700; font-size: 18.5px; color: var(--ink); margin: 16px 0 0; }
.ix-tag { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.ix-copy { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.ix-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 700; font-size: 13.5px; color: #7c46c9; }
[data-theme="dark"] .ix-link { color: #c4a5ff; }
.ix-link svg { width: 15px; height: 15px; transition: transform .25s ease; }
.ix-card:hover .ix-link svg { transform: translateX(4px); }
@media (max-width: 940px) { .ix-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ix-grid { grid-template-columns: 1fr; } }

/* ===== ABOUT — voyage timeline ===== */
.tl-wrap { position: relative; max-width: 760px; margin: clamp(36px, 5vw, 56px) auto 0; }
.tl-line { position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px;
  background: repeating-linear-gradient(180deg, rgba(139,92,246,.55) 0 6px, transparent 6px 13px); }
.tl-item { position: relative; padding: 0 0 clamp(30px, 4vw, 42px) 62px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 8px; top: 2px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #8b5cf6;
  background: var(--bg-2); display: grid; place-items: center; box-shadow: 0 0 0 5px rgba(139,92,246,.12); }
.tl-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(140deg, #633599, #8b5cf6); }
.tl-item:last-child .tl-dot { border-color: #d946ef; box-shadow: 0 0 0 5px rgba(217,70,239,.14); }
.tl-item:last-child .tl-dot::after { background: linear-gradient(140deg, #a855f7, #d946ef); }
.tl-year { font-family: "JetBrains Mono", monospace; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #7c46c9; }
[data-theme="dark"] .tl-year { color: #c4a5ff; }
.tl-title { font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(18px, 2.2vw, 23px); color: var(--ink); margin: 6px 0 0; }
.tl-text { margin: 8px 0 0; font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 58ch; }
/* credentials */
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(30px, 4vw, 44px); }
.cred-card { display: flex; gap: 13px; align-items: flex-start; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
[data-theme="dark"] .cred-card { background: rgba(255,255,255,.04); }
.cred-card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.4); box-shadow: 0 20px 40px -28px rgba(99,53,153,.5); }
.cred-card .ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, #633599, #8b5cf6); box-shadow: 0 8px 18px -8px rgba(139,92,246,.6); }
.cred-card .ic svg { width: 19px; height: 19px; }
/* logo variant — image fills the icon box, fallback to shield SVG */
.cred-logo-wrap { background: #fff; border: 1px solid var(--border); box-shadow: 0 4px 12px -6px rgba(60,43,93,.25); overflow: hidden; }
[data-theme="dark"] .cred-logo-wrap { background: rgba(255,255,255,.08); }
.cred-logo-wrap img { width: 32px; height: 32px; max-width: 32px; max-height: 32px; object-fit: contain; display: block; padding: 4px; }
.cred-card b { font-family: "Space Grotesk"; font-weight: 600; font-size: 15px; color: var(--ink); display: block; }
.cred-card span { font-size: 13px; line-height: 1.5; color: var(--muted); display: block; margin-top: 4px; }
@media (max-width: 880px) { .cred-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cred-grid { grid-template-columns: 1fr; } }

/* ===== CERTIFICATIONS — logo + info cards (About page) ===== */
.cert-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: clamp(30px, 4vw, 48px); }
.cert-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 24px 18px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 14px 32px -24px rgba(60,43,93,.35);
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s ease, box-shadow .3s ease; }
[data-theme="dark"] .cert-card { background: rgba(255,255,255,.04); border-color: rgba(196,181,253,.14); }
.cert-card:hover { transform: translateY(-6px); border-color: rgba(139,92,246,.4); box-shadow: 0 26px 52px -28px rgba(99,53,153,.5); }
/* logo box */
.cert-logo { position: relative; width: 80px; height: 60px; display: flex; align-items: center; justify-content: center; flex: none; }
.cert-logo img { max-width: 80px; max-height: 60px; width: auto; height: auto; object-fit: contain;
  border-radius: 8px; filter: grayscale(20%); transition: filter .3s ease; }
.cert-card:hover .cert-logo img { filter: none; }
/* fallback initials shown when image fails to load */
.cert-fb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "Space Grotesk"; font-weight: 700; font-size: 18px; color: #fff; border-radius: 12px;
  background: linear-gradient(140deg, #633599, #8b5cf6); z-index: 0; }
.cert-logo img { position: relative; z-index: 1; background: transparent; }
/* text below logo */
.cert-body { display: flex; flex-direction: column; gap: 4px; }
.cert-body b { font-family: "Space Grotesk"; font-weight: 700; font-size: 13px; line-height: 1.3;
  color: var(--ink); display: block; }
.cert-body span { font-size: 11.5px; line-height: 1.45; color: var(--muted); display: block; }
@media (max-width: 1060px) { .cert-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .cert-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== CONTACT — booking slip ===== */
.ct-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.ct-slip { border-radius: 24px; background: #fff; border: 1px solid var(--border); padding: clamp(24px, 3.4vw, 38px);
  box-shadow: 0 40px 80px -44px rgba(60,43,93,.5); position: relative; overflow: hidden; }
[data-theme="dark"] .ct-slip { background: rgba(255,255,255,.04); }
.ct-slip::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #3c2b5d, #633599 45%, #8b5cf6 80%, #d946ef); }
.ct-slip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.ct-slip-head h2 { font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(22px, 2.8vw, 30px); letter-spacing: -.01em; color: var(--ink); margin: 0; }
.ct-slip-head .ref { font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ct-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.ct-field { display: flex; flex-direction: column; gap: 7px; }
.ct-field.full { grid-column: 1 / -1; }
.ct-field label { font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ct-field label .req { color: #d946ef; }
.ct-field input, .ct-field select, .ct-field textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--ink); font-family: "Inter", system-ui, sans-serif; font-size: 14.5px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
[data-theme="dark"] .ct-field input, [data-theme="dark"] .ct-field select, [data-theme="dark"] .ct-field textarea { background: rgba(10,6,22,.5); border-color: rgba(196,181,253,.24); }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.2); background: #fff; }
[data-theme="dark"] .ct-field input:focus, [data-theme="dark"] .ct-field select:focus, [data-theme="dark"] .ct-field textarea:focus { background: rgba(10,6,22,.7); }
.ct-field textarea { resize: vertical; min-height: 110px; }
.ct-err { font-size: 12.5px; font-weight: 600; color: #c026d3; }
.ct-err ul { margin: 0; padding: 0; list-style: none; }
.ct-submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.ct-submit .note { font-size: 12.5px; color: var(--muted); }
.ct-send { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 999px; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(135deg, #3c2b5d 0%, #633599 56%, #8b5cf6 125%);
  box-shadow: 0 18px 38px -14px rgba(99,53,153,.6), 0 0 26px -8px rgba(139,92,246,.5), inset 0 1px 0 rgba(255,255,255,.28); transition: transform .2s ease; }
.ct-send:hover { transform: translateY(-2px); }
.ct-send svg { width: 17px; height: 17px; }
.ct-send::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-130%); transition: transform .65s ease; }
.ct-send:hover::after { transform: translateX(130%); }
/* success state — stamped RECEIVED */
.ct-done { text-align: center; padding: clamp(30px, 5vw, 54px) 20px; }
.ct-stamp { display: inline-block; font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: .1em;
  color: #7c46c9; border: 3px solid #8b5cf6; border-radius: 12px; padding: 12px 26px; transform: rotate(-6deg);
  box-shadow: 0 0 0 4px rgba(139,92,246,.12); animation: ct-stampin .5s cubic-bezier(.22,1,.36,1); }
[data-theme="dark"] .ct-stamp { color: #c4a5ff; }
@keyframes ct-stampin { from { transform: rotate(-6deg) scale(1.6); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
.ct-done h2 { font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(22px, 3vw, 30px); color: var(--ink); margin: 26px 0 0; }
.ct-done p { margin: 12px auto 0; max-width: 44ch; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
/* info rail */
.ct-rail { display: flex; flex-direction: column; gap: 14px; }
.ct-info { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--border);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
[data-theme="dark"] .ct-info { background: rgba(255,255,255,.04); }
.ct-info:hover { transform: translateY(-3px); border-color: rgba(139,92,246,.4); box-shadow: 0 20px 40px -28px rgba(99,53,153,.5); }
.ct-info .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, #633599, #8b5cf6); box-shadow: 0 8px 18px -8px rgba(139,92,246,.6); }
.ct-info .ic svg { width: 19px; height: 19px; }
.ct-info b { font-family: "Space Grotesk"; font-weight: 600; font-size: 15px; color: var(--ink); display: block; }
.ct-info span, .ct-info a.v { font-size: 13.5px; line-height: 1.55; color: var(--muted); display: block; margin-top: 4px; }
.ct-info a.v:hover { color: #7c46c9; }
.ct-hours { border-radius: 16px; padding: 18px; background: linear-gradient(165deg, #2a2140, #1a1229); color: #fff; border: 1px solid rgba(196,181,253,.22); }
.ct-hours .k { font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #c4a5ff; }
.ct-hours ul { list-style: none; margin: 12px 0 0; padding: 0; }
.ct-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed rgba(196,181,253,.2); font-size: 13.5px; }
.ct-hours li:last-child { border-bottom: none; }
.ct-hours .d { color: rgba(225,216,250,.66); }
.ct-hours .t { font-family: "Space Grotesk"; font-weight: 600; }
@media (max-width: 880px) { .ct-grid { grid-template-columns: 1fr; } .ct-form { grid-template-columns: 1fr; } }

/* ===== 404 — off-route radar ===== */
.e4-sec { position: relative; overflow: hidden; min-height: 92vh; display: flex; align-items: center; padding: var(--sec-pad-lg) var(--gut) clamp(80px, 10vw, 120px);
  background: linear-gradient(165deg, #2a2140 0%, #3c2b5d 52%, #2b2a29 100%); color: #fff; text-align: center; }
.e4-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.e4-radar { width: min(300px, 70vw); margin: 0 auto; }
.e4-radar svg { width: 100%; height: auto; overflow: visible; }
.e4-code { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: #c4a5ff; margin-top: 26px; }
.e4-inner h1 { font-family: "Space Grotesk"; font-weight: 700; letter-spacing: -.02em; font-size: clamp(32px, 5.4vw, 54px); line-height: 1.05; margin: 14px 0 0; color: #fff; }
.e4-inner p { margin: 16px auto 0; max-width: 44ch; font-size: 16px; line-height: 1.6; color: rgba(231,224,250,.8); }
.e4-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.e4-radar .rc { fill: none; stroke: #8b5cf6; opacity: .3; stroke-width: 1.4; }
.e4-radar .rx { stroke: #8b5cf6; opacity: .18; stroke-width: 1.2; }
.e4-sweep { transform-box: fill-box; transform-origin: 150px 120px; animation: e4-spin 4s linear infinite; }
@keyframes e4-spin { to { transform: rotate(360deg); } }
.e4-blip { fill: #c4a5ff; filter: drop-shadow(0 0 6px rgba(168,85,247,.9)); animation: e4-twinkle 2.2s ease-in-out infinite; }
@keyframes e4-twinkle { 0%,100% { opacity: .15; } 50% { opacity: 1; } }

/* reduced motion for pages */
@media (prefers-reduced-motion: reduce) {
  .ph-floor, .ph-lane::after, .e4-sweep, .e4-blip { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .ct-stamp { animation: none !important; }
}
