/* The fleet is one working stage: photograph, selection, then inquiry. */
:root {
  --ease-out: cubic-bezier(.2, .75, .25, 1);
  --stage: #0a252d;
}

.header {
  background: rgba(242, 245, 244, .96);
  backdrop-filter: blur(16px);
}
.reading-progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: var(--orange);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
  pointer-events: none;
}
.navigation > a[aria-current="location"]::after { transform: scaleX(1); background: var(--orange); }
.navigation > .nav-contact[aria-current="location"] { background: var(--ink); color: white; }
.button, .nav-contact, .copy-button {
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.button-square { transition: transform .25s var(--ease-out); }
.button:hover .button-square { transform: rotate(45deg); }
.button:active, .copy-button:active { transform: translateY(2px); }

/* The oversized image surface gives the parallax room to move. */
.hero-media[data-parallax] {
  inset: -8% -3%;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}
.hero-media .hero-scene-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: none;
  transform: none;
  transition: opacity .7s var(--ease-out);
  filter: saturate(.7);
}
.hero-media .hero-scene-image.is-active { opacity: 1; }
.hero-media [data-hero-image="transport"] { object-position: center 58%; filter: saturate(.65) brightness(.85); }
.hero-scene-controls {
  position: absolute;
  right: var(--gutter);
  bottom: 136px;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: rgba(9, 33, 41, .66);
  border: 1px solid #ffffff45;
  backdrop-filter: blur(10px);
}
.hero-scene-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 119px;
  min-height: 48px;
  padding: 12px 20px;
  color: #e7eff0;
  font-size: 13px;
  font-weight: 750;
  transition: background .2s, color .2s;
}
.hero-scene-button::before {
  content: '';
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
}
.hero-scene-button:hover { background: #ffffff14; }
.hero-scene-button[aria-pressed="true"] { background: var(--orange); color: var(--ink); }
.hero-scene-button[aria-pressed="true"]::before { background: currentColor; }
.hero-scene-button:focus-visible { outline-color: white; outline-offset: 2px; }
.hero-branch { transition: color .2s, text-decoration-color .2s; }
.hero-branch:hover { color: #ff9a73; }

/* Quiet disclosures keep their native keyboard and no-script behavior. */
.service summary { transition: color .2s, background .2s; }
.service summary:hover { color: #ad411a; }
.service[open] summary { color: #ad411a; }
.service .expand-icon { border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.service[open] .expand-icon { background: var(--orange); border-color: var(--orange); }
.service[open] .service-body { animation: response-in .3s var(--ease-out); }
.service-tags span { background: #ffffff55; }

/* A continuous fleet console, with the full photograph always in view. */
.transport { padding-top: 85px; padding-bottom: 62px; }
.transport-heading { margin-bottom: 54px; }
.transport-fleet[data-fleet-gallery] {
  display: block;
  margin-top: 0;
  padding-bottom: 42px;
}
[data-fleet-gallery] [hidden], .image-dialog [hidden] { display: none !important; }
[data-fleet-gallery] .fleet-heading {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.3fr;
  align-items: center;
  gap: 24px;
  padding: 25px 0 29px;
  border-top: 1px solid #b9cac7;
}
[data-fleet-gallery] .fleet-heading > h3 { margin: 0; font-size: clamp(48px, 4.2vw, 68px); }
[data-fleet-gallery] .fleet-description { margin: 0; max-width: 28ch; justify-self: end; }
.fleet-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
  align-items: stretch;
  background: var(--stage);
  color: white;
}
.fleet-gallery, .fleet-panel { min-width: 0; }
.fleet-gallery { grid-column: 1; grid-row: 1; }
.fleet-panel { margin: 0; }
.fleet-zoom {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: #cad3d1;
  isolation: isolate;
  cursor: zoom-in;
}
.fleet-zoom > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}
.fleet-panel:not([hidden]) .fleet-zoom > img { animation: response-in .38s var(--ease-out); }
.fleet-zoom-hint {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 41px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 14px #102f361f;
  transition: background .2s, transform .25s var(--ease-out);
}
.fleet-zoom-hint::after {
  content: '+';
  font-size: 23px;
  font-weight: 400;
  line-height: .6;
}
.fleet-zoom:hover .fleet-zoom-hint { background: var(--orange); transform: translateY(-3px); }
.fleet-zoom:focus-visible { outline-offset: -5px; z-index: 1; }
.fleet-panel figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 20px;
  padding: 12px 24px 19px;
}
.fleet-caption { font-size: 14px; font-weight: 650; line-height: 1.55; }
.fleet-panel .photo-note { font-size: 10px; color: #d5e2e4; opacity: 1; white-space: nowrap; }
.fleet-panel .photo-note:hover { color: white; }
.fleet-panel .transport-credit {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: #b9cccf;
  font-size: 10px;
  line-height: 1.7;
}
.fleet-panel .transport-credit a:hover { color: white; }
.fleet-controls {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-left: 1px solid #ffffff21;
}
.fleet-tab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-content: center;
  gap: 12px 18px;
  flex: 1;
  min-height: 155px;
  padding: 28px clamp(24px, 3vw, 48px);
  text-align: left;
  color: white;
  border-bottom: 1px solid #ffffff2b;
  transition: background .25s, color .25s;
}
.fleet-tab:last-child { border-bottom: 0; }
.fleet-tab-label {
  font-family: var(--display);
  font-size: clamp(37px, 3.8vw, 61px);
  line-height: .98;
  letter-spacing: -.015em;
}
.fleet-tab-description { grid-column: 1; font-size: 12px; line-height: 1.7; color: #bed0d2; max-width: 27ch; }
.fleet-tab-arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 27px;
  line-height: 1;
  color: #a0b9bd;
  transition: transform .25s var(--ease-out), color .25s;
}
.fleet-tab:hover { background: #173d45; }
.fleet-tab:hover .fleet-tab-arrow { transform: translateX(4px); color: white; }
.fleet-tab[aria-selected="true"] { color: var(--ink); background: var(--orange); border-color: var(--orange); }
.fleet-tab[aria-selected="true"] .fleet-tab-description { color: #183b42; }
.fleet-tab[aria-selected="true"] .fleet-tab-arrow { color: var(--ink); transform: rotate(-45deg); }
.fleet-tab:focus-visible { outline-color: white; outline-offset: -5px; z-index: 1; }
.fleet-tab[aria-selected="true"]:focus-visible { outline-color: var(--ink); }
.fleet-image-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 32px;
  background: #d8e1df;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
  z-index: 2;
}
.fleet-image-status::before { content: ''; width: 28px; height: 3px; background: var(--orange); }
.fleet-zoom.is-unavailable { cursor: default; }
.fleet-zoom:is(.is-loading, .is-unavailable) .fleet-zoom-hint { visibility: hidden; }
.transport-brief { padding-top: 29px; }

/* The whole project row responds to the same detail action. */
.project-item[data-project-card] {
  position: relative;
  margin-inline: -24px;
  padding-inline: 24px;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.project-item[data-project-card]::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s var(--ease-out);
}
.project-item .project-name h3 { transition: transform .25s var(--ease-out); }
.project-item[data-project-card]:is(:hover, :focus-within) { background: #e4edeb; color: var(--ink); }
.project-item[data-project-card]:is(:hover, :focus-within)::before { transform: scaleY(1); }
.project-item[data-project-card]:is(:hover, :focus-within) .project-name h3 { transform: translateX(5px); }
.project-item[data-project-card]:is(:hover, :focus-within) :is(.project-type, .project-meta span + span, .project-action > p) { color: var(--muted); }
.project-item[data-project-card]:is(:hover, :focus-within) .project-button { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.project-button span { transition: transform .25s var(--ease-out); }
.project-item[data-project-card]:is(:hover, :focus-within) .project-button span { transform: rotate(90deg); }
.project-button:focus-visible { outline-color: var(--ink); }
.about-photo img[data-parallax] { transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.14); }
.about-zoom {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  cursor: zoom-in;
}
.about-zoom > span {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  transition: background .2s, transform .25s var(--ease-out);
}
.about-zoom > span::after { content: '+'; font-size: 23px; font-weight: 400; line-height: .6; }
.about-zoom:hover > span { background: var(--orange); transform: translateY(-3px); }
.about-zoom:focus-visible { outline-offset: -7px; }
.about-photo .photo-caption { pointer-events: none; }
.about-photo .photo-note { z-index: 2; }
.copy-button { width: 44px; height: 44px; }
.copy-button.is-copied { background: var(--ink); color: white; border-color: var(--ink); }
.copy-button.is-copied .copy-icon { width: 14px; height: 8px; border: 0; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
.copy-button.is-copied .copy-icon::before { display: none; }
.copy-status:not(:empty) { animation: response-in .2s ease-out; }

/* Image inspection keeps the complete vehicle and the close action visible. */
.dialog.image-dialog {
  width: min(1180px, calc(100% - 56px));
  max-width: none;
  max-height: 94svh;
  padding: 63px 28px 20px;
  background: var(--stage);
  color: white;
}
.image-dialog .dialog-close { top: 10px; right: 24px; min-height: 44px; }
.image-dialog h2 { font-size: clamp(29px, 3.3vw, 44px); margin-bottom: 19px; padding-right: 0; }
.image-lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100px;
  background: #cbd5d3;
}
.image-lightbox-stage > img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(68svh, calc(94svh - 210px));
  object-fit: contain;
}
.image-lightbox-stage:is(.is-loading, .is-unavailable) { min-height: 45svh; }
.dialog.image-dialog .image-lightbox-note { color: #c7d7d9; margin-top: 15px; font-size: 11px; line-height: 1.6; }
.dialog-close { transition: color .2s; }
.dialog-close:hover { color: #ac4018; }
.image-dialog .dialog-close:hover { color: var(--orange); }
.dialog[open] { animation: dialog-in .28s var(--ease-out); }

@keyframes response-in { from { opacity: .25; } to { opacity: 1; } }

@media (min-width: 1800px) {
  .hero-scene-controls { right: max(84px, calc((100vw - 1632px) / 2)); }
}
@media (max-width: 1050px) {
  .fleet-tab { min-height: 145px; padding: 24px; }
  .fleet-tab-label { font-size: 43px; }
  .fleet-tab-description { font-size: 11px; }
  .fleet-panel figcaption { padding-inline: 18px; column-gap: 10px; }
  .fleet-caption { font-size: 12px; }
  .fleet-gallery-layout { grid-template-columns: minmax(0, 3fr) minmax(250px, 2fr); }
}
@media (max-width: 820px) {
  .fleet-gallery { grid-column: 1; grid-row: 2; }
  .fleet-controls { grid-column: 1; grid-row: 1; }
  .fleet-gallery-layout { grid-template-columns: 1fr; }
  .fleet-gallery { grid-row: 2; }
  .fleet-controls { grid-row: 1; flex-direction: row; border-left: 0; border-bottom: 1px solid #ffffff2b; }
  .fleet-tab { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 76px; padding: 16px 12px; gap: 0; border-bottom: 0; border-right: 1px solid #ffffff2b; text-align: center; }
  .fleet-tab:last-child { border-right: 0; }
  .fleet-tab-label { font-size: clamp(23px, 4.4vw, 33px); line-height: 1.05; }
  .fleet-tab-description, .fleet-tab-arrow { display: none; }
  .fleet-zoom { aspect-ratio: 4 / 3; }
  .fleet-panel figcaption { padding: 12px 24px 20px; }
}
@media (max-width: 720px) {
  .navigation > a[aria-current="location"] { color: #aa4019; }
  .navigation > .nav-contact[aria-current="location"] { color: white; }
  .hero { display: flex; flex-direction: column; height: auto; min-height: calc(100svh - 76px); max-height: none; }
  .hero-content { width: 100%; margin: 0 auto; padding-bottom: 35px; }
  .hero h1 { margin-top: 43px; }
  .hero-scene-controls { position: relative; right: auto; bottom: auto; align-self: flex-start; margin: auto var(--gutter) 26px; }
  .hero-scene-button { min-width: 111px; min-height: 44px; padding: 10px 16px; font-size: 12px; }
  .hero-bottom { position: relative; left: auto; right: auto; margin: 0 var(--gutter); padding: 17px 0 18px; flex-wrap: wrap; justify-content: flex-start; gap: 5px 25px; }
  .hero-bottom > .photo-note { position: static; min-height: 36px; flex-basis: 100%; text-align: left; }
  .hero-media[data-parallax] { inset: -5% -3%; }
  .hero-media [data-hero-image="transport"] { object-position: 59% center; }
  .transport { padding-top: 54px; padding-bottom: 45px; }
  .transport-heading { margin-bottom: 35px; }
  .transport-fleet[data-fleet-gallery] { padding-bottom: 30px; }
  [data-fleet-gallery] .fleet-heading { grid-template-columns: 1fr 1fr; gap: 15px 20px; padding: 24px 0; }
  [data-fleet-gallery] .fleet-heading > h3 { font-size: 46px; text-align: right; }
  [data-fleet-gallery] .fleet-description { grid-column: 1 / -1; justify-self: start; max-width: none; font-size: 13px; }
  .fleet-panel figcaption { padding: 12px 18px 18px; gap: 2px 12px; }
  .fleet-caption { font-size: 12px; }
  .fleet-panel .transport-credit { font-size: 10px; }
  .fleet-zoom-hint { right: 12px; bottom: 12px; min-height: 38px; padding: 9px 11px; font-size: 10px; }
  .fleet-tab { min-height: 65px; padding: 13px 9px; }
  .about-zoom > span { top: 16px; right: 16px; padding: 10px 12px; font-size: 10px; }
  .project-item[data-project-card] { margin-inline: -16px; padding-inline: 16px; }
  .project-item[data-project-card]:is(:hover, :focus-within) .project-name h3 { transform: none; }
  .dialog.image-dialog { width: calc(100% - 24px); max-height: 94svh; padding: 60px 14px 18px; }
  .image-dialog .dialog-close { right: 15px; }
  .image-dialog h2 { font-size: 30px; margin-bottom: 16px; }
  .image-lightbox-stage > img { max-height: min(65svh, calc(94svh - 200px)); }
  .dialog.image-dialog .image-lightbox-note { font-size: 10px; margin-top: 12px; }
  .contact h2 { font-size: clamp(58px, 15vw, 86px); line-height: .98; }
  .contact-row { padding-right: 54px; }
  .contact-email { overflow-wrap: anywhere; }
  .project-action > p { max-width: 24ch; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 73px; }
  .hero-content { padding-top: 28px; padding-bottom: 30px; }
  .hero-description { font-size: 14px; }
  .hero-bottom { column-gap: 17px; }
  .hero-branch { font-size: 11px; }
  [data-fleet-gallery] .fleet-heading { gap: 14px; }
  [data-fleet-gallery] .fleet-heading > h3 { font-size: 42px; }
  .fleet-tab { min-height: 62px; padding: 12px 7px; }
  .fleet-tab-label { font-size: 23px; }
  .fleet-panel figcaption { grid-template-columns: 1fr; }
  .fleet-panel .photo-note { justify-self: start; min-height: 36px; }
  .fleet-panel .transport-credit { margin-top: 2px; }
  .fleet-image-status { padding: 20px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-media[data-parallax], .about-photo img[data-parallax] { transform: none !important; }
  .fleet-zoom:hover .fleet-zoom-hint, .about-zoom:hover > span, .project-item .project-name h3 { transform: none !important; }
}
@media print {
  .reading-progress, .hero-scene-controls, .fleet-controls, .fleet-zoom-hint, .about-zoom { display: none !important; }
  .fleet-gallery-layout { display: block; color: var(--ink); background: transparent; }
  .fleet-panel .transport-credit { color: var(--muted); }
  .hero-media[data-parallax], .about-photo img[data-parallax] { transform: none; }
  .fleet-zoom { max-height: 350px; }
}
