/* Fidel's illustrated freight pages share type and color, with distinct compositions. */
:root { --stage-radius: clamp(1rem, 2.5vw, 2rem); }
h1, h2, h3 { font-weight: 600; letter-spacing: -.038em; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 3.25vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
h1 em, h2 em { font: inherit; letter-spacing: inherit; }
.inside { border-bottom: 0; }
.inside h1 em, .section h2 em, .freight-heading em, .contact-banner em { color: inherit; }
.terminal-hero { padding-top: clamp(2.6rem, 5vw, 4rem); }
.terminal-hero h1 { font-size: clamp(2.25rem, 5.15vw, 4.25rem); line-height: 1.01; }
.terminal-hero h1 span { display: block; }
.terminal-hero .eyebrow { margin-bottom: .9rem; }
.terminal-scene { position: relative; }
.terminal-scene img { animation: none; }
.terminal-scene > img:first-child { width: min(100%, 58rem); height: clamp(15rem, 32vw, 27rem); }
.terminal-scene .terminal-truck {
  position: absolute;
  bottom: 0;
  left: 12%;
  width: clamp(5rem, 15vw, 12rem);
  height: auto;
  filter: drop-shadow(0 10px 8px rgb(20 35 42 / .16));
}
.trade-strip { position: relative; border: 0; background: transparent; padding-block: 1rem 2rem; }
.freight {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.2rem, 6vw, 5.6rem);
  background: transparent;
}
.freight::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--deep);
  border-radius: 50% 50% 50% 50% / clamp(.9rem, 3vw, 2.6rem) clamp(.9rem, 3vw, 2.6rem) clamp(.6rem, 2vw, 1.75rem) clamp(.6rem, 2vw, 1.75rem);
}
.freight-image img { transition: transform .45s cubic-bezier(.2,.7,.3,1); }
.freight-card:hover img, .freight-card:focus-visible img { transform: translate(4%, -5%) scale(1.08); }
.handover-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 5vw, 4rem);
  align-items: center;
  margin-top: clamp(2.75rem, 6vw, 5rem);
}
.handover-copy p:not(.eyebrow) { color: var(--text); max-width: 41ch; margin: .8rem 0 1rem; }
.handover-art { padding: 1rem clamp(1rem, 6vw, 5rem); background: radial-gradient(ellipse closest-side, #d6ebe2, transparent); }
.handover-art img { width: 100%; max-height: 19rem; object-fit: contain; }
.journey { border-radius: var(--stage-radius); }
.contact-banner {
  position: relative;
  isolation: isolate;
  overflow: visible;
  margin-top: 1rem;
  background: none;
}
.contact-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #d6ebe2;
  border-radius: var(--stage-radius);
  clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
}
.contact-banner img { transform: translateY(-7%); object-position: center; }
.band { padding: 0 0 var(--section); background: transparent; }
.band-inner {
  background: #d6ebe2;
  border-radius: var(--stage-radius);
  padding-inline: clamp(1.35rem, 5vw, 4rem);
}
footer { border-radius: var(--stage-radius) var(--stage-radius) 0 0; }

/* Services uses anchored, alternating illustrated panels. */
.service-intro {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: center;
  padding-block: var(--section) clamp(2rem, 5vw, 4rem);
}
.service-intro > img { width: min(100%, 24rem); justify-self: center; }
.service-rail { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: 1.3rem; }
.service-rail a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-decoration-color: var(--rust); }
.catalog { display: grid; gap: clamp(.85rem, 2vw, 1.5rem); }
.catalog-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1rem, 5vw, 4rem);
  min-width: 0;
  padding: clamp(1.2rem, 5vw, 4rem);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--stage-radius);
  scroll-margin-top: 1rem;
}
.catalog-card:nth-child(2) { background: var(--white); }
.catalog-card:target { border-color: var(--rust); }
.catalog-copy p { color: var(--text); margin-top: .8rem; max-width: 51ch; }
.catalog-copy .button { margin-top: 1.2rem; }
.catalog-art { display: grid; place-items: center; min-width: 0; }
.catalog-art img { width: min(100%, 24rem); max-height: 16rem; object-fit: contain; }
.catalog-card:nth-child(2) .catalog-art { order: -1; grid-template-columns: 1fr 1fr; }
.catalog-card:nth-child(2) .catalog-art img + img { transform: translate(-6%, -13%); }

/* About reads as a feature story with an illustration crossing its inset stage. */
.page-about .inside { text-align: center; margin-bottom: 1rem; }
.page-about .inside .lede { margin-inline: auto; }
.page-about .about-grid {
  background: var(--cream);
  padding: clamp(1.3rem, 5vw, 4rem);
  border-radius: var(--stage-radius);
  gap: clamp(1.2rem, 5vw, 4rem);
}
.about-art { position: relative; margin-left: clamp(-3.25rem, -3vw, -1rem); }
.about-art img { width: 100%; }
.page-about .flow { max-width: 70rem; }

/* The quote form and checklist keep their controls still and use separate preparation layouts. */
.page-quote .inside { margin-bottom: 0; }
.quote-grid aside {
  border: 0;
  background: var(--cream);
  border-radius: var(--stage-radius);
  padding: clamp(1.2rem, 2.7vw, 2rem);
}
.quote-grid aside img { width: min(100%, 12rem); margin: 0 auto 1rem; }
.quote-grid form { border-radius: var(--stage-radius); }
.page-quote .faq { padding-top: 0; }
.page-checklist .inside { max-width: 75rem; margin-bottom: 0; }
.checklist-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  max-width: 75rem;
  align-items: center;
  gap: clamp(1rem, 5vw, 4rem);
  margin-bottom: var(--section);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--stage-radius);
  padding: clamp(1rem, 5vw, 3.3rem);
}
.checklist-stage .checklist { padding: 0; }
.checklist-art { background: radial-gradient(ellipse closest-side, #d6ebe2, transparent); }
.checklist-art img { width: 100%; }

/* Contact places the two enquiry paths directly beneath an overlapping cutout. */
.page-contact .inside { margin-bottom: 0; }
.page-contact .contact-panel {
  position: relative;
  padding: clamp(1rem, 4vw, 3rem);
  margin-bottom: clamp(2.75rem, 5vw, 4rem);
  background: #d6ebe2;
  border-radius: var(--stage-radius);
  gap: 1rem;
}
.contact-panel figure { grid-column: 1 / -1; justify-self: end; width: min(50%, 26rem); margin-top: clamp(-9rem, -9vw, -4rem); }
.contact-panel > div { border: 0; border-radius: calc(var(--stage-radius) - .45rem); }
.contact-next { max-width: 67rem; }

@media (max-width: 760px) {
  .terminal-scene > img:first-child { height: auto; aspect-ratio: 2; }
  .terminal-scene .terminal-truck { left: 6%; }
  .handover-feature, .service-intro, .catalog-card { grid-template-columns: minmax(0, 1fr); }
  .service-intro > img { width: min(65%, 16rem); }
  .handover-art, .catalog-art { order: -1; }
  .handover-art img, .catalog-art img { max-height: 11rem; }
  .page-about .about-grid { padding-top: 1rem; }
  .about-art { margin: -1.8rem 0 0; }
  .quote-grid aside img { width: 8rem; }
  .checklist-stage { grid-template-columns: minmax(0, 1fr); }
  .checklist-art { order: -1; width: min(54%, 12rem); justify-self: end; margin-top: -1.8rem; }
  .contact-panel figure { width: min(70%, 19rem); margin-top: -2rem; }
}
@media (min-width: 761px) {
  .page-contact .inside { position: relative; z-index: 1; }
  .page-contact .inside .lede { max-width: min(54ch, 46%); }
}

@media (prefers-reduced-motion: no-preference) {
  .terminal-copy h1 span, .terminal-copy .eyebrow,
  .terminal-copy > p:not(.eyebrow), .terminal-copy .hero-actions {
    animation: fidel-rise .65s cubic-bezier(.22,.7,.28,1) both;
  }
  .terminal-copy h1 span:nth-child(2) { animation-delay: 95ms; }
  .terminal-copy > p:not(.eyebrow) { animation-delay: 150ms; }
  .terminal-copy .hero-actions { animation-delay: 205ms; }
  .terminal-scene > img:first-child { animation: fidel-rise .75s 90ms cubic-bezier(.22,.7,.28,1) both; }
  .terminal-scene .terminal-truck { animation: truck-arrival .95s 250ms cubic-bezier(.2,.7,.35,1) both; }
  .has-scroll-motion [data-reveal] { transition: opacity .56s ease, translate .65s cubic-bezier(.22,.7,.28,1); }
  .has-scroll-motion [data-reveal].waiting { opacity: 0; translate: 0 1.3rem; }
  .has-scroll-motion [data-reveal][data-slide="left"].waiting { translate: -1.2rem .55rem; }
  .has-scroll-motion [data-reveal][data-slide="right"].waiting { translate: 1.2rem .55rem; }
  .has-scroll-motion [data-reveal].arrived { transition-delay: var(--delay, 0ms); }
  .has-scroll-motion [data-reveal]:focus-within { opacity: 1; translate: none; transition-delay: 0ms; }
  @keyframes fidel-rise { from { opacity: 0; transform: translateY(1rem); } }
  @keyframes truck-arrival { from { opacity: 0; transform: translate(-55%, 25%); } }
  @supports (animation-timeline: view()) {
    .handover-art img {
      animation: truck-cross linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 55%;
    }
    @keyframes truck-cross { from { transform: translate(-17%, 10%); } to { transform: translate(4%, -2%); } }
  }
}

/* Supplied identity and blue-green artwork. Motion and reveal rules remain above. */
.brand { flex-direction:column; align-items:flex-start; gap:.12rem; padding-block:.32rem; }
.brand img.fidel-wordmark { display:block; width:6rem; max-width:100%; height:auto; }
.brand-legal { font-size:.56rem; letter-spacing:.115em; line-height:1.2; }
footer .brand { background:var(--white); padding:.45rem .68rem; color:var(--ink); border-radius:.35rem; }
.terminal-hero h1 span:nth-child(2) { color:var(--rust); }
.freight-card .freight-image img { object-fit:cover; padding:0; }
.catalog-card .catalog-art img,.handover-art img { border-radius:.55rem; }
.catalog-card:nth-child(2) .catalog-art { grid-template-columns:1fr; }
.catalog-card img,.service-intro > img,.about-art img,.quote-grid aside img { border-radius:.55rem; }
.terminal-hero .button.dark:hover,.mast nav .nav-quote:hover { background:var(--cta);color:#fff; }
@media(max-width:360px){header .brand{gap:.1rem}header .brand img.fidel-wordmark{width:4.8rem}.brand-legal{font-size:.51rem}}
