/* The homepage continues the split cover's paper, photography and wine palette. */
.home-page {
  --home-paper: #f7f4ed;
  --home-rule: #d9d2c8;
  --home-serif: Georgia, "Times New Roman", serif;
  --home-section-title: clamp(36px, 3.7vw, 55px);
  --home-space: clamp(44px, 5.5vw, 80px);
  --home-gap: clamp(20px, 2.25vw, 32px);
  --home-intro-size: clamp(16px, 1.2vw, 18px);
}

.home-page #main-content > .section,
.home-page .site-footer { padding-block: var(--home-space); }
#home-about, #home-cases, #home-guides { background: white; }
#services, #cargo-preview, #request { background: var(--home-paper); }
#main-content .home-title {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: var(--home-section-title);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.home-title em {
  color: var(--action);
  font-family: var(--home-serif);
  font-style: italic;
  font-weight: 400;
}
#home-about .home-title em, #cargo-preview .home-title em, #request .home-title em { display: block; }
:is(#home-cases, #home-guides) .section-heading { container-type: inline-size; flex-wrap: wrap; }
:is(#home-cases, #home-guides) .section-heading > div { max-width: 100%; }
:is(#home-cases, #home-guides) .section-heading h2 { white-space: nowrap; }
.home-page .reference-hero h1 span { font-family: var(--home-serif); }
.home-page .home-section-eyebrow {
  margin: 0 0 14px;
  color: #856a47;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .09em;
}
.home-page .benefits-band { box-shadow: none; }
.home-page .text-link { color: var(--action); }
.home-page .text-link:hover { color: var(--action-hover); }
.home-page ::selection { color: white; background: var(--action); }
.home-page button,
.home-page .footer-redesign button:focus-visible { border-radius: 0; }

/* Direct links sit with the cover text, independently of the slideshow. */
.hero-transport {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 25.5rem);
  margin-top: clamp(14px, 1.4vw, 20px);
}
.hero-transport a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 6px;
  border: 1px solid var(--home-rule);
  border-radius: 0;
  color: var(--action);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}
.hero-transport .icon { flex: none; width: 18px; height: 18px; }
@media (hover: hover) {
  .hero-transport a:hover {
    background: var(--surface);
  }
}
.hero-transport a:active {
  border-color: var(--action-active);
  background: var(--action-active);
  color: var(--on-wine);
}
.hero-transport a:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

/* Company photograph, introduction and the four operating principles. */
#home-about .home-about-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  grid-template-areas: "photo copy";
  align-items: center;
  gap: clamp(32px, 5.5vw, 80px);
}
#home-about .home-about-copy { grid-area: copy; }
#home-about .home-about-media { grid-area: photo; }
#home-about .home-about-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 0; box-shadow: none;
}
#home-about .home-about-intro { max-width: 48ch; margin-top: 20px; color: var(--text); }
#home-about .home-about-principles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px var(--home-gap);
  margin-top: calc((var(--home-space) + 10px) / 2);
  padding: 0; border: 0;
}
#home-about .home-about-principles li {
  display: grid; grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
}
#home-about .home-about-principle-icon {
  width: 18px; height: 20px; border-radius: 0; background: transparent; color: var(--action);
}
#home-about .home-about-principle-icon .icon { width: 17px; height: 17px; }
#home-about .home-about-principles h3 { font-weight: 500; }

/* Full-bleed service photos with captions over the bottom edge. */
#services .services-head {
  display: block; margin-bottom: clamp(20px, 2.6vw, 32px);
}
#services .freight-offers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, .85vw, 12px);
}
#services .freight-offer {
  display: grid; grid-template: 1fr / minmax(0, 1fr);
  min-height: clamp(300px, 34.4vw, 412px); padding: 0;
  background: var(--wine-panel); border: 0; border-radius: 0; box-shadow: none;
  color: var(--on-wine); text-decoration: none;
}
#services .freight-offer-media { grid-area: 1 / 1; aspect-ratio: auto; }
#services .freight-offer-media img { filter: none; }
#services .freight-offer-sea img { object-position: 48% 50%; }
#services .freight-offer-road img { object-position: 52% 45%; }
#services .freight-offer-air img { object-position: 53% 60%; }
#services .freight-offer-body {
  --caption-side-inset: clamp(12px, 1.4vw, 20px);
  --caption-bottom-inset: clamp(12px, 1.25vw, 18px);
  --caption-gap: 6px;
  position: relative; grid-area: 1 / 1; align-self: end;
  display: grid; gap: var(--caption-gap);
  padding: 52px var(--caption-side-inset) var(--caption-bottom-inset);
  background: linear-gradient(transparent, #211418ef 45%, #211418);
  color: var(--on-wine); font-size: clamp(12px, 1vw, 14px); line-height: 1.42;
}
#services .freight-offer-heading { padding-inline-end: 28px; }
#services .freight-offer h3 {
  min-width: 0; margin: 0; color: inherit; font-size: clamp(17px, 1.6vw, 23px); font-weight: 500;
  line-height: 1.13; letter-spacing: -.035em; text-wrap: initial;
}
#services .freight-offer-title-short { display: none; }
#services .freight-offer-description { margin: 0; color: inherit; font: inherit; }
#services .freight-offer-detail {
  position: absolute; inset-inline-end: var(--caption-side-inset);
  inset-block-end: calc(var(--caption-bottom-inset) + 2lh + var(--caption-gap));
  color: inherit; font: inherit;
}
#services .freight-offer:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
#services .services-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 24px;
  margin-top: clamp(16px, 2.1vw, 26px); padding: 0; border: 0;
}
#services .services-foot .btn-primary { justify-self: end; margin: 0; border-radius: 0; font-size: 14px; }
#services .services-summary {
  display: block; color: var(--text); font-size: clamp(14px, 1.15vw, 16px); line-height: 1.45;
}

@media (hover: hover) and (pointer: fine) {
  #services .freight-offer:hover { transform: none; }
  #services .freight-offer:hover .freight-offer-media img { filter: brightness(1.06); }
}
@media (min-width: 761px) and (max-width: 960px), (max-width: 520px) {
  #services .freight-offer-title-long { display: none; }
  #services .freight-offer-title-short { display: inline; }
}

/* A wide working model and its statistics share one surface. */
#cargo-preview .tool-teaser { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
#cargo-preview .tool-copy {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  align-items: start; gap: clamp(26px, 5vw, 74px); padding: 0;
}
#cargo-preview .tool-heading, #cargo-preview .tool-intro-details { min-width: 0; }
#cargo-preview .tool-title-mobile { display: none; }
#cargo-preview .tool-copy .lead { max-width: 54ch; margin: 0 0 16px; color: var(--text); font-size: var(--home-intro-size); }
#cargo-preview .interactive-container {
  padding: 0; border: 1px solid var(--home-rule); border-radius: 0;
  background: white; box-shadow: none;
}
#cargo-preview .preview-disclaimer { max-width: 64ch; margin-top: 12px; font-size: 12px; }
#cargo-preview .preview-shell-body { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 0; }
#cargo-preview .preview-main { padding: clamp(16px, 2.2vw, 32px); justify-content: space-between; }
#cargo-preview .preview-stage-head { position: static; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; }
#cargo-preview .preview-stage-meta { width: auto; max-width: 100%; }
#cargo-preview .preview-heading strong { color: var(--ink); font-size: 18px; font-weight: 500; }
#cargo-preview .preview-heading > span { max-width: none; color: var(--muted); font-size: 12px; }
#cargo-preview .preview-scene { height: clamp(235px, 22vw, 338px); padding: 0; pointer-events: none; }
#cargo-preview .interactive-container .preview-viewport { position: absolute; inset: 0; height: auto; }
#cargo-preview .preview-viewport canvas { border-radius: 0; }
#cargo-preview .preview-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(104px, 1.12fr);
  z-index: 1; gap: 8px; margin: 0; padding: 0; border: 0;
}
#cargo-preview .preview-stat {
  flex-direction: column; justify-content: center; gap: 4px;
  padding: 10px clamp(5px, .8vw, 10px); border: 0;
}
#cargo-preview .preview-stat:first-child { padding-inline-start: 0; }
#cargo-preview .preview-stat:nth-child(3) { margin-inline-start: 5px; }
#cargo-preview .preview-stat-label {
  display: flex; align-items: center; gap: 4px; color: var(--muted);
  font-size: clamp(9px, .72vw, 10px); line-height: 1.15; white-space: nowrap;
}
#cargo-preview .preview-stat .icon { width: 15px; height: 15px; flex: 0 0 15px; color: var(--action); }
#cargo-preview .preview-stat-value {
  margin: 0; color: var(--action); font-size: clamp(16px, 1.5vw, 23px); font-weight: 600;
  letter-spacing: -.035em; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums;
}
#cargo-preview .preview-stat-value small { font-size: .65em; letter-spacing: 0; }
#cargo-preview .preview-sales {
  min-width: 0; padding: clamp(20px, 2.5vw, 36px); border-radius: 0;
  background: var(--wine-panel); color: var(--on-wine);
}
#cargo-preview .preview-sales h3 {
  color: var(--on-wine); font-family: var(--home-serif); font-weight: 400;
  font-size: clamp(26px, 2.3vw, 34px); line-height: 1.12; letter-spacing: -.025em;
}
#cargo-preview .preview-benefits { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 16px 0 20px; }
#cargo-preview .preview-benefits li {
  grid-template-columns: 34px minmax(0, 1fr); gap: 11px; align-items: start;
  padding: 10px 0;
}
#cargo-preview .preview-benefit-icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  color: var(--on-wine); background: color-mix(in srgb, var(--on-wine) 11%, transparent);
}
#cargo-preview .preview-benefit-icon svg { width: 20px; height: 20px; }
#cargo-preview .preview-benefit-copy strong { color: var(--on-wine); font-size: 14px; }
#cargo-preview .preview-benefit-copy > span { color: var(--on-wine-muted); font-size: 13px; line-height: 1.4; }
#cargo-preview .preview-sales .preview-inline-cta {
  width: 100%; max-width: none; min-height: 44px; margin: auto 0 0; padding: 9px 12px;
  border: 0; border-radius: 0;
  background: #fef8f4; color: var(--wine-panel); box-shadow: none; font-weight: 600;
}
#cargo-preview .preview-inline-cta .icon { width: 24px; height: 18px; flex: 0 0 24px; }
#cargo-preview .preview-sales .preview-inline-cta:hover { background: #f3e7e2; text-decoration: none; }
#cargo-preview .preview-sales .preview-inline-cta:active { background: #ead8d4; }
#cargo-preview .preview-inline-cta:focus-visible { outline: 2px solid var(--on-wine); outline-offset: 3px; }

/* Compact project cards with a shared photo and copy layout. */
#home-cases .section-heading { margin-bottom: 22px; align-items: end; }
#home-cases .section-heading h2 { font-size: min(var(--home-section-title), 5.6cqi); }
#home-cases .case-photo-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  gap: clamp(12px, 1.4vw, 18px);
}
#home-cases .reference-case-card {
  display: grid; grid-template-columns: clamp(180px, 24vw, 296px) minmax(0, 1fr);
  min-height: 174px; padding: 0;
  background: var(--home-paper); border: 0; border-radius: 0; box-shadow: none;
}
#home-cases .case-home-image { position: relative; min-width: 0; aspect-ratio: auto; }
#home-cases .case-home-image img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none;
}
#home-cases .reference-case-card .photo-copy {
  justify-content: center; min-width: 0; padding: 16px clamp(16px, 2vw, 28px);
  text-align: center;
}
#home-cases .photo-kicker {
  align-self: center; justify-content: center;
  color: var(--action); font-weight: 500;
}
#home-cases .reference-case-card .photo-copy h3 {
  margin-top: 6px; text-wrap: balance;
  font-size: clamp(21px, 1.9vw, 26px); font-weight: 500; line-height: 1.15; letter-spacing: -.035em;
}
#home-cases .reference-case-card .photo-copy .case-excerpt {
  width: 100%; max-width: 520px; margin: 6px auto 8px;
  font-size: 14px; line-height: 1.45; text-wrap: balance;
}
#home-cases .case-card-route {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 22px;
  align-items: center; gap: 8px;
}
#home-cases .reference-case-card .case-route {
  grid-column: 2;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px .5em;
  max-width: none; margin: 0; color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.4;
}
#home-cases .reference-case-card .case-link-arrow { grid-area: 1 / 3; align-self: center; }
#home-cases .case-route > span { white-space: nowrap; }
#home-cases .case-route .route-arrow { color: var(--action); margin-right: .15em; }

/* Equal-width article cards become compact rows on smaller screens. */
#home-guides .section-heading {
  flex-direction: row; align-items: end;
  gap: 4px 16px; margin-bottom: clamp(14px, 1.7vw, 22px);
}
#home-guides .section-heading h2 { font-size: min(var(--home-section-title), 7cqi); }
#home-guides .section-heading .text-link { margin: 0; }
#home-guides .guide-directory {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px); border: 0;
}
#home-guides .guide-entry {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr;
  gap: 12px; align-items: start; padding: 0; overflow: visible;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
#home-guides .guide-entry-media { aspect-ratio: 16 / 9; }
#home-guides .guide-entry-media img { width: 100%; height: 100%; object-fit: cover; filter: none; }
#home-guides .guide-entry-body { display: block; min-width: 0; padding: 0; }
#home-guides .guide-entry h3 {
  font-size: clamp(22px, 1.9vw, 28px); line-height: 1.12; font-weight: 500; letter-spacing: -.03em;
}
#home-guides .guide-entry p { margin: 6px 0 0; color: var(--text); font-size: 14px; line-height: 1.45; }
#home-guides .guide-entry:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }

@media (max-width: 720px) {
  #home-guides .guide-directory {
    grid-template-columns: minmax(0, 1fr); gap: 0;
  }
  #home-guides .guide-entry {
    grid-template-columns: clamp(68px, 20vw, 112px) minmax(0, 1fr); grid-template-rows: auto;
    gap: 10px; align-items: center; padding-block: 10px;
  }
  #home-guides .guide-entry:last-child { padding-block-end: 0; }
  #home-guides .guide-entry-media { aspect-ratio: 8 / 7; }
  #home-guides .guide-entry h3 { font-size: 18px; }
}

/* Contact details and the form use the same edges as the cover. */
#request .quote-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 86px); }
#request .home-request-intro { display: block; padding-top: 0; }
#request .home-request-contact {
  max-width: 400px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--home-rule);
}
#request .home-request-contact .contact-inline {
  margin: 0; color: var(--action); font-size: clamp(18px, 1.55vw, 24px); letter-spacing: -.025em;
}
#request .quote-grid > form {
  padding: clamp(20px, 2.7vw, 40px); border: 1px solid var(--home-rule);
  border-top: 3px solid var(--action); border-radius: 0; background: white; box-shadow: none;
}
.home-page .request-form .field > :is(input, textarea) { border-radius: 0; }
.home-page .request-form .field > :is(input, textarea):not([aria-invalid="true"]) { border-color: #bbb2a7; }
.home-page .request-form .field > :is(input, textarea):focus { outline: 2px solid var(--action); outline-offset: 2px; }
#request .form-submit { gap: 0; }
#request .form-status:not(:empty) { margin-top: 10px; }
.home-page .request-form .file-dropzone { border: 1px dashed #a8998c; border-radius: 0; background: var(--home-paper); }
.home-page .request-form .file-dropzone:is(:hover, .is-dragover) { border-color: var(--action); background: #efe9e0; }
.home-page .request-form .file-dropzone-icon { color: var(--action); }
.home-page .quote-dialog { border: 0; border-top: 3px solid var(--action); border-radius: 8px; }
.home-page .quote-dialog::backdrop { background: rgba(33, 22, 25, .55); }
.home-page .cookie-banner { border: 1px solid var(--home-rule); border-radius: 8px; }
.home-page .footer-redesign { --footer-bg: var(--ink); }
.home-page .footer-overview { align-items: start; }
.home-page .footer-phone { font-size: clamp(18px, 1.55vw, 24px); letter-spacing: -.025em; }

@media (hover: hover) and (pointer: fine) {
  :is(#home-cases .reference-case-card, #home-guides .guide-entry):hover {
    transform: none; box-shadow: none;
  }
  :is(#home-cases .reference-case-card, #home-guides .guide-entry):hover h3 {
    color: var(--action); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em;
  }
}
@media (max-width: 900px) {
  #home-about .home-about-grid { gap: 28px; }
  #home-about .home-about-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
  #cargo-preview .preview-shell-body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  #cargo-preview .preview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #cargo-preview .preview-stat, #cargo-preview .preview-stat:first-child { padding: 10px 6px; }
  #cargo-preview .preview-stat:nth-child(3) { margin-inline-start: 0; }
  #request .quote-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.2fr); gap: 24px; }
}
@media (max-width: 820px) {
  .home-page .reference-hero-content { padding-bottom: 12px; }
}
@media (max-width: 760px) {
  #home-about .home-about-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "photo"; }
  #home-about .home-about-media img { aspect-ratio: 16 / 9; }
  #services .freight-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #services .freight-offer { min-height: clamp(176px, 45vw, 272px); }
  #cargo-preview .tool-copy, #cargo-preview .preview-shell-body,
  #request .quote-grid { grid-template-columns: minmax(0, 1fr); }
  #cargo-preview .tool-copy { gap: 16px; }
  #cargo-preview .preview-shell-body { gap: 0; }
  #cargo-preview .preview-main { gap: 12px; }
  #cargo-preview .preview-sales { padding: 24px; }
  #cargo-preview .preview-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  #home-cases .section-heading { align-items: start; }
  #request .home-request-contact { margin-top: 20px; padding-top: 10px; }
}
@media (max-width: 720px) {
  .home-page .footer-links.is-compact {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }
  .footer-links.is-compact > div + div { border-top: 1px solid var(--footer-line); }
  .footer-links.is-compact h3 { margin: 0; }
  .footer-group-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; min-height: 52px; padding: 8px 2px 8px 0;
    border: 0; background: transparent; color: var(--footer-text);
    font: inherit; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer;
  }
  .footer-group-toggle::after {
    content: ""; width: 8px; height: 8px; margin: -4px 5px 0 0;
    border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
  }
  .footer-group-toggle[aria-expanded="true"]::after { margin-top: 4px; transform: rotate(225deg); }
  .footer-links.is-compact .footer-group-toggle:focus-visible { outline-offset: -3px; }
  .footer-links.is-compact .footer-group-links { padding-bottom: 12px; }
  .footer-links.is-compact > div:last-child ul { display: block; }
  .footer-links.is-compact .footer-group-links a { font-size: 14px; }
}
@media (max-width: 620px) {
  .home-page { --home-space: 32px; }
  #main-content .home-title { font-size: clamp(32px, 8.3vw, 45px); }
  #home-cases .case-photo-grid { grid-auto-rows: auto; }
  #home-cases .reference-case-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  #home-cases .case-home-image { height: clamp(108px, 34vw, 150px); }
  #cargo-preview .tool-teaser { gap: 18px; }
  #cargo-preview .tool-copy { gap: 10px; }
  #cargo-preview .tool-title-desktop,
  #cargo-preview .tool-copy .btn,
  #cargo-preview .preview-sales :is(h3, .preview-benefits) { display: none; }
  #cargo-preview .tool-title-mobile { display: inline; }
  #cargo-preview .tool-copy .lead { margin-bottom: 10px; }
  #cargo-preview .preview-main { gap: 8px; padding: 12px; }
  #cargo-preview .preview-stage-head { gap: 5px 12px; }
  #cargo-preview .preview-heading strong { font-size: 16px; }
  #cargo-preview .preview-scene { height: clamp(176px, 50vw, 235px); }
  #cargo-preview .preview-stat, #cargo-preview .preview-stat:first-child { padding: 7px 6px; }
  #cargo-preview .preview-sales { padding: 12px; }
  #request .quote-grid > form { padding: 20px 16px; }
}
@media (max-width: 500px) {
  .hero-transport a {
    flex-direction: column;
    gap: 4px;
    min-height: 54px;
  }
  #home-about .home-about-principles { grid-template-columns: minmax(0, 1fr); row-gap: 20px; margin-top: 16px; }
  #services .services-foot { grid-template-columns: minmax(0, 1fr); }
  #services .services-foot .btn-primary { min-height: 44px; padding-inline: 12px; font-size: 13px; }
  #services .freight-offer-body { padding: 38px 11px 12px; }
  #services .freight-offer-heading { padding-inline-end: 0; }
  #services .freight-offer-detail { display: none; }
}
@media print, (forced-colors: active) {
  #services .freight-offer-body { background: Canvas; color: CanvasText; }
}
@media print {
  .home-page { --home-space: 18px; }
  .hero-transport { display: none; }
  #home-about .home-about-principles { margin-top: 14px; }
  #cargo-preview .preview-sales { background: white; --on-wine: #111; --on-wine-muted: #333; }
  #home-cases .reference-case-card, #services .freight-offer, #home-guides .guide-entry { break-inside: avoid; }
}
