/* ============================================================
   Public site design system
   Freight-grade, operational, no gradients. Mobile-first.
   ============================================================ */

:root {
    --ink:        #15232E;
    --ink-700:    #2A3F4D;
    --paper:      #FFFFFF;
    --surface:    #F2F4F6;
    --surface-2:  #E9EDF0;
    --line:       #D7DEE4;
    --muted:      #5C6B76;
    --text:       #1C2B35;
    --accent:     #E2912B;
    --accent-press:#C97C1C;
    --delivered:  #2F7D5B;
    --transit:    #2D6AA3;
    --alert:      #C0392B;

    --wrap: 1180px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --radius: 4px;

    --font-display: "Archivo", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--paper);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; max-width: 66ch; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: #D9E1E7; }
.section--ink h2, .section--ink h3 { color: #fff; }

/* ---- Buttons --------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-body); font-weight: 600; font-size: 1rem;
    padding: 0.85rem 1.4rem; border-radius: var(--radius);
    border: 1.5px solid transparent; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--accent { background: var(--accent); color: #231604; }
.btn--accent:hover { background: var(--accent-press); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-700); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 1rem 1.6rem; font-size: 1.05rem; }

/* ---- Header / nav ---------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,0.94);
    backdrop-filter: saturate(140%) blur(6px);
    border-bottom: 1px solid var(--line);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.02em; }
.brand__mark {
    width: 34px; height: 34px; border-radius: var(--radius);
    background: var(--ink); color: var(--accent);
    display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
    font-family: var(--font-display);
}
.nav { display: none; align-items: center; gap: 2rem; }
.nav a { font-weight: 500; color: var(--ink-700); font-size: 0.98rem; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }

/* Compact the header track button on phones so it doesn't crowd the menu toggle. */
@media (max-width: 640px) {
    .header-actions .btn--accent { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
}
@media (max-width: 400px) {
    .header-actions .btn--accent { padding: 0.5rem 0.7rem; font-size: 0.8rem; }
}
.nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-nav { border-bottom: 1px solid var(--line); background: var(--paper); }
.mobile-nav a { display: block; padding: 0.9rem var(--gutter); border-top: 1px solid var(--line); font-weight: 500; color: var(--ink); }

@media (min-width: 900px) {
    .nav { display: flex; }
    .nav-toggle { display: none; }
}

/* ---- Hero ------------------------------------------------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); padding-block: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.hero__eyebrow { font-weight: 600; color: var(--accent-press); letter-spacing: 0.01em; margin-bottom: 1rem; font-size: 0.95rem; }
.hero__eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 0.6rem; }
.hero h1 { margin-bottom: 1rem; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 48ch; }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.hero__stamp {
    position: absolute; left: -10px; bottom: 18px;
    background: var(--ink); color: #fff; padding: 0.7rem 1rem; border-radius: var(--radius);
    font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.4; border-left: 4px solid var(--accent);
}
.hero__stamp b { color: var(--accent); }

@media (min-width: 980px) {
    .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---- Full-bleed photographic hero ------------------------ */
.hero-full {
    position: relative;
    min-height: 88vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    border-bottom: 3px solid var(--accent);
}
/* Flat dark overlay (not a gradient) for text legibility over the photo. */
.hero-full::before {
    content: ""; position: absolute; inset: 0;
    background: rgba(13, 23, 31, 0.64);
}
.hero-full__inner { position: relative; z-index: 1; padding-block: clamp(5rem, 12vh, 9rem) 9rem; width: 100%; }
.hero-full .hero__eyebrow { color: var(--accent); margin-bottom: 1.1rem; }
.hero-full .hero__eyebrow::before { background: var(--accent); }
.hero-full h1 {
    color: #fff; max-width: 15ch; margin-bottom: 1.1rem;
    font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 0.98; letter-spacing: -0.03em;
}
.hero-full__lead { color: rgba(255,255,255,0.86); font-size: 1.2rem; max-width: 46ch; }

.trackbar {
    display: flex; max-width: 540px; margin-top: 2rem;
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.trackbar input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: #fff; color: var(--ink);
    font-family: var(--font-mono); font-size: 1rem; letter-spacing: 0.04em;
    padding: 1rem 1.2rem; text-transform: uppercase;
}
.trackbar button {
    border: 0; cursor: pointer; background: var(--accent); color: #231604;
    font-family: var(--font-body); font-weight: 700; font-size: 1rem; padding: 0 1.6rem;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.trackbar button:hover { background: var(--accent-press); }
.hero-full__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,0.45); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ---- Freight-mode cards overlapping the hero ------------- */
.modes-wrap { position: relative; z-index: 5; margin-top: -5.5rem; }
.modes {
    display: grid; grid-template-columns: 1fr; gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 16px 40px rgba(16, 35, 46, 0.14);
}
.mode { background: var(--paper); padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.mode__icon { width: 36px; height: 36px; flex-shrink: 0; color: var(--accent-press); }
.mode .eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.mode h3 { margin: 0.15rem 0 0; font-size: 1.1rem; }
.mode--feature { background: var(--ink); }
.mode--feature h3 { color: #fff; }
.mode--feature .eyebrow { color: var(--accent); }
.mode--feature .mode__icon { color: var(--accent); }
@media (min-width: 680px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .modes { grid-template-columns: repeat(4, 1fr); } }

/* ---- Track form (the shipping-label motif) --------------- */
.track {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    margin-top: 1.8rem; box-shadow: 0 1px 0 var(--line);
}
.track__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.6rem 1rem; border-bottom: 1px dashed var(--line);
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase;
}
.track__head span:last-child { color: var(--ink); }
.track__body { padding: 1.1rem; }
.track__label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; font-size: 0.95rem; }
.track__row { display: flex; gap: 0.6rem; flex-direction: column; }
.track__input {
    flex: 1; font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: 0.06em;
    padding: 0.9rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius);
    background: var(--surface); color: var(--ink); text-transform: uppercase;
}
.track__input:focus { outline: 3px solid rgba(226,145,43,0.35); outline-offset: 1px; border-color: var(--accent); background: #fff; }
.track__hint { margin: 0.7rem 0 0; font-size: 0.85rem; color: var(--muted); }
@media (min-width: 560px) { .track__row { flex-direction: row; } }

/* ---- Trust strip ----------------------------------------- */
.trust { border-bottom: 1px solid var(--line); }
.trust__row { display: flex; flex-wrap: wrap; gap: 1.2rem 2.5rem; padding-block: 1.3rem; align-items: center; color: var(--muted); font-size: 0.92rem; }
.trust__row b { color: var(--ink); font-family: var(--font-display); }

/* ---- Section heading ------------------------------------- */
.sec-head { max-width: 60ch; margin-bottom: 2.5rem; }
.sec-head .kicker { color: var(--accent-press); font-weight: 600; margin-bottom: 0.6rem; }
.sec-head p { color: var(--muted); }

/* ---- Services -------------------------------------------- */
.svc-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.svc {
    background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent);
    padding: 1.6rem; border-radius: var(--radius); display: flex; flex-direction: column;
}
.svc__icon { width: 40px; height: 40px; color: var(--ink); margin-bottom: 1rem; }
.svc h3 { margin-bottom: 0.4rem; }
.svc p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1rem; }
.svc__more { margin-top: auto; font-weight: 600; color: var(--ink); }
.svc__more:hover { color: var(--accent-press); }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Image service cards (clickable) --------------------- */
.card-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.icard {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    color: inherit; transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
a.icard:hover { box-shadow: 0 14px 30px rgba(16, 35, 46, 0.12); transform: translateY(-3px); border-color: var(--accent); }
.icard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.icard__media img { width: 100%; height: 100%; object-fit: cover; }
.icard__media::after { content: ""; position: absolute; inset: 0; border-top: 3px solid var(--accent); }
.icard--ink .icard__media::after { border-top-color: var(--ink); }
.icard__body { padding: 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.icard__body h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.icard__body p { color: var(--muted); font-size: 0.96rem; margin-bottom: 1rem; }
.icard__more { margin-top: auto; font-weight: 600; color: var(--ink); font-size: 0.92rem; }
a.icard:hover .icard__more { color: var(--accent-press); }

/* ---- Split feature --------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); }
.slideshow { position: relative; width: 100%; aspect-ratio: 16 / 11; max-height: 440px; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.slideshow img.is-active { opacity: 1; }
.slideshow__dots { position: absolute; left: 0; right: 0; bottom: 0.9rem; display: flex; gap: 0.4rem; justify-content: center; z-index: 2; }
.slideshow__dots span { width: 7px; height: 7px; border-radius: 100px; background: rgba(255,255,255,0.45); transition: background 0.3s, width 0.3s; }
.slideshow__dots span.is-active { background: var(--accent); width: 18px; }
@media (prefers-reduced-motion: reduce) { .slideshow img { transition: none; } }
.split ul { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1rem; }
.split li { padding-left: 1.8rem; position: relative; color: var(--muted); max-width: 56ch; }
.split li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; background: var(--accent); border-radius: 2px; }
.split li b { color: var(--ink); font-weight: 600; display: block; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev img { order: -1; } }

/* ---- Stats band ------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
.stat__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); color: #fff; line-height: 1; letter-spacing: -0.03em; }
.stat__n span { color: var(--accent); }
.stat__l { color: #9DB0BD; margin-top: 0.4rem; font-size: 0.95rem; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---- CTA ------------------------------------------------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.2rem); display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #A9BAC6; margin: 0.6rem 0 0; }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1.4fr auto; } }

/* ---- Footer ---------------------------------------------- */
.site-footer { background: var(--ink); color: #9DB0BD; padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-grid h4 { color: #fff; font-family: var(--font-display); font-size: 0.95rem; margin: 0 0 0.9rem; letter-spacing: 0.02em; }
.footer-grid a { display: block; padding: 0.25rem 0; color: #9DB0BD; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { color: #8496A3; font-size: 0.92rem; max-width: 34ch; }
.footer-brand .brand img { background: #fff; padding: 6px 10px; border-radius: 8px; }
.footer-bottom { border-top: 1px solid #2A3F4D; margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.85rem; color: #7A8C99; }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.footer-legal a { color: #9DB0BD; text-decoration: none; }
.footer-legal a:hover { color: var(--accent); text-decoration: underline; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---- Page title (inner pages) ---------------------------- */
.page-title { background: var(--ink); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-title h1 { color: #fff; }
.page-title .crumb { color: #9DB0BD; font-size: 0.9rem; margin-bottom: 0.8rem; }
.page-title .crumb a:hover { color: var(--accent); }

/* ---- Tracking result ------------------------------------- */
.result { display: grid; gap: 1.5rem; }
.result__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.result__head { padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.result__code { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.05em; color: var(--ink); }
.result__route { display: flex; gap: 0.75rem; align-items: center; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.route-node b { display: block; font-family: var(--font-display); color: var(--ink); }
.route-node span { color: var(--muted); font-size: 0.9rem; }
.route-line { flex: 1; min-width: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }

.badge { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.82rem; padding: 0.3rem 0.7rem; border-radius: 100px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge--delivered { background: #E3F0EA; color: var(--delivered); }
.badge--transit { background: #E4EEF6; color: var(--transit); }
.badge--pending { background: #FBF0DD; color: var(--accent-press); }
.badge--alert { background: #F7E2E0; color: var(--alert); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 1rem 1.5rem 1.5rem; }
.timeline li { position: relative; padding: 0 0 1.4rem 1.8rem; border-left: 2px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--line); border: 2px solid var(--paper); }
.timeline li.is-current::before { background: var(--accent); }
.timeline__status { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.timeline__meta { color: var(--muted); font-size: 0.88rem; }
.timeline__note { font-size: 0.95rem; margin-top: 0.2rem; }

/* not found */
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--alert); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.notice h3 { color: var(--ink); margin-bottom: 0.3rem; }
.notice p { color: var(--muted); margin: 0; }

/* contact */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; font-size: 0.95rem; }
.field input, .field textarea, .field select {
    width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius);
    font-family: var(--font-body); font-size: 1rem; background: var(--paper); color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(226,145,43,0.3); border-color: var(--accent); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.3rem; }
.info-list b { display: block; color: var(--ink); font-family: var(--font-display); margin-bottom: 0.15rem; }
.info-list span { color: var(--muted); }

/* ---- Service tabs ---------------------------------------- */
.tabs__nav { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.tabs__btn {
    flex: 1 1 140px; padding: 1rem 0.75rem; border: 0; cursor: pointer;
    background: var(--ink); color: #BFCAD2;
    font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
    letter-spacing: 0.03em; text-transform: uppercase; transition: background-color 0.15s ease, color 0.15s ease;
}
.tabs__btn:hover { color: #fff; }
.tabs__btn.is-active { background: var(--accent); color: #231604; }
.tabs__panel { display: grid; gap: 2rem; padding-top: 2.2rem; align-items: center; }
.tabs__panel img { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.tabs__body h3 { font-size: 1.5rem; }
.tabs__body > p { color: var(--muted); }
.tabs__list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.6rem; }
.tabs__list li { position: relative; padding-left: 1.6rem; color: var(--muted); max-width: 54ch; }
.tabs__list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; background: var(--accent); border-radius: 2px; }
@media (min-width: 920px) { .tabs__panel { grid-template-columns: 1fr 1fr; } }

/* ---- Gallery --------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; grid-auto-flow: dense; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 0.7rem 0.9rem;
    font-size: 0.8rem; color: #fff; background: rgba(13, 23, 31, 0.78);
    opacity: 0; transform: translateY(100%); transition: 0.25s ease;
}
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; transform: translateY(0); }
.gallery-item--wide { grid-column: span 2; }
@media (min-width: 720px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .gallery-item--tall { grid-row: span 2; }
    .gallery-item--tall img { aspect-ratio: auto; height: 100%; }
}

/* ---- Route simulator (live tracking) --------------------- */
.rsim { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.rsim__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; }
.rsim__eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.rsim__status { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.1rem; margin-top: 0.15rem; }
.rsim__sub { font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }
.rsim__pct { font-family: var(--font-display); font-weight: 800; color: var(--accent-press); font-size: 1.4rem; white-space: nowrap; }
.rsim__progress { height: 4px; background: var(--surface-2); }
.rsim__progress span { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }
.rsim__map { height: 360px; width: 100%; background: var(--surface); }
.rsim__timeline { list-style: none; margin: 0; padding: 1rem 1.2rem; display: grid; gap: 0.8rem; border-top: 1px solid var(--line); }
.rsim__timeline li { position: relative; padding-left: 1.2rem; font-size: 0.9rem; color: var(--ink); }
.rsim__timeline li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.rsim__ev { color: var(--muted); font-weight: 500; }
.rsim__time { color: var(--muted); font-size: 0.82rem; margin-top: 0.1rem; }
.rsim__tz { color: #9AA7B1; }
.rsim__badge { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.45rem; border-radius: 100px; background: var(--surface-2); color: var(--ink); font-size: 0.7rem; font-weight: 600; }
.rsim__mode { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.5rem; border-radius: 100px; background: var(--ink); color: #fff; font-size: 0.68rem; font-weight: 600; }
.rsim__badge--est { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.rsim__timeline li.is-upcoming b { color: var(--muted); font-weight: 600; }
.rsim__timeline li.is-upcoming .rsim__time { color: #9AA7B1; }
.rsim__ok { color: var(--delivered); font-weight: 600; }
.rsim__timeline li.is-done::before { background: var(--delivered); }
.rsim__timeline li.is-current::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(226,145,43,0.25); }
.rsim__timeline li.is-done b { color: var(--muted); }
.leaflet-container { font: inherit; }

[x-cloak] { display: none !important; }
