/* ==========================================================================
   Liberty Freight Express — Design System
   Tokens transcribed from Figma: LIBERTY FRIGHT EXPRESS
   https://www.figma.com/design/rdcIEVxRD21KRzPZhRWEkV
   ========================================================================== */

:root {
  /* --- Brand ------------------------------------------------------------ */
  --navy:  #002855;
  --red:   #D91019;
  --steel: #69727A;
  --white: #FFFFFF;

  /* --- Navy ramp -------------------------------------------------------- */
  --navy-50:  #f2f4f6;
  --navy-100: #e0e5eb;
  --navy-200: #bfc9d4;
  --navy-300: #8c9eb2;
  --navy-400: #597390;
  --navy-500: #002855;
  --navy-600: #002248;
  --navy-700: #001c3c;
  --navy-800: #00142b;
  --navy-900: #000c1a;

  /* --- Red ramp --------------------------------------------------------- */
  --red-50:  #fdf3f3;
  --red-100: #fae2e3;
  --red-200: #f5c3c5;
  --red-300: #ee9397;
  --red-400: #e6646a;
  --red-500: #d91019;
  --red-600: #b80e15;
  --red-700: #980b12;
  --red-800: #6d080d;
  --red-900: #410508;

  /* --- Gray ramp -------------------------------------------------------- */
  --gray-50:  #f9f9fa;
  --gray-100: #f0f1f2;
  --gray-200: #dee0e2;
  --gray-300: #c0c4c7;
  --gray-400: #969ca2;
  --gray-500: #69727a;
  --gray-600: #596168;
  --gray-700: #4a5055;
  --gray-800: #35393d;
  --gray-900: #202225;

  /* --- Status ----------------------------------------------------------- */
  --success: #0d7c3e;
  --warning: #e5850a;
  --error:   #d91019;
  --info:    #1a73e8;

  /* --- Type ------------------------------------------------------------- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* --- Space / shape ---------------------------------------------------- */
  --r-sm: 6px;
  --r:    8px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(0, 20, 43, .06), 0 1px 3px rgba(0, 20, 43, .08);
  --shadow:    0 4px 12px rgba(0, 20, 43, .08), 0 2px 4px rgba(0, 20, 43, .04);
  --shadow-lg: 0 18px 40px rgba(0, 20, 43, .12), 0 4px 12px rgba(0, 20, 43, .06);
  --shadow-xl: 0 32px 72px rgba(0, 20, 43, .18);

  --wrap: 1200px;
  --nav-h: 92px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--navy-500);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; }

::selection { background: var(--red-500); color: #fff; }

:focus-visible {
  outline: 3px solid var(--info);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ==========================================================================
   Type scale  (Figma: Typography System)
   ========================================================================== */

.display-l { font-size: 64px; line-height: 72px; font-weight: 700; }
.display-m { font-size: 48px; line-height: 56px; font-weight: 700; }
.display-s { font-size: 36px; line-height: 44px; font-weight: 600; }

.h1 { font-size: 32px; line-height: 40px; font-weight: 700; }
.h2 { font-size: 28px; line-height: 36px; font-weight: 600; }
.h3 { font-size: 24px; line-height: 32px; font-weight: 600; }
.h4 { font-size: 20px; line-height: 28px; font-weight: 600; }
.h5 { font-size: 18px; line-height: 26px; font-weight: 500; }

.body-l { font-size: 18px; line-height: 28px; }
.body-m { font-size: 16px; line-height: 24px; }
.body-s { font-size: 14px; line-height: 20px; }

.caption { font-size: 12px; line-height: 16px; color: var(--gray-500); }

.overline {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-500);
}
.overline--onDark { color: var(--red-300); }
.overline--steel  { color: var(--gray-500); }

.lead {
  font-size: 20px;
  line-height: 32px;
  color: var(--gray-600);
  text-wrap: pretty;
}

/* Headline treatment lifted from the logo wordmark: heavy, oblique, tight. */
.kicker-rule {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker-rule::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--red-500);
  transform: skewX(-20deg);
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

.section { padding-block: 96px; }
.section--tight { padding-block: 64px; }
.section--navy {
  position: relative;
  overflow: hidden;
  background: var(--navy-500);
  color: var(--navy-100);
}
.section--navy h1, .section--navy h2, .section--navy h3,
.section--navy h4, .section--navy h5 { color: #fff; }
.section--tint { background: var(--gray-50); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head > * + * { margin-top: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker-rule { justify-content: center; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }

/* ==========================================================================
   Buttons  (Figma: Button component set 2:369)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease,
              color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary   { background: var(--navy-500); color: #fff; }
.btn--primary:hover { background: var(--navy-600); }

.btn--accent    { background: var(--red-500); color: #fff; box-shadow: 0 6px 18px rgba(217,16,25,.28); }
.btn--accent:hover { background: var(--red-600); box-shadow: 0 8px 22px rgba(217,16,25,.34); }

.btn--secondary { background: #fff; color: var(--navy-500); border-color: var(--navy-500); }
.btn--secondary:hover { background: #f7f7f7; }

.btn--ghost     { background: transparent; color: var(--navy-500); }
.btn--ghost:hover { background: #f2f5f7; }

/* On navy backgrounds the secondary button inverts. */
.btn--onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--onDark:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn[disabled], .btn--disabled {
  background: #dae0e4; color: #969fa8; border-color: transparent;
  pointer-events: none;
}

.btn--lg { padding: 16px 32px; font-size: 17px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ==========================================================================
   Badges  (Figma: Badge 2:400)
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  border: 1px solid transparent;
}
.badge--primary { background: var(--navy-500); color: #fff; }
.badge--accent  { background: var(--red-500);  color: #fff; }
.badge--outline { background: transparent; color: var(--navy-500); border-color: var(--navy-200); }
.badge--success { background: var(--success); color: #fff; }
.badge--warning { background: var(--warning); color: #fff; }
.badge--error   { background: var(--error);   color: #fff; }

/* ==========================================================================
   Header / navigation  (Figma: Navigation Bar 2:417)
   ========================================================================== */

.skip-link {
  position: absolute; left: -9999px;
  background: var(--navy-500); color: #fff;
  padding: 12px 20px; border-radius: var(--r); z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* --- Logo lockup -------------------------------------------------------
   The exact Figma artwork, used at three sizes. Aspect ratio is fixed at
   3554.69 / 763.24 = 4.657, so height is always derived from width.        */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity .16s ease;
}
.logo:hover { opacity: .82; }

.logo__img {
  display: block;
  width: auto;
  height: 48px;          /* -> 223px wide */
}
.logo--footer .logo__img { height: 55px; }   /* -> 256px wide */

/* --- Links -------------------------------------------------------------- */
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav__link {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.nav__link:hover { color: var(--navy-500); background: var(--navy-50); }
.nav__link[aria-current="page"] { color: var(--navy-500); font-weight: 600; }

.nav__cta { margin-left: 12px; }

.nav__phone {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  padding-left: 20px;
  margin-left: 8px;
  border-left: 1px solid var(--gray-200);
}
.nav__phone span { font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--red-500); }
.nav__phone strong { font-size: 15px; font-weight: 700; color: var(--navy-500); white-space: nowrap; }
.nav__phone span { white-space: nowrap; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  cursor: pointer;
  color: var(--navy-500);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 620px at 78% 18%, rgba(89,115,144,.42), transparent 62%),
    linear-gradient(160deg, var(--navy-700) 0%, var(--navy-500) 46%, var(--navy-800) 100%);
  color: #fff;
  isolation: isolate;
}

/* Diagonal "road" bands echoing the logo's highway motif. */
.hero__bands {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  pointer-events: none;
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  object-position: center 62%;
  width: 100%; height: 100%;
  opacity: .62;
}
/* Scrim: heaviest under the headline, clearing toward the right of the frame. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(100deg, var(--navy-800) 4%, rgba(0, 20, 43, .88) 38%, rgba(0, 28, 60, .5) 100%),
    linear-gradient(180deg, rgba(0, 20, 43, .55) 0%, transparent 22%);
}

.hero__inner {
  position: relative;
  padding-block: 60px 72px;
  max-width: 860px;
}

.hero__logo {
  width: min(400px, 78%);
  height: auto;
  margin-bottom: 26px;
}

.hero__title {
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  margin-block: 20px 0;
}
.hero__title em {
  display: block;
  font-style: italic;
  color: #fff;
}
/* "Liberty delivers." carries a red swash underneath, echoing the logo's road. */
.hero__title .accent {
  position: relative;
  display: inline-block;
  color: #fff;
}
.hero__title .accent::after {
  content: "";
  position: absolute;
  left: -2px;
  right: 8px;
  bottom: .06em;
  height: .1em;
  background: var(--red-500);
  transform: skewX(-14deg);
  border-radius: 2px;
}

.hero__pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 22px; padding: 0; list-style: none;
}
.hero__pills li {
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.06);
  color: #fff;
}

.hero__sub {
  margin-top: 20px;
  font-size: 19px;
  line-height: 30px;
  color: var(--navy-100);
  max-width: 620px;
}

.hero__actions { margin-top: 30px; }

.hero__meta {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; gap: 28px;
  font-size: 14px; color: var(--navy-200);
}
.hero__meta strong { color: #fff; display: block; font-size: 22px; font-weight: 700; }

/* --- Scrolling trust strip ---------------------------------------------- */
.ticker {
  background: var(--red-500);
  color: #fff;
  overflow: hidden;
  border-block: 1px solid var(--red-600);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker__group {
  display: flex; align-items: center;
  gap: 40px;
  padding: 14px 20px;
  font-size: 14px; font-weight: 700;
  letter-spacing: .18em;
  white-space: nowrap;
}
.ticker__group span { display: inline-flex; align-items: center; gap: 40px; }
.ticker__star { color: var(--red-200); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ==========================================================================
   Cards  (Figma: Card 2:408)
   ========================================================================== */

.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height: 100%;
}
a.card { text-decoration: none; display: block; }
a.card:hover, .card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-200);
}

.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--navy-50);
  color: var(--navy-500);
  margin-bottom: 20px;
}
.card__icon--accent { background: var(--red-50); color: var(--red-500); }
.card__icon svg { width: 26px; height: 26px; }

/* The rendered icons are illustrations, not glyphs: no tile behind them. */
.card__icon--art {
  width: 76px; height: 76px;
  margin-bottom: 16px;
  background: none;
  border-radius: 0;
}
.card__icon--art img { width: 76px; height: 76px; object-fit: contain; }


.card__title { margin-bottom: 10px; }
.card__body { color: var(--gray-600); }

.card__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.card__list li {
  font-size: 13px;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 4px 11px;
}

.card__more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 20px;
  font-size: 15px; font-weight: 600; color: var(--red-500);
}
a.card:hover .card__more { gap: 11px; }
.card__more svg { width: 15px; height: 15px; transition: transform .18s ease; }

/* ==========================================================================
   Spec table (Fleet)
   ========================================================================== */

.step__n {
  font-size: 13px; font-weight: 700; letter-spacing: .16em;
  color: var(--red-500); display: block; margin-bottom: 10px;
}

.spec {
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
.spec__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
}
.spec__row:last-child { border-bottom: 0; }
.spec__row:nth-child(odd) { background: var(--gray-50); }
.spec__label { font-size: 15px; font-weight: 500; color: var(--gray-700); }
.spec__value { font-size: 16px; font-weight: 700; color: var(--navy-500); text-align: right; }
.spec__value--tbd { color: var(--gray-400); font-weight: 500; font-style: italic; }
.spec__check { color: var(--success); font-weight: 700; }

/* ==========================================================================
   Forms  (Figma: Input Field 2:387)
   ========================================================================== */

.form { display: grid; gap: 20px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.form__fieldset { border: 0; margin: 0; padding: 0; }
.form__legend {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red-500);
  padding: 0 0 12px; margin-bottom: 20px;
  display: block; width: 100%;
  border-bottom: 1px solid var(--gray-200);
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--gray-700); }
.label .req { color: var(--red-500); }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--gray-900);
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--r);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--gray-400); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--gray-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(0,40,85,.14);
}
.input:disabled, .select:disabled, .textarea:disabled {
  background: var(--gray-100); color: var(--gray-400); cursor: not-allowed;
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(217,16,25,.14);
}
.textarea { min-height: 120px; resize: vertical; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2369727A' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.help { font-size: 12px; line-height: 16px; color: var(--gray-500); }
.error-text { font-size: 12px; line-height: 16px; color: var(--error); font-weight: 500; }

.form__note {
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-left: 3px solid var(--navy-500);
  border-radius: var(--r);
  padding: 16px 18px;
  font-size: 14px; line-height: 21px; color: var(--gray-700);
}

.form-status { padding: 14px 18px; border-radius: var(--r); font-size: 15px; font-weight: 500; }
.form-status--ok  { background: #e8f5ed; color: #0a5c2e; border: 1px solid #b7dfc7; }
.form-status--err { background: var(--red-50); color: var(--red-700); border: 1px solid var(--red-200); }

/* ==========================================================================
   Split / media blocks
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 64px;
  align-items: center;
}
.split--wide { grid-template-columns: 1.05fr .95fr; }

.media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--navy-700);
  box-shadow: var(--shadow-xl);
  aspect-ratio: 3 / 2;
}
.media img { width: 100%; height: 100%; object-fit: cover; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat { background: #fff; padding: 28px 24px; }
.stat__v { font-size: 34px; line-height: 40px; font-weight: 800; color: var(--navy-500); letter-spacing: -.03em; }
.stat__l { font-size: 14px; line-height: 20px; color: var(--gray-600); margin-top: 6px; }

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */

.page-head {
  background:
    radial-gradient(900px 420px at 82% 0%, rgba(89,115,144,.36), transparent 60%),
    linear-gradient(150deg, var(--navy-600), var(--navy-800));
  color: #fff;
  padding-block: 72px 76px;
  position: relative;
  overflow: hidden;
  /* Contains the negative z-index photo, which would otherwise slip behind
     this element's own gradient and never show. */
  isolation: isolate;
}

.page-head__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 58%;
  opacity: .72;
}
/* Scrim: heaviest under the headline, clearing toward the right of the frame,
   so white type stays legible over any of the photographs. */
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(100deg, var(--navy-800) 2%, rgba(0, 20, 43, .9) 36%, rgba(0, 20, 43, .58) 62%, rgba(0, 28, 60, .3) 100%),
    linear-gradient(180deg, rgba(0, 20, 43, .5) 0%, transparent 32%);
}
.page-head__inner { max-width: 780px; position: relative; }
.page-head h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  margin-top: 16px;
}
.page-head p { margin-top: 18px; font-size: 18px; line-height: 29px; color: var(--navy-100); }

.crumbs { font-size: 13px; color: var(--navy-200); }
.crumbs a { text-decoration: none; color: var(--navy-200); }
.crumbs a:hover { color: #fff; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--red-600), var(--red-500) 58%, var(--red-700));
  color: #fff;
  padding-block: 72px;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.14; font-weight: 800; letter-spacing: -.025em;
}
.cta-band p  { margin-top: 16px; font-size: 18px; color: rgba(255,255,255,.9); }
.cta-band .btn-row { justify-content: center; margin-top: 32px; }
.cta-band .btn--primary { background: #fff; color: var(--red-600); }
.cta-band .btn--primary:hover { background: var(--red-50); }

/* ==========================================================================
   Footer  (Figma: Footer 2:429)
   ========================================================================== */

.site-footer {
  background: var(--navy-800);
  color: var(--navy-200);
  padding-block: 64px 0;
  font-size: 15px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__about { max-width: 320px; margin-top: 20px; line-height: 24px; color: var(--navy-200); }
.footer h4 {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; margin-bottom: 18px;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__list a { text-decoration: none; color: var(--navy-200); transition: color .15s ease; }
.footer__list a:hover { color: #fff; }

.footer__contact { display: grid; gap: 14px; }
.footer__contact a { color: #fff; text-decoration: none; font-weight: 600; }
.footer__contact a:hover { color: var(--red-300); }
.footer__contact .caption { color: var(--navy-300); }

.footer__bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 24px;
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--navy-300);
}
.footer__slogan { font-weight: 700; letter-spacing: .1em; font-size: 12px; color: var(--red-300); }

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.muted { color: var(--gray-600); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Why Liberty
   A statement and a service map on one side, the reasons as a scannable list
   on the other. Six identical boxes gave every point the same weight and read
   as wallpaper; this ranks them and lets the map run at a legible size.
   ========================================================================== */

.why {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 80px;
  align-items: start;
}

.why__title {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  margin-top: 16px;
}
.why__lead {
  margin-top: 16px;
  font-size: 18px;
  line-height: 28px;
  color: var(--navy-200);
}

.why__figure { margin: 36px 0 32px; }
.why__map {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .38));
}
.why__caption {
  margin-top: 18px;
  padding-left: 18px;
  border-left: 3px solid var(--red-500);
  font-size: 15px;
  line-height: 24px;
  color: var(--navy-200);
  max-width: 420px;
}
.why__caption strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.why__list { list-style: none; margin: 0; padding: 0; }

.why__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0 28px 22px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  transition: padding-left .28s cubic-bezier(.22, .61, .36, 1);
}
.why__item:first-child { border-top: 0; padding-top: 4px; }

/* A red rule wipes in from the top as you move down the list. */
.why__item::before {
  content: "";
  position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 3px;
  border-radius: 3px;
  background: var(--red-500);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .34s cubic-bezier(.22, .61, .36, 1);
}
.why__item:hover::before { transform: scaleY(1); }
.why__item:hover { padding-left: 30px; }

.why__icon {
  width: 64px; height: 64px;
  object-fit: contain;
  transition: transform .32s cubic-bezier(.34, 1.4, .64, 1);
}
.why__item:hover .why__icon { transform: scale(1.08) translateY(-2px); }

.why__item h3 {
  font-size: 21px;
  line-height: 28px;
  color: #fff;
  margin-bottom: 7px;
}
.why__item p {
  font-size: 16px;
  line-height: 25px;
  color: var(--navy-200);
  max-width: 52ch;
}

@media (max-width: 980px) {
  .why { grid-template-columns: 1fr; gap: 48px; }
  .why__figure { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
  .why__map { max-width: 240px; }
  .why__caption { margin-top: 0; }
}

@media (max-width: 620px) {
  .why__figure { grid-template-columns: 1fr; gap: 20px; }
  .why__map { max-width: 220px; }
  .why__item { grid-template-columns: auto 1fr; gap: 18px; padding: 22px 0 22px 18px; }
  .why__icon { width: 52px; height: 52px; }
  .why__item h3 { font-size: 19px; line-height: 26px; }
  .why__item p { font-size: 15px; line-height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .why__item, .why__icon, .why__item::before { transition: none; }
}

/* ==========================================================================
   Process tracker
   "How It Works" presented as a shipment tracker, which is the mental model a
   shipper already has. Nodes are tabs; the rail fills toward the active stage.
   ========================================================================== */

.tracker__rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 44px;
}

/* The line spans node centres: with five equal columns those sit at 10% and 90%. */
.tracker__line {
  position: absolute;
  left: 10%; right: 10%; top: 26px;
  margin-top: -2px;
  height: 4px;
  border-radius: 4px;
  background: var(--gray-200);
  overflow: hidden;
}
.tracker__fill {
  display: block;
  height: 100%;
  width: 100%;                      /* without JS every stage reads as complete */
  border-radius: 4px;
  background: var(--red-500);
  transition: width .55s cubic-bezier(.22, .61, .36, 1);
}
.js .tracker__fill { width: 0; }

.tracker__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: center;
}

.tracker__dot {
  position: relative;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--gray-200);
  color: var(--gray-400);
  transition:
    transform .32s cubic-bezier(.34, 1.4, .64, 1),
    background-color .25s ease, border-color .25s ease,
    color .25s ease, box-shadow .25s ease;
}
.tracker__dot svg { width: 22px; height: 22px; }

.tracker__n {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  color: var(--gray-400);
  transition: color .2s ease;
}
.tracker__label {
  font-size: 15px; font-weight: 600;
  color: var(--gray-600);
  transition: color .2s ease;
}

/* Stages already passed */
.tracker__node[data-state="done"] .tracker__dot {
  border-color: var(--red-500);
  background: var(--red-50);
  color: var(--red-500);
}
/* The stage being shown */
.tracker__node[aria-selected="true"] .tracker__dot {
  background: var(--red-500);
  border-color: var(--red-500);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(217, 16, 25, .14);
}

/* The active stage pulses like a live tracking beacon. Transform and opacity
   only, so the ring costs nothing to animate. */
.tracker__node[aria-selected="true"] .tracker__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--red-500);
  pointer-events: none;
  animation: nodePulse 2.1s cubic-bezier(.2, .6, .35, 1) infinite;
}
@keyframes nodePulse {
  0%        { transform: scale(1);    opacity: .75; }
  70%, 100% { transform: scale(1.85); opacity: 0; }
}
.tracker__node[aria-selected="true"] .tracker__label { color: var(--navy-500); }
.tracker__node[aria-selected="true"] .tracker__n     { color: var(--red-500); }

.tracker__node:hover .tracker__dot { border-color: var(--red-400); }
.tracker__node:hover .tracker__label { color: var(--navy-500); }
.tracker__node:focus-visible { outline: none; }
.tracker__node:focus-visible .tracker__dot {
  box-shadow: 0 0 0 4px rgba(26, 115, 232, .45);
}

/* Without JS the rail is decorative, so every stage reads as complete. */
html:not(.js) .tracker__dot {
  border-color: var(--red-500);
  background: var(--red-50);
  color: var(--red-500);
}

/* --- Detail panel -------------------------------------------------------- */
.tracker__panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  padding: 36px 40px;
  border-radius: var(--r-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  animation: panelIn .42s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
/* Stacked, and therefore spaced, only when JS has not collapsed them to tabs. */
.tracker__panel + .tracker__panel { margin-top: 16px; }
.js .tracker__panel + .tracker__panel { margin-top: 0; }

/* The panel icon is a rendered illustration, so it drops the tinted tile the
   line glyph needed. The small rail glyphs stay SVG: they recolour per stage
   state (grey, red, white-on-red), which a raster icon cannot do. */
.tracker__icon {
  display: block;
  width: 84px; height: 84px;
  object-fit: contain;
}

.tracker__meta {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-500);
}
.tracker__panel h3 {
  font-size: 26px; line-height: 34px;
  margin: 8px 0 12px;
}
.tracker__lead {
  font-size: 18px; line-height: 28px;
  color: var(--navy-500);
  font-weight: 500;
}
.tracker__detail {
  margin-top: 10px;
  font-size: 16px; line-height: 26px;
  color: var(--gray-600);
  max-width: 62ch;
}

/* --- Carousel indicator (narrow screens only) ---------------------------- */
/* The tabs already convey position to assistive tech, so this is decorative. */
.tracker__dots { display: none; }

.tracker__pip {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--gray-300);
  transition: width .32s cubic-bezier(.22, .61, .36, 1), background-color .28s ease;
}
.tracker__pip[data-on="true"] {
  width: 28px;
  background: var(--red-500);
}

/* --- On navy ------------------------------------------------------------- */
.tracker--onDark .tracker__line { background: rgba(255, 255, 255, .18); }
.tracker--onDark .tracker__dot {
  background: var(--navy-600);
  border-color: rgba(255, 255, 255, .22);
  color: var(--navy-200);
}
.tracker--onDark .tracker__node[data-state="done"] .tracker__dot {
  border-color: var(--red-500);
  background: rgba(217, 16, 25, .18);
  color: var(--red-300);
}
.tracker--onDark .tracker__node[aria-selected="true"] .tracker__dot {
  background: var(--red-500);
  border-color: var(--red-500);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(217, 16, 25, .22);
}
.tracker--onDark .tracker__n     { color: var(--navy-300); }
.tracker--onDark .tracker__label { color: var(--navy-200); }
.tracker--onDark .tracker__node[aria-selected="true"] .tracker__label { color: #fff; }
.tracker--onDark .tracker__node[aria-selected="true"] .tracker__n     { color: var(--red-300); }
.tracker--onDark .tracker__node:hover .tracker__label { color: #fff; }
.tracker--onDark .tracker__panel {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
}
.tracker--onDark .tracker__panel h3 { color: #fff; }
.tracker--onDark .tracker__lead     { color: #fff; }
.tracker--onDark .tracker__detail   { color: var(--navy-200); }
.tracker--onDark .tracker__meta     { color: var(--red-300); }
.tracker--onDark .tracker__pip      { background: rgba(255, 255, 255, .28); }
.tracker--onDark .tracker__pip[data-on="true"] { background: var(--red-500); }
html:not(.js) .tracker--onDark .tracker__dot {
  border-color: var(--red-500);
  background: rgba(217, 16, 25, .18);
  color: var(--red-300);
}

/* --- Narrow screens ------------------------------------------------------ */
@media (max-width: 820px) {
  .tracker__label, .tracker__n { display: none; }
  .tracker__dot { width: 44px; height: 44px; border-width: 2px; }
  /* Labels are hidden here, so pad the button back out to a comfortable target. */
  .tracker__node { padding: 7px 6px; }
  .tracker__dot svg { width: 19px; height: 19px; }
  .tracker__line { top: 22px; }
  .tracker__rail { margin-bottom: 28px; }
  .tracker__panel { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
  .tracker__icon { width: 68px; height: 68px; }
  .tracker__panel h3 { font-size: 23px; line-height: 30px; }
  .tracker__lead { font-size: 17px; line-height: 26px; }

  .js .tracker__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
  }
  /* Panels are swipeable here, so stop the browser claiming horizontal drags. */
  .tracker__panels { touch-action: pan-y; }
}

@media (prefers-reduced-motion: reduce) {
  .tracker__panel { animation: none; }
  .tracker__node[aria-selected="true"] .tracker__dot::after { animation: none; opacity: .55; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1240px) {
  .nav__phone { display: none; }
}

@media (max-width: 1160px) {
  .logo__img { height: 42px; }
}

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nav__link { padding: 9px 11px; font-size: 14.5px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 78px; }

  .logo__img { height: 44px; }
  .hero__logo { width: min(320px, 88%); margin-bottom: 28px; }

  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 16px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .nav__links[data-open="false"] { display: none; }
  .nav__link { padding: 14px 12px; font-size: 17px; border-radius: var(--r); }
  .nav__cta { margin: 12px 0 0; }
  .nav__cta .btn { width: 100%; }

  .section { padding-block: 64px; }
  .split, .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form__grid { grid-template-columns: 1fr; }
  .hero__inner { padding-block: 72px 64px; }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  :root { --nav-h: 70px; }
  .logo__img { height: 36px; }
  .logo--footer .logo__img { height: 46px; }
  .hero__logo { width: min(270px, 90%); }
  .footer__grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .btn-row .btn { width: 100%; }
}

@media print {
  .site-header, .cta-band, .ticker, .nav__toggle, .to-top { display: none; }
  body { color: #000; }
}

/* ==========================================================================
   Motion & interaction
   The `js` class is set by an inline script in <head>, so a visitor without
   JavaScript sees the finished page rather than a blank one waiting on a
   handler that will never run.
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity   .72s cubic-bezier(.22, .61, .36, 1),
    transform .72s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal="left"]  { transform: translateX(-28px); }
.js [data-reveal="right"] { transform: translateX(28px); }
.js [data-reveal="zoom"]  { transform: scale(.965); }
.js [data-reveal].is-in   { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

.js .hero__logo,
.js .hero__inner > .overline,
.js .hero__title,
.js .hero__pills,
.js .hero__sub,
.js .hero__actions,
.js .hero__meta,
.js .page-head__inner > * {
  animation: rise .82s cubic-bezier(.22, .61, .36, 1) both;
}
.js .hero__logo              { animation-delay: .06s; }
.js .hero__inner > .overline { animation-delay: .18s; }
.js .hero__title             { animation-delay: .26s; }
.js .hero__pills             { animation-delay: .40s; }
.js .hero__sub               { animation-delay: .48s; }
.js .hero__actions           { animation-delay: .56s; }
.js .hero__meta              { animation-delay: .64s; }

.js .page-head__inner > *:nth-child(1) { animation-delay: .06s; }
.js .page-head__inner > *:nth-child(2) { animation-delay: .16s; }
.js .page-head__inner > *:nth-child(3) { animation-delay: .26s; }
.js .page-head__inner > *:nth-child(4) { animation-delay: .36s; }

/* The red swash under "Liberty delivers." draws itself in. */
@keyframes swash {
  from { transform: skewX(-14deg) scaleX(0); }
  to   { transform: skewX(-14deg) scaleX(1); }
}
.js .hero__title .accent::after {
  transform-origin: left center;
  animation: swash .66s cubic-bezier(.22, .61, .36, 1) .82s both;
}

/* Sticky header condenses once you leave the top. */
.site-header { transition: box-shadow .28s ease, background-color .28s ease; }
.nav         { transition: height .3s cubic-bezier(.22, .61, .36, 1); }
.logo__img   { transition: height .3s cubic-bezier(.22, .61, .36, 1); }

.site-header.is-stuck {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 6px 26px rgba(0, 20, 43, .10);
}
.site-header.is-stuck .nav       { height: calc(var(--nav-h) - 16px); }
.site-header.is-stuck .logo__img { height: 40px; }

/* Nav links: underline rather than a filled pill. */
.nav__link { position: relative; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px; border-radius: 2px;
  background: var(--red-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
}
.nav__link:hover { background: transparent; color: var(--navy-500); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* A light sweep across the primary call to action on hover. */
.btn--accent { position: relative; overflow: hidden; }
.btn--accent > * { position: relative; z-index: 1; }
.btn--accent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 22%, rgba(255,255,255,.3) 50%, transparent 78%);
  transform: translateX(-130%);
  transition: transform .62s cubic-bezier(.4, 0, .2, 1);
}
.btn--accent:hover::after { transform: translateX(130%); }

.card { position: relative; overflow: hidden; }
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--red-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .34s cubic-bezier(.22, .61, .36, 1);
}
a.card:hover::before, .card--hover:hover::before { transform: scaleX(1); }

.card__icon {
  transition:
    transform .32s cubic-bezier(.34, 1.4, .64, 1),
    background-color .22s ease,
    color .22s ease;
}
a.card:hover .card__icon, .card--hover:hover .card__icon {
  transform: translateY(-2px) scale(1.07);
  background: var(--navy-500);
  color: #fff;
}
a.card:hover .card__icon--accent, .card--hover:hover .card__icon--accent {
  background: var(--red-500);
}
/* Illustration icons keep their own look; no tile fill on hover. */
a.card:hover .card__icon--art, .card--hover:hover .card__icon--art { background: none; }
a.card:hover .card__more svg { transform: translateX(3px); }

.stat { transition: background-color .22s ease; }
.stat:hover { background: var(--navy-50); }
.stat__v { transition: transform .34s cubic-bezier(.34, 1.4, .64, 1); }
.stat:hover .stat__v { transform: translateY(-3px); }

.spec__row { transition: background-color .18s ease; }
.spec__row:hover { background: var(--navy-50); }

.media img { transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.media:hover img { transform: scale(1.04); }

.label { transition: color .18s ease; }
.field:focus-within .label { color: var(--navy-500); }

/* Hovering the ticker holds it still so the words can be read. */
.ticker:hover .ticker__track { animation-play-state: paused; }

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
.nav__links[data-open="true"] { animation: menuIn .28s cubic-bezier(.22, .61, .36, 1) both; }
.nav__links[data-open="true"] > li { animation: rise .34s cubic-bezier(.22, .61, .36, 1) both; }
.nav__links[data-open="true"] > li:nth-child(1) { animation-delay: .04s; }
.nav__links[data-open="true"] > li:nth-child(2) { animation-delay: .08s; }
.nav__links[data-open="true"] > li:nth-child(3) { animation-delay: .12s; }
.nav__links[data-open="true"] > li:nth-child(4) { animation-delay: .16s; }
.nav__links[data-open="true"] > li:nth-child(5) { animation-delay: .20s; }
.nav__links[data-open="true"] > li:nth-child(6) { animation-delay: .24s; }
.nav__links[data-open="true"] > li:nth-child(7) { animation-delay: .28s; }

.nav__toggle svg { transition: transform .3s cubic-bezier(.22, .61, .36, 1); }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--navy-500);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .26s ease, transform .26s ease, visibility .26s, background-color .2s ease;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-500); transform: translateY(-2px); }
.to-top svg { width: 18px; height: 18px; }

@media (max-width: 560px) {
  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* ==========================================================================
   Flag motifs
   Stars and stripes as texture, at low opacity behind content, so sections
   still read as navy and red rather than as a novelty background.
   ========================================================================== */

.flag-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.flag-field > span { position: absolute; display: block; }
.flag-field--behind { z-index: -1; }

/* Content sharing a section with a flag field has to sit above it. */
.section--navy > .wrap,
.cta-band > .wrap,
.page-head > .wrap { position: relative; z-index: 1; }

.flag-stars {
  inset: -25%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='68' viewBox='0 0 68 68'%3E%3Cpath fill='%23fff' d='M17 6l2.47 5.06 5.53.8-4 3.94.94 5.55L17 18.73l-4.94 2.62.94-5.55-4-3.94 5.53-.8z'/%3E%3Cpath fill='%23fff' d='M51 40l2.47 5.06 5.53.8-4 3.94.94 5.55L51 52.73l-4.94 2.62.94-5.55-4-3.94 5.53-.8z'/%3E%3C/svg%3E");
  background-size: 68px 68px;
  opacity: .085;
  animation: starDrift 46s linear infinite, starPulse 9s ease-in-out infinite;
}
/* Drifting by exactly one tile keeps the loop seamless. */
@keyframes starDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(68px, -68px, 0); }
}
@keyframes starPulse {
  0%, 100% { opacity: .065; }
  50%      { opacity: .115; }
}

.flag-stripes {
  inset: -45%;
  transform: rotate(-13deg);
  background: repeating-linear-gradient(
    180deg,
    rgba(217, 16, 25, .85) 0 12px,
    transparent          12px 30px,
    rgba(255, 255, 255, .8) 30px 42px,
    transparent          42px 60px
  );
  opacity: .07;
  animation: stripeDrift 30s linear infinite;
}
/* One full gradient period is 60px, so that is the loop distance. */
@keyframes stripeDrift {
  from { transform: rotate(-13deg) translateY(0); }
  to   { transform: rotate(-13deg) translateY(60px); }
}

/* On the red CTA band the red stripes would disappear, so it runs white only. */
.cta-band .flag-stripes {
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, .9) 0 12px,
    transparent            12px 34px
  );
  opacity: .09;
  animation-name: stripeDriftLight;
}
@keyframes stripeDriftLight {
  from { transform: rotate(-13deg) translateY(0); }
  to   { transform: rotate(-13deg) translateY(34px); }
}

/* Keep the texture off the reading area so headlines sit on flat colour. */
.hero .flag-field {
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 30%, #000 72%);
          mask-image: linear-gradient(100deg, transparent 0%, transparent 30%, #000 72%);
}
.hero .flag-stars { opacity: .075; animation-name: starDrift, starPulseHero; }
@keyframes starPulseHero {
  0%, 100% { opacity: .055; }
  50%      { opacity: .10; }
}

.page-head .flag-field {
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 34%, #000 78%);
          mask-image: linear-gradient(100deg, transparent 0%, transparent 34%, #000 78%);
}

.section--navy .flag-field {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
}
.section--navy .flag-stars { opacity: .07; }

/* ==========================================================================
   Narrow screens: tracker beacon and card layout
   ========================================================================== */

/* The beacon is sized for desktop spacing. On a 375px screen the stage nodes
   sit ~68px apart while the full-scale ring spans ~103px, so it collided with
   the next node and poked past the content margin. Scale it to fit its cell. */
@media (max-width: 820px) {
  @keyframes nodePulseTight {
    0%        { transform: scale(1);    opacity: .7; }
    70%, 100% { transform: scale(1.55); opacity: 0; }
  }
  .tracker__node[aria-selected="true"] .tracker__dot::after {
    animation-name: nodePulseTight;
  }
  .tracker__node[aria-selected="true"] .tracker__dot {
    box-shadow: 0 0 0 4px rgba(217, 16, 25, .16);
  }
}

/* Stacked full-width cards put the icon alone on its own line, leaving a wide
   empty gutter beside it and making the grid far taller than it needs to be.
   Below 620px the icon moves alongside the title and the copy runs full width. */
@media (max-width: 900px) {
  .page-head::after {
    background:
      linear-gradient(180deg, rgba(0, 20, 43, .72) 0%, rgba(0, 20, 43, .88) 55%, rgba(0, 20, 43, .94) 100%);
  }
  .page-head__photo { opacity: .5; }
}

@media (max-width: 620px) {
  /* `a.card { display: block }` outranks a bare `.card`, so match it here. */
  .card, a.card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 14px;
    align-items: center;
    align-content: start;
  }
  .card > * { grid-column: 1 / -1; }
  .card > .card__icon {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }
  .card > .card__title {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
  }
  .card > .card__list,
  .card > .card__more { margin-top: 0; }

  .card__icon { width: 48px; height: 48px; }
  .card__icon svg { width: 24px; height: 24px; }
  .card__icon--art { width: 62px; height: 62px; }
  .card__icon--art img { width: 62px; height: 62px; }

  /* The lift-and-fill hover was built for a square tile above the text. */
  a.card:hover .card__icon, .card--hover:hover .card__icon { transform: none; }
}

/* ==========================================================================
   Respect the system motion preference
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .flag-stars, .flag-stripes { animation: none !important; }
}
