/* ==========================================================================
   EXPRESS LOGISTICS - capability statement
   Two US Letter sheets. "Screen" view uses the midnight theme; "Paper"
   view and @media print swap to an ink-friendly corporate light theme.
   ========================================================================== */

:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Page canvas behind the sheets */
  --canvas: #0a0a13;
  --canvas-image:
    radial-gradient(ellipse 80% 60% at 50% 110%, #000b35 0%, transparent 60%),
    linear-gradient(195deg, #0a0010 0%, #02000a 45%, #0c1d32 100%);

  /* Sheet theme: midnight */
  --sheet: #08080c;
  --sheet-image: radial-gradient(ellipse 70% 40% at 100% 0%, rgba(79, 79, 128, 0.22), transparent 70%);
  --sheet-shadow: inset 0 0 0 1px #4f4f80, 0 0 60px rgba(79, 79, 128, 0.15), 0 40px 80px rgba(0, 0, 0, 0.5);
  --ink: #fcfcfc;
  --muted: #a3a3b3;
  --faint: #757580;
  --line: #2a2a32;
  --accent: #6199f6;
  --accent-ink: #6199f6;
  --accent-soft: rgba(97, 153, 246, 0.1);
  --panel: #10101a;
  --cover: linear-gradient(135deg, #0e0f20 0%, #0a0a13 55%, #0c1d32 100%);
  --cover-line: #4f4f80;
}

/* Corporate paper theme, used by the toggle and always for print */
html.paper {
  --canvas: #e9eaef;
  --canvas-image: none;
  --sheet: #ffffff;
  --sheet-image: none;
  --sheet-shadow: 0 1px 2px rgba(15, 18, 34, 0.08), 0 12px 40px rgba(15, 18, 34, 0.12);
  --ink: #0f1222;
  --muted: #3b3f52;
  --faint: #6b6f80;
  --line: #dcdee7;
  --accent: #3b53a3;
  --accent-ink: #2f4590;
  --accent-soft: #eef1f9;
  --panel: #ffffff;
  --cover: #ffffff;
  --cover-line: #3b53a3;
}

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

body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01" on, "cv11" on;
  color: var(--ink);
  background: var(--canvas);
  background-image: var(--canvas-image);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ==========================================================================
   Toolbar
   ========================================================================== */

.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(4, 4, 7, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 -1px 0 #2a2a32;
  color: #fcfcfc;
}

.toolbar-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 clamp(16px, 4vw, 40px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toolbar-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #a3a3b3; transition: color 0.2s; }
.toolbar-back:hover { color: #fcfcfc; }

.toolbar-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6199f6;
}

.toolbar-actions { display: flex; align-items: center; gap: 12px; }

.view-toggle {
  display: flex;
  padding: 3px;
  border-radius: 100px;
  box-shadow: inset 0 0 0 1px #2a2a32;
}

.view-toggle button {
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 13px;
  color: #a3a3b3;
  transition: background-color 0.25s, color 0.25s;
}

.view-toggle button[aria-pressed="true"] { background: #fcfcfc; color: #0a0a13; }

.ink-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #a3a3b3;
  cursor: pointer;
  white-space: nowrap;
}

.ink-toggle input { position: absolute; opacity: 0; pointer-events: none; }

.ink-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 100px;
  box-shadow: inset 0 0 0 1px #4f4f80;
  transition: background-color 0.25s;
}

.ink-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #a3a3b3;
  transition: transform 0.3s var(--ease), background-color 0.25s;
}

.ink-toggle input:checked + .ink-track { background: #6199f6; box-shadow: none; }
.ink-toggle input:checked + .ink-track .ink-thumb { transform: translateX(14px); background: #fcfcfc; }
.ink-toggle input:focus-visible + .ink-track { outline: 2px solid #6199f6; outline-offset: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.25s;
}

.btn-primary { background: #fcfcfc; color: #0a0a13; }
.btn-primary:hover { background: #dedfee; }

/* ==========================================================================
   Sheets
   ========================================================================== */

.sheets {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 48px 16px 96px;
}

.sheet {
  width: 8.5in;
  height: 11in;
  padding: 0.48in 0.55in 0.36in;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--sheet);
  background-image: var(--sheet-image);
  box-shadow: var(--sheet-shadow);
  border-radius: 10px;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.5;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s;
}

/* Never let a block shrink to fit the fixed page; overflow should be visible in testing */
.sheet > * { flex-shrink: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  line-height: 1;
}

/* ---------- Cover ---------- */

.cover {
  border-radius: 10px;
  background: var(--cover);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 0;
}

.logo { height: 38px; width: auto; }
.logo-paper { display: none; }
html.paper .logo-dark { display: none; }
html.paper .logo-paper { display: block; }

.cover-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.cover-main {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: end;
  padding: 22px 26px 24px;
}

.cover h1 {
  margin-top: 14px;
  font-size: 50px;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.cover h1 span { color: var(--accent); }

.cover-img {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px var(--cover-line);
}

.cover-img img { width: 100%; height: 100%; object-fit: cover; }

.ids {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: inset 0 1px 0 var(--line);
}

.ids > div { padding: 14px 26px; }
.ids > div + div { box-shadow: inset 1px 0 0 var(--line); }

.ids dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.ids dd {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Blocks ---------- */

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.cols.wide-left { grid-template-columns: 1.14fr 0.86fr; }

.col { display: flex; flex-direction: column; gap: 18px; }

.block-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  padding-bottom: 10px;
  margin-bottom: 12px;
  box-shadow: inset 0 -1px 0 var(--line);
  position: relative;
}

.block-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.block-title span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
}

.overview { color: var(--muted); }

.codes { width: 100%; border-collapse: collapse; }

.codes th, .codes td {
  padding: 5px 0;
  text-align: left;
  vertical-align: top;
  box-shadow: inset 0 -1px 0 var(--line);
  font-size: 11.5px;
  line-height: 1.4;
}

.codes th {
  width: 64px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--accent-ink);
}

.codes td { color: var(--muted); }

.comps { display: grid; gap: 14px; }

.comps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}

.comps i {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--accent);
  background: var(--accent-soft);
}

.comps h3 { font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; }
.comps p { margin-top: 3px; color: var(--muted); font-size: 12px; }

/* ---------- Differentiators ---------- */

.diffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}

.diffs li { background: var(--sheet); padding: 13px 16px; }

.diffs strong {
  display: block;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}

.diffs p { margin-top: 8px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }

/* ---------- Past performance ---------- */

.perf li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  padding: 5px 0;
  box-shadow: inset 0 -1px 0 var(--line);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
}

.perf span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-ink);
  padding-top: 1px;
}

/* ---------- Certifications + clients ---------- */

.certs { display: grid; gap: 8px; }

.certs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.certs i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  flex: none;
}

.clients {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.clients li {
  padding: 6px 0;
  font-size: 12px;
  box-shadow: inset 0 -1px 0 var(--line);
}

.side-img {
  flex: 1;
  min-height: 120px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--cover-line);
}

.side-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 24px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 10px;
  background: var(--cover);
  box-shadow: inset 0 0 0 1px var(--cover-line);
}

.contact h2 {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }

.contact-list dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact-list dt i { color: var(--accent); font-size: 13px; }
.contact-list dd { margin-top: 3px; font-size: 12.5px; line-height: 1.4; }
.contact-list a:hover { color: var(--accent); }

/* ---------- Footer ---------- */

.sheet-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  box-shadow: inset 0 1px 0 var(--line);
  font-size: 9.5px;
  color: var(--faint);
}

.page-num { font-family: var(--font-mono); letter-spacing: 0.06em; color: var(--accent-ink); }

/* ---------- Ink saver: drop photos and tinted fills ---------- */

html.ink-saver .cover-img,
html.ink-saver .side-img { display: none; }
html.ink-saver .cover-main { grid-template-columns: 1fr; }
html.ink-saver .comps i,
html.ink-saver .certs i { background: none; box-shadow: inset 0 0 0 1px var(--line); }

/* ==========================================================================
   Narrow screens: sheets become fluid documents
   ========================================================================== */

@media screen and (max-width: 860px) {
  .toolbar-title { display: none; }
  .ink-toggle span:last-child { display: none; }
  .toolbar-back span { display: none; }
  .btn { padding: 10px 14px; }
  .sheets { padding: 24px 12px 64px; gap: 24px; }
  .sheet { width: 100%; height: auto; padding: 24px 20px; font-size: 13.5px; }
  .cover-main, .cols, .cols.wide-left, .contact, .contact-list { grid-template-columns: 1fr; }
  .cover h1 { font-size: 40px; }
  .ids { grid-template-columns: 1fr 1fr; }
  .ids > div:nth-child(3) { box-shadow: inset 0 1px 0 var(--line); }
  .ids > div:nth-child(4) { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
  .diffs { grid-template-columns: 1fr 1fr; }
  .sheet-foot { flex-wrap: wrap; }
  .side-img { aspect-ratio: 16 / 9; flex: none; }
}

@media screen and (max-width: 520px) {
  .btn i { display: none; }
  .diffs { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Print: always the paper theme, one sheet per US Letter page
   ========================================================================== */

@page { size: letter; margin: 0; }

@media print {
  :root {
    --sheet: #ffffff;
    --sheet-image: none;
    --ink: #0f1222;
    --muted: #3b3f52;
    --faint: #6b6f80;
    --line: #dcdee7;
    --accent: #3b53a3;
    --accent-ink: #2f4590;
    --accent-soft: #eef1f9;
    --panel: #ffffff;
    --cover: #ffffff;
    --cover-line: #3b53a3;
  }

  html, body { background: #fff !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .toolbar { display: none; }
  .sheets { display: block; padding: 0; }

  .sheet {
    width: 8.5in;
    height: 11in;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }

  .sheet:last-child { break-after: auto; page-break-after: auto; }

  .logo-dark { display: none; }
  .logo-paper { display: block; }

  a { text-decoration: none; }
}
