/* =========================================================
   Velcore Logistics — fog gray + wine
   ========================================================= */

:root {
  --bg: #f0f1f2;
  --bg-2: #e4e5e4;
  --surface: #ffffff;
  --fg: #1a1d21;
  --muted: #5a5e62;
  --accent: #7a2448;
  --accent-deep: #5a1835;
  --accent-soft: rgba(122, 36, 72, 0.12);
  --accent-mist: #c9a4b2;
  --line: rgba(26, 29, 33, 0.1);
  --danger: #c23b3b;
  --footer: #161418;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --font-display: "IBM Plex Serif", Georgia, serif;
  --header-h: 72px;
  --radius: 4px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* Buttons — sharp, not pills */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: rgba(20, 24, 30, 0.28);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--block {
  width: 100%;
}

/* Header */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(20, 24, 30, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.logo img {
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__link {
  padding: 0.5rem 0.8rem;
  color: rgba(20, 24, 30, 0.72);
  font-weight: 500;
  font-size: 0.94rem;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover {
  color: var(--fg);
  background: rgba(20, 24, 30, 0.05);
}

.nav__cta {
  margin-left: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.94rem;
}

.nav__cta:hover {
  background: var(--accent-deep);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--fg);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero — light copy + photo card */

.hero {
  position: relative;
  min-height: 100dvh;
  padding: var(--header-h) 0 0;
  background: var(--bg);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  grid-template-areas:
    "copy photo"
    "actions photo";
  align-items: stretch;
  min-height: calc(100dvh - var(--header-h));
}

.hero__content {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 36rem;
  padding: 3rem 2.25rem 0 max(1.25rem, calc((100vw - var(--container)) / 2));
}

.hero__actions {
  grid-area: actions;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.75rem 2.25rem 3rem max(1.25rem, calc((100vw - var(--container)) / 2));
}

.hero__card {
  grid-area: photo;
  display: grid;
  margin: 0.85rem 0;
  overflow: hidden;
  background: var(--surface);
  border-radius: 22px 0 0 22px;
  min-height: 0;
}

.hero .eyebrow {
  margin-bottom: 0.85rem;
}

.hero__title {
  margin: 0 0 1.1rem;
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.2vw, 4.3rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero__sub {
  margin: 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 45%;
}

/* Sections */

.section {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.section__head {
  max-width: 38rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section__lead {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
}

/* Services — editorial 3-col, ECE-style */

.services {
  background:
    linear-gradient(180deg, transparent 0%, var(--bg-2) 100%);
}

.services__head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.services__head .section__title {
  font-weight: 500;
  letter-spacing: -0.035em;
}

.services__head .section__lead {
  margin-top: 0.85rem;
  max-width: 52ch;
  font-size: 1.08rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
}

.service {
  padding: 2rem 1.7rem 2.15rem;
  border-right: 1px solid var(--line);
}

.service:last-child {
  border-right: 0;
}

.service__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.service__icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--accent);
  background: var(--accent-soft);
}

.service__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.service__num {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.14em;
}

.service h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.service p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}

#services .service__icon {
  background: none;
  width: auto;
  height: auto;
}

#services .service__icon svg {
  width: 2.4rem;
  height: 2.4rem;
}

#services .service--flip {
  padding: 0;
  min-height: 17.5rem;
  perspective: 1200px;
  cursor: pointer;
}

#services .service__flip {
  position: relative;
  height: 100%;
  min-height: 17.5rem;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
}

#services .service--flip.is-flipped .service__flip {
  transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
  #services .service--flip:hover .service__flip,
  #services .service--flip:focus-within .service__flip {
    transform: rotateY(180deg);
  }
}

#services .service__face {
  padding: 2rem 1.7rem 2.15rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#services .service__face--front {
  height: 100%;
}

#services .service__face--back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: rotateY(180deg);
  background: var(--accent);
}

#services .service__face--back .service__num,
#services .service__face--back h3 {
  color: #fff;
}

#services .service__face--back h3 {
  margin: 0.65rem 0 0.7rem;
}

#services .service__face--back p {
  color: rgba(255, 255, 255, 0.9);
}

/* Fleet */

.fleet.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.fleet .section__head {
  margin-bottom: 1.6rem;
}

.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  max-width: none;
}

.section__head--row .section__lead {
  max-width: 48ch;
}

.section__head--row .btn {
  flex-shrink: 0;
  margin-bottom: 0.15rem;
}

@media (max-width: 720px) {
  .section__head--row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.fleet .section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
}

.fleet .section__lead {
  font-size: 0.98rem;
}

.fleet__note {
  margin: 1.35rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.fleet__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  max-width: 100%;
}

.fleet-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.fleet-card:hover {
  border-color: rgba(122, 36, 72, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(20, 24, 30, 0.08);
}

.fleet-card__media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 1rem;
  border: 0;
  background: #eeebea;
  cursor: zoom-in;
  overflow: hidden;
}

.fleet-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}

.fleet-card:hover .fleet-card__media img {
  transform: scale(1.04);
}

.fleet-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.15rem 1.35rem;
}

.fleet-card__label {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.fleet-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.fleet-card__body > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.fleet-card__specs {
  margin: auto 0 0;
  padding: 0.95rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 0.42rem;
}

.fleet-card__specs li {
  position: relative;
  padding-left: 0.95rem;
  color: var(--fg);
  font-size: 0.78rem;
  line-height: 1.35;
}

.fleet-card__specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

/* Warehouses */

.warehouses {
  background: var(--bg-2);
}

.warehouses__head {
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.warehouses__stage {
  display: grid;
  grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.warehouses__media {
  margin: 0;
  min-height: 16.5rem;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

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

.warehouses__steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.warehouses__steps li {
  padding: 0;
  min-height: 9.75rem;
  perspective: 1000px;
  cursor: pointer;
  border-right: 1px solid var(--line);
}

.warehouses__steps li:nth-child(2n) {
  border-right: 0;
}

.warehouses__steps li:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.step__flip {
  position: relative;
  height: 100%;
  min-height: 9.75rem;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.step--flip.is-flipped .step__flip {
  transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .step--flip:hover .step__flip,
  .step--flip:focus-within .step__flip {
    transform: rotateY(180deg);
  }
}

.step__face {
  padding: 1.2rem 1.35rem 1.35rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.step__face--front {
  height: 100%;
}

.step__face--back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: rotateY(180deg);
  background: var(--accent);
}

.warehouses__steps span {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.14em;
}

.warehouses__steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.warehouses__steps p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.step__face--back span,
.step__face--back strong {
  color: #fff;
}

.step__face--back span {
  margin-bottom: 0.45rem;
}

.step__face--back p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.warehouses__ask {
  margin: 1.15rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.warehouses__ask a {
  margin-left: 0.2rem;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid rgba(122, 36, 72, 0.35);
}

.warehouses__ask a:hover {
  border-bottom-color: var(--accent);
}

/* Plan */

.plan {
  background: var(--surface);
}

.plan__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.plan__art {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.plan__art img {
  display: block;
  width: 100%;
  height: auto;
}

.plan__copy {
  max-width: 34rem;
}

.plan__points {
  margin: 1.35rem 0 1.65rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.plan__points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--muted);
}

.plan__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--accent);
  transform: rotate(45deg);
}

.plan__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Approach */

.approach {
  background: var(--footer);
  color: #ddd6d8;
}

.approach .eyebrow {
  color: var(--accent-mist);
}

.approach .section__title {
  color: #fff;
  max-width: 11ch;
  font-weight: 500;
}

.approach__layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem 5rem;
  align-items: center;
}

.approach__lead {
  margin: 1rem 0 1.75rem;
  max-width: 42ch;
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(236, 230, 232, 0.78);
}

.approach__path {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.approach__path li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.2rem;
  position: relative;
  padding-bottom: 1.9rem;
}

.approach__path li:last-child {
  padding-bottom: 0;
}

.approach__path li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 2.65rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(201, 164, 178, 0.55),
    rgba(201, 164, 178, 0.12)
  );
}

.approach__mark {
  position: relative;
  z-index: 1;
  width: 2.5rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
}

.approach__mark::before,
.approach__mark::after {
  content: "";
  position: absolute;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.approach__mark::before {
  inset: 0;
  background: var(--accent-mist);
}

.approach__mark::after {
  inset: 1.5px;
  background: var(--footer);
}

.approach__path li:first-child .approach__mark::after {
  background: var(--accent);
}

.approach__path li:first-child .approach__mark span {
  color: #fff;
}

.approach__mark span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-mist);
}

.approach__path strong {
  display: block;
  margin: 0.3rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.approach__path p {
  margin: 0;
  max-width: 38ch;
  color: rgba(236, 230, 232, 0.72);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* About */

.about {
  border-top: 1px solid var(--line);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.about__copy p:last-child {
  color: var(--muted);
  max-width: 48ch;
}

.registry {
  margin: 0;
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.registry div {
  display: grid;
  gap: 0.2rem;
}

.registry dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.registry dd {
  margin: 0;
  color: var(--fg);
}

.registry a:hover {
  color: var(--accent);
}

/* Contact */

.contact {
  background: var(--bg-2);
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.contact__direct {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.contact__direct li {
  display: grid;
  gap: 0.15rem;
}

.contact__direct span:first-child {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__direct a:hover {
  color: var(--accent);
}

.form {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.form__field {
  display: grid;
  gap: 0.4rem;
}

.form__field label {
  font-size: 0.88rem;
  font-weight: 600;
}

.form__field input,
.form__field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f6f4f4;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: rgba(92, 88, 90, 0.7);
}

.form__field input:focus,
.form__field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #fff;
}

.form__field.is-invalid input,
.form__field.is-invalid textarea {
  border-color: var(--danger);
}

.form__error {
  min-height: 1.1em;
  margin: 0;
  font-size: 0.82rem;
  color: var(--danger);
}

.form__success {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.97);
}

.form__success[hidden] {
  display: none !important;
}

.form__success h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.form__success p {
  margin: 0;
  color: var(--muted);
}

/* Footer — wine charcoal, not pitch black */

.footer {
  padding: 3.25rem 0 1.5rem;
  background: var(--footer);
  color: rgba(243, 245, 244, 0.72);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr 0.8fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo--footer {
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer__label {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 245, 244, 0.45);
}

.footer nav {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.footer a:hover {
  color: var(--accent-mist);
}

.footer__copy {
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(243, 245, 244, 0.42);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(22, 20, 22, 0.9);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.lightbox__figure {
  margin: 0;
  max-width: min(960px, 100%);
}

.lightbox__figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox__figure figcaption {
  margin-top: 0.75rem;
  text-align: center;
  color: rgba(243, 245, 244, 0.7);
}

/* Reveal */

.reveal,
.reveal-hero {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-in,
.reveal-hero.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Legal pages */

.legal-page {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page a {
  color: var(--accent);
}

.page-legal .footer {
  padding-top: 2rem;
}

.page-legal .footer__grid {
  grid-template-columns: 1fr auto;
}

/* Responsive */

@media (max-width: 960px) {
  .hero {
    min-height: 0;
    padding: calc(var(--header-h) + 2.25rem) 0 2.75rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "photo"
      "actions";
    min-height: 0;
    gap: 1.75rem;
  }

  .hero__content {
    max-width: none;
    padding: 0 1.25rem;
  }

  .hero__actions {
    order: 0;
    width: 100%;
    padding: 0 1.25rem;
    margin-top: -0.25rem;
  }

  .hero__card {
    margin: 0 1.25rem;
    border-radius: 22px;
    min-height: 16rem;
  }

  .hero__card img {
    min-height: 16rem;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .fleet__grid,
  .about__grid,
  .contact__grid,
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .service {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service:last-child {
    border-bottom: 0;
  }

  .fleet__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approach__layout,
  .about__grid,
  .contact__grid,
  .plan__layout {
    grid-template-columns: 1fr;
  }

  .plan__copy {
    max-width: none;
    order: -1;
  }

  .warehouses__stage {
    grid-template-columns: 1fr;
  }

  .warehouses__media {
    min-height: 0;
    height: 10.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 101;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    z-index: 99;
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(243, 244, 246, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link,
  .nav__cta {
    margin: 0;
    padding: 0.9rem 1rem;
    text-align: left;
  }

  .nav__cta {
    text-align: center;
  }

  .hero__title {
    max-width: none;
  }

  .approach .section__title {
    max-width: none;
  }

  .approach__layout {
    gap: 2rem;
  }

  .warehouses__steps {
    grid-template-columns: 1fr;
  }

  .warehouses__steps li,
  .warehouses__steps li:nth-child(2n) {
    border-right: 0;
  }

  .warehouses__steps li:not(:last-child),
  .warehouses__steps li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .fleet__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .page-legal .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero {
    padding-bottom: 3.25rem;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .plan__actions {
    width: 100%;
  }

  .plan__actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .container,
  .header__inner {
    width: min(100% - 1.5rem, var(--container));
  }

  .section {
    padding: 3.25rem 0;
  }

  .hero__content,
  .hero__actions {
    padding-inline: 0.75rem;
  }

  .hero__card {
    margin-inline: 0.75rem;
  }

  .hero__actions,
  .plan__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn,
  .plan__actions .btn {
    flex: none;
    width: 100%;
  }

  .form {
    padding: 1.15rem;
  }

  .service,
  #services .service__face {
    padding: 1.55rem 1.25rem 1.65rem;
  }

  #services .service--flip,
  #services .service__flip {
    min-height: 15.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .reveal-hero {
    opacity: 1;
    transform: none;
  }

  #services .service__flip {
    transform: none !important;
    min-height: 0;
  }

  #services .service--flip {
    min-height: 0;
    cursor: default;
  }

  #services .service__face--back {
    position: static;
    transform: none;
    background: var(--bg-2);
    padding-top: 0;
  }

  #services .service__face--back .service__num,
  #services .service__face--back h3 {
    color: var(--fg);
  }

  #services .service__face--back .service__num {
    display: none;
  }

  #services .service__face--back p {
    color: var(--muted);
  }

  .step__flip {
    transform: none !important;
    min-height: 0;
  }

  .step--flip {
    min-height: 0;
    cursor: default;
  }

  .step__face--back {
    position: static;
    transform: none;
    background: var(--bg-2);
    padding-top: 0;
  }

  .step__face--back span {
    display: none;
  }

  .step__face--back strong {
    color: var(--fg);
  }

  .step__face--back p {
    color: var(--muted);
  }
}
