/* ==========================================================================
   AceAssist Logistics — Components and page blocks
   ========================================================================== */

/* All icons are stroke drawings on currentColor. */
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* --- Placeholder chip ----------------------------------------------------
   Deliberately loud. Everything wearing this is waiting on real content
   and is listed in CONTENT-TODO.md. */
.ph {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-900);
  background: rgba(224, 104, 58, 0.1);
  border: 1px dashed var(--signal);
  padding: 0.1em 0.5em;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.on-ink .ph,
.utility .ph,
.mobilenav .ph {
  color: var(--paper);
  background: rgba(224, 104, 58, 0.16);
}

/* --- Buttons -------------------------------------------------------------
   Default:  signal fill, ink text ......... 5.64 : 1
   Hover:    ink fill, signal text+border .. 5.64 : 1
   The invert keeps contrast valid in both states. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background var(--t-base) var(--ease),
    color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.btn--lg {
  padding: 1.15rem 1.9rem;
  font-size: var(--fs-mono-lg);
}

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

.btn--signal {
  background: var(--signal);
  color: var(--ink-900);
}

.btn--signal:hover {
  background: var(--ink-900);
  color: var(--signal);
  border-color: var(--signal);
}

/* Outline on paper — for secondary routes that are not the primary CTA. */
.btn--outline {
  color: var(--ink-900);
  border-color: var(--line-strong);
}

.btn--outline:hover {
  border-color: var(--signal);
  background: rgba(224, 104, 58, 0.08);
}

.btn--ghost {
  color: var(--paper);
  border-color: var(--line-i-strong);
}

.btn--ghost:hover {
  border-color: var(--signal);
  background: rgba(224, 104, 58, 0.12);
}

.btn__icon {
  width: 16px;
  height: 16px;
  transition: transform var(--t-base) var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

/* --- Arrow link ---------------------------------------------------------- */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color var(--t-base) var(--ease);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-base) var(--ease);
}

.link-arrow:hover {
  border-bottom-color: var(--signal);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.on-ink .link-arrow {
  border-bottom-color: var(--line-i-strong);
}

/* ==========================================================================
   Utility bar + header
   ========================================================================== */

.utility {
  position: fixed;
  inset: 0 0 auto;
  z-index: 101;
  height: 40px;
  display: flex;
  align-items: center;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line-i);
  color: var(--steel-l);
  transition: transform var(--t-base) var(--ease);
}

.utility.is-hidden {
  transform: translateY(-100%);
}

.utility__inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.utility__item {
  font-size: var(--fs-mono);
  transition: color var(--t-fast) var(--ease);
}

a.utility__item:hover {
  color: var(--paper);
}

.utility__hours {
  margin-left: auto;
}

.header {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 100;
  transition: top var(--t-base) var(--ease),
    background var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--paper);
}

/* Scrolled: the header rises to the top as the utility bar slides away. */
.header.is-scrolled {
  top: 0;
}

/* Inner pages carry the ink background from the start, but keep the same
   utility-bar behaviour as the homepage. */
.header.is-scrolled,
.header--opaque {
  background: var(--ink-900);
  border-bottom-color: var(--line-i);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  height: var(--header-h);
}

/* --- Logo ---------------------------------------------------------------- */

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
}

.logo__mark {
  width: 28px;
  height: 28px;
  flex: none;
  stroke-width: 1.7;
}

.logo__bar {
  stroke: var(--signal);
}

.logo__name {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.logo__sub {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.26em;
  color: var(--steel-l);
  margin-top: 4px;
}

/* --- Primary nav --------------------------------------------------------- */

.nav {
  display: flex;
  gap: var(--s-8);
}

.nav__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  padding-block: 0.5rem;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}

.nav__link:hover::after,
.nav__link.is-current::after {
  transform: scaleX(1);
}

/* --- Burger -------------------------------------------------------------- */

.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-right: -10px;
}

.burger__box {
  display: grid;
  gap: 6px;
  width: 22px;
}

.burger__bar {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-base) var(--ease),
    opacity var(--t-fast) var(--ease);
}

.burger[aria-expanded="true"] .burger__bar:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__bar:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* --- Mobile nav ---------------------------------------------------------- */

.mobilenav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink-900);
  color: var(--paper);
  overflow-y: auto;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}

.mobilenav.is-open {
  opacity: 1;
}

.mobilenav__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: calc(var(--header-h) + var(--s-8));
  padding-bottom: var(--s-8);
}

.mobilenav__link {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-top: 1px solid var(--line-i);
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  font-weight: 600;
  letter-spacing: var(--ls-heading);
}

.mobilenav__idx {
  color: var(--signal);
  font-size: var(--fs-mono);
}

.mobilenav__foot {
  margin-top: auto;
  padding-top: var(--s-12);
}

.mobilenav__contact {
  margin-top: var(--s-6);
  color: var(--steel-l);
  font-size: var(--fs-mono);
  line-height: 2.1;
}

@media (max-width: 899px) {
  .utility {
    display: none;
  }
  .header {
    top: 0;
  }
  .nav,
  .header__cta {
    display: none;
  }
  .burger {
    display: flex;
  }
}

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

/* The hero fills exactly one screen (capped), so the mode strip — which
   carries Sea / Air / Road — is always above the fold. */
.hero {
  position: relative;
  min-height: min(100vh, 940px);
  min-height: min(100svh, 940px);
  display: flex;
  flex-direction: column;
  background: var(--ink-900);
  color: var(--paper);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  --hero-tint: var(--mode-sea);
}

.hero__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--t-fade) var(--ease);
}

.hero__layer.is-active {
  opacity: 1;
}

.hero__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

/* Mode wash — sits between the photography and the scrim, and unifies the
   grade of all three images. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-tint);
  opacity: 0.42;
  transition: background var(--t-fade) var(--ease);
}

/* Directional scrim: dark at top (header legibility), dark at left (headline),
   dark at the bottom (mode strip). */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      100deg,
      rgba(14, 17, 22, 0.92) 0%,
      rgba(14, 17, 22, 0.78) 28%,
      rgba(14, 17, 22, 0.26) 58%,
      rgba(14, 17, 22, 0.42) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(14, 17, 22, 0.78) 0%,
      rgba(14, 17, 22, 0) 22%,
      rgba(14, 17, 22, 0) 56%,
      rgba(14, 17, 22, 0.82) 100%
    );
}

.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 40px + var(--s-12));
  padding-bottom: var(--s-16);
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  color: var(--paper);
  margin-bottom: var(--s-8);
}

.hero__kicker-rule {
  width: clamp(28px, 6vw, 64px);
  height: 1px;
  background: var(--signal);
}

.hero__title {
  max-width: 16ch;
}

.hero__lead {
  margin-top: var(--s-8);
  max-width: 46ch;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: rgba(245, 243, 239, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-12);
}

/* --- Mode strip ---------------------------------------------------------- */

.modestrip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-i-strong);
  background: rgba(14, 17, 22, 0.52);
}

.modestrip__item {
  position: relative;
}

.modestrip__item + .modestrip__item {
  border-left: 1px solid var(--line-i-strong);
}

/* The signal rule draws across the active cell. */
.modestrip__item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease);
}

.modestrip__item.is-active::before {
  transform: scaleX(1);
}

.modestrip a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.35rem var(--s-4);
  padding: var(--s-6) clamp(1rem, 2.2vw, 1.75rem);
  color: rgba(245, 243, 239, 0.62);
  transition: color var(--t-base) var(--ease),
    background var(--t-base) var(--ease);
}

.modestrip__item.is-active a,
.modestrip a:hover {
  color: var(--paper);
  background: rgba(14, 17, 22, 0.35);
}

.modestrip__idx {
  grid-column: 1;
  color: var(--signal);
}

.modestrip__name {
  grid-column: 1;
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: var(--ls-heading);
  line-height: 1.1;
}

.modestrip__desc {
  grid-column: 1;
  font-size: var(--fs-sm);
  color: inherit;
  opacity: 0.8;
}

.modestrip__glyph {
  grid-column: 2;
  grid-row: 1 / 4;
  width: 30px;
  height: 30px;
  opacity: 0.55;
  transition: opacity var(--t-base) var(--ease);
}

.modestrip__item.is-active .modestrip__glyph {
  opacity: 1;
  stroke: var(--signal);
}

@media (max-width: 899px) {
  .hero {
    min-height: auto;
  }

  /* Text spans the full width on mobile, so the directional scrim stops
     helping. Swap it for an even vertical one. */
  .hero__scrim {
    background: linear-gradient(
      to bottom,
      rgba(14, 17, 22, 0.86) 0%,
      rgba(14, 17, 22, 0.66) 28%,
      rgba(14, 17, 22, 0.6) 60%,
      rgba(14, 17, 22, 0.9) 100%
    );
  }

  .hero__media::after {
    opacity: 0.5;
  }
  .hero__inner {
    padding-top: calc(var(--header-h) + var(--s-16));
    padding-bottom: var(--s-16);
  }
  .hero__layer img {
    object-position: 70% 50%;
  }
  .modestrip {
    grid-template-columns: 1fr;
  }
  .modestrip__item + .modestrip__item {
    border-left: 0;
    border-top: 1px solid var(--line-i);
  }
  .modestrip__item::before {
    top: 0;
  }
  .modestrip a {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding-block: var(--s-4);
  }
  .modestrip__idx {
    grid-column: 1;
    grid-row: 1;
  }
  .modestrip__name {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.125rem;
  }
  .modestrip__desc {
    display: none;
  }
  .modestrip__glyph {
    grid-column: 3;
    grid-row: 1;
    width: 22px;
    height: 22px;
  }
}

/* Short laptop viewports: tighten the hero's vertical rhythm and cap the
   display size, so the mode strip still clears the fold at ~660px tall. */
@media (min-width: 900px) and (max-height: 820px) {
  :root {
    --fs-display: clamp(2.5rem, 1.4rem + 4.2vw, 4.75rem);
  }

  .hero__inner {
    padding-top: calc(var(--header-h) + 40px + var(--s-4));
    padding-bottom: var(--s-8);
  }

  .hero__kicker {
    margin-bottom: var(--s-6);
  }

  .hero__lead {
    margin-top: var(--s-6);
  }

  .hero__actions {
    margin-top: var(--s-8);
  }

  .modestrip a {
    padding-block: var(--s-4);
  }

  .modestrip__desc {
    display: none;
  }
}

/* Very short viewports (a ~740px window): cap the display size further. */
@media (min-width: 900px) and (max-height: 700px) {
  :root {
    --fs-display: clamp(2.25rem, 1.2rem + 3.4vw, 3.75rem);
  }
}

/* Stacked buttons match width — ragged edges read as unconsidered. */
@media (max-width: 599px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   About
   ========================================================================== */

.about__head {
  grid-column: 1 / span 4;
}

.about__body {
  grid-column: 5 / span 5;
}

.about__figure {
  grid-column: 10 / span 3;
  margin: 0;
}

.about__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05);
}

.about__body .t-body {
  margin-top: var(--s-6);
}

/* --- Definition list (hairline rows) ------------------------------------- */

.deflist {
  margin: var(--s-12) 0 0;
}

.deflist__row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-top: 1px solid var(--line);
}

.deflist__row:last-child {
  border-bottom: 1px solid var(--line);
}

.deflist dt {
  color: var(--signal-text);
}

.deflist dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--steel);
}

@media (max-width: 1099px) {
  .about__head {
    grid-column: 1 / span 12;
  }
  .about__body {
    grid-column: 1 / span 7;
  }
  .about__figure {
    grid-column: 9 / span 4;
  }
}

@media (max-width: 899px) {
  .about__head,
  .about__body,
  .about__figure {
    grid-column: 1 / -1;
  }
  .about__figure img {
    aspect-ratio: 4 / 3;
  }
  .deflist__row {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }
}

/* ==========================================================================
   Freight solutions — horizontal bands
   ========================================================================== */

.solutions__title {
  max-width: 18ch;
}

.bands {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.band {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.band:last-child {
  border-bottom: 1px solid var(--line);
}

.band__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.band--flip .band__media {
  order: 2;
}

.band__media {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
}

.band__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}

.band:hover .band__media img {
  transform: scale(1.03);
}

.band__wash {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  pointer-events: none;
}

.band--sea .band__wash {
  background: var(--mode-sea);
}
.band--air .band__wash {
  background: var(--mode-air);
}
.band--road .band__wash {
  background: var(--mode-road);
}

.band__idx {
  display: block;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 400;
  color: var(--signal-text);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: var(--s-4);
}

.band__name {
  font-size: var(--fs-h2);
}

.band__prop {
  margin-top: var(--s-3);
  font-size: var(--fs-lead);
  color: var(--ink-900);
  max-width: 28ch;
}

.band__text {
  margin-top: var(--s-4);
  max-width: 46ch;
}

/* --- Capability list ----------------------------------------------------- */

.caplist {
  margin: var(--s-8) 0;
  max-width: 34rem;
}

.caplist li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
}

.caplist li:last-child {
  border-bottom: 1px solid var(--line);
}

.caplist li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 1px;
  margin-top: 0.75em;
  background: var(--signal);
}

.on-ink .caplist li {
  border-top-color: var(--line-i);
  color: var(--steel-l);
}

.on-ink .caplist li:last-child {
  border-bottom-color: var(--line-i);
}

@media (max-width: 899px) {
  .band__inner {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
  .band--flip .band__media {
    order: 0;
  }
  .band__media img {
    aspect-ratio: 3 / 2;
  }
}

/* ==========================================================================
   THE MOVE — routing diagram
   Progress is a single custom property --p (0 → 1) written by site.js.
   Nothing here scales, slides or bounces: stages resolve tonally.
   ========================================================================== */

.move__title {
  max-width: 16ch;
}

.move__lead {
  margin-top: var(--s-6);
}

.rail {
  --rail-x: 4px;
  --p: 0;
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
}

/* --rail-top / --rail-h are measured from the real node positions by site.js,
   so the marker sits exactly on a node whenever a stage resolves. */
.rail__track {
  position: absolute;
  left: var(--rail-x);
  top: var(--rail-top, 1rem);
  height: var(--rail-h, calc(100% - 2rem));
  width: 1px;
}

.rail__line {
  position: absolute;
  inset: 0;
  background: var(--line-i);
}

.rail__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: calc(var(--p) * 100%);
  background: var(--signal);
}

.rail__marker {
  position: absolute;
  left: 50%;
  top: calc(var(--p) * 100%);
  width: 7px;
  height: 7px;
  margin-left: -3px;
  margin-top: -3px;
  background: var(--signal);
}

.rail__stages {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

.stage {
  position: relative;
  padding-left: calc(var(--rail-x) + 3rem);
}

.stage__node {
  position: absolute;
  left: calc(var(--rail-x) - 5px);
  top: 0.7rem;
  width: 11px;
  height: 11px;
  border: 1px solid var(--line-i-strong);
  border-radius: 50%;
  background: var(--ink-900);
  transition: border-color var(--t-slow) var(--ease),
    background var(--t-slow) var(--ease);
}

.stage__stub {
  position: absolute;
  left: calc(var(--rail-x) + 8px);
  top: 1.2rem;
  width: 2rem;
  height: 1px;
  background: var(--line-i);
  transition: background var(--t-slow) var(--ease);
}

.stage__idx {
  display: block;
  color: var(--signal);
  margin-bottom: var(--s-2);
}

.stage__name {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  color: var(--steel-l);
  transition: color var(--t-slow) var(--ease);
}

.stage__text {
  font-size: var(--fs-body);
  color: var(--steel-l);
  max-width: 42ch;
}

.stage.is-reached .stage__node {
  border-color: var(--signal);
  background: var(--signal);
}

.stage.is-reached .stage__stub {
  background: var(--signal);
}

.stage.is-reached .stage__name {
  color: var(--paper);
}

.stage__modes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
}

.stage__modes li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--steel-l);
  font-size: var(--fs-mono);
  font-family: var(--font-mono);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
}

.stage.is-reached .stage__modes li {
  color: var(--paper);
}

.stage__modes svg {
  width: 24px;
  height: 24px;
}

.stage.is-reached .stage__modes svg {
  stroke: var(--signal);
}

/* The payoff. Stated, not celebrated. */
.stage--end .stage__name {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  letter-spacing: var(--ls-display);
}

.stage--end.is-reached .stage__name {
  color: var(--signal);
}

/* Mobile: index above the name, everything in one column. */
.stage__text,
.stage__modes {
  margin-top: var(--s-3);
}

@media (min-width: 900px) {
  .rail {
    --rail-x: 132px;
  }

  .stage {
    padding-left: calc(var(--rail-x) + 3.5rem);
  }

  /* Index sits outside the rail, right-aligned against it. */
  .stage__idx {
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: calc(var(--rail-x) - 2rem);
    text-align: right;
    margin: 0;
  }

  /* Name and description share the row, so the diagram uses the full width. */
  .stage__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: var(--s-8);
    align-items: start;
  }

  .stage__name {
    grid-column: 1;
    grid-row: 1;
  }

  .stage__text {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0.5rem;
  }

  .stage__modes {
    grid-column: 2;
    grid-row: 2;
    margin-top: var(--s-6);
  }
}

/* ==========================================================================
   Why AceAssist Logistics
   ========================================================================== */

.why__title {
  max-width: 16ch;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.why__item {
  border-top: 1px solid var(--line);
  padding: var(--s-8) var(--s-8) var(--s-8) 0;
}

.why__item:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-left: var(--s-8);
  padding-right: 0;
}

.why__glyph {
  width: 38px;
  height: 38px;
  stroke-width: 1.35;
  color: var(--signal-text);
  margin-bottom: var(--s-6);
}

.why__label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-lg);
  font-weight: 500;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}

.why__item .t-body {
  font-size: var(--fs-sm);
  max-width: 40ch;
}

@media (max-width: 899px) {
  .why__grid {
    grid-template-columns: 1fr;
  }
  .why__item,
  .why__item:nth-child(even) {
    border-left: 0;
    padding: var(--s-6) 0;
  }
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */

.cta {
  padding-block: clamp(5rem, 11vw, 11rem);
}

.cta__inner {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}

.cta__rule {
  display: block;
  width: clamp(80px, 14vw, 180px);
  height: 3px;
  background: var(--signal);
  margin-bottom: var(--s-8);
}

.cta__title {
  max-width: 12ch;
}

.cta__lead {
  margin-top: var(--s-6);
  margin-bottom: var(--s-12);
  max-width: 40ch;
}

.contactlist__row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-top: 1px solid var(--line-i);
}

.contactlist__row:last-child {
  border-bottom: 1px solid var(--line-i);
}

.contactlist dt {
  color: var(--signal);
}

.contactlist dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--steel-l);
}

@media (max-width: 899px) {
  .cta__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .contactlist__row {
    grid-template-columns: 6rem 1fr;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: var(--s-8);
  border-top: 1px solid var(--line-i);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--s-8);
}

.footer__tagline {
  margin-top: var(--s-6);
  font-size: var(--fs-sm);
  color: var(--steel-l);
  max-width: 26ch;
}

.footer__h {
  font-size: var(--fs-mono);
  font-weight: 500;
  color: var(--signal);
  margin-bottom: var(--s-4);
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}

.footer__col a {
  font-size: var(--fs-sm);
  color: var(--steel-l);
  transition: color var(--t-fast) var(--ease);
}

.footer__col a:hover {
  color: var(--paper);
}

.footer__address {
  font-size: var(--fs-mono);
  line-height: 2.2;
  color: var(--steel-l);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-i);
  color: var(--steel-l);
  font-size: var(--fs-mono);
}

@media (max-width: 899px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-12) var(--s-8);
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Inner pages: page hero, service sections, slots
   ========================================================================== */

.page-hero {
  background: var(--ink-900);
  color: var(--paper);
  padding-top: calc(var(--header-h) + 40px + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line-i);
}

.page-hero__crumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--steel-l);
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.page-hero__crumb a {
  transition: color var(--t-fast) var(--ease);
}

.page-hero__crumb a:hover {
  color: var(--paper);
}

.page-hero__title {
  font-size: var(--fs-h1);
  max-width: 17ch;
}

.page-hero__lead {
  margin-top: var(--s-6);
  color: rgba(245, 243, 239, 0.78);
}

/* --- Jump links ---------------------------------------------------------- */

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line-i-strong);
  color: var(--steel-l);
  transition: color var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
}

.jump a:hover {
  color: var(--paper);
  border-color: var(--signal);
}

.jump svg {
  width: 20px;
  height: 20px;
}

.jump a:hover svg {
  stroke: var(--signal);
}

/* --- Service section ----------------------------------------------------- */

.svc + .svc,
.svc + .section {
  border-top: 1px solid var(--line);
}

.svc__media {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  display: flex;
  align-items: flex-end;
}

.svc__media picture {
  position: absolute;
  inset: 0;
}

.svc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc--sea img {
  object-position: 55% 50%;
}
.svc--air img {
  object-position: 68% 50%;
}
.svc--road img {
  object-position: 45% 55%;
}

.svc__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 17, 22, 0.92) 0%,
    rgba(14, 17, 22, 0.5) 45%,
    rgba(14, 17, 22, 0.3) 100%
  );
}

.svc--sea .svc__media {
  background: var(--mode-sea);
}
.svc--air .svc__media {
  background: var(--mode-air);
}
.svc--road .svc__media {
  background: var(--mode-road);
}

.svc__overlay {
  position: relative;
  color: var(--paper);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  min-height: clamp(260px, 34vw, 420px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.svc__idx {
  color: var(--signal);
  margin-bottom: var(--s-4);
}

.svc__title {
  font-size: var(--fs-h1);
}

.svc__intro {
  grid-column: 1 / span 6;
}

.svc__detail {
  grid-column: 8 / span 5;
}

.svc__intro .t-body {
  margin-top: var(--s-6);
}

.svc__h {
  font-size: var(--fs-mono);
  font-weight: 500;
  color: var(--signal-text);
  margin-bottom: var(--s-4);
}

.svc__detail .deflist {
  margin-top: 0;
}

.svc__detail .caplist {
  margin-top: 0;
  margin-bottom: var(--s-12);
}

.svc__detail .deflist__row {
  grid-template-columns: 7rem 1fr;
}

@media (max-width: 899px) {
  .svc__intro,
  .svc__detail {
    grid-column: 1 / -1;
  }

  .svc__detail {
    margin-top: var(--s-8);
  }
}

/* --- Placeholder slots ---------------------------------------------------
   Structure ready for services Ace confirms. Deliberately empty until then. */

.slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.slot {
  border-top: 1px solid var(--line);
  padding: var(--s-6) var(--s-6) var(--s-8) 0;
}

.slot:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--line);
  padding-left: var(--s-6);
}

.slot__n {
  display: block;
  color: var(--signal-text);
  margin-bottom: var(--s-6);
}

.slot__name {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  margin-bottom: var(--s-3);
}

.slot__text {
  font-size: var(--fs-sm);
  color: var(--steel);
}

@media (max-width: 1099px) {
  .slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .slot:not(:nth-child(4n + 1)) {
    border-left: 0;
    padding-left: 0;
  }
  .slot:not(:nth-child(2n + 1)) {
    border-left: 1px solid var(--line);
    padding-left: var(--s-6);
  }
}

@media (max-width: 639px) {
  .slots {
    grid-template-columns: 1fr;
  }
  .slot,
  .slot:not(:nth-child(2n + 1)) {
    border-left: 0;
    padding: var(--s-6) 0;
  }
}

.additional__title {
  max-width: 22ch;
}

.additional__lead {
  margin-top: var(--s-6);
}

/* --- Process steps ------------------------------------------------------- */

.steps__title {
  max-width: 20ch;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.step {
  border-top: 1px solid var(--line);
  padding: var(--s-6) var(--s-6) var(--s-8) 0;
}

.step + .step {
  border-left: 1px solid var(--line);
  padding-left: var(--s-6);
}

.step__n {
  display: block;
  color: var(--signal-text);
  margin-bottom: var(--s-6);
}

.step__name {
  font-size: var(--fs-h3);
  margin-bottom: var(--s-3);
}

.step .t-body {
  font-size: var(--fs-sm);
}

@media (max-width: 1099px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .step:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 639px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step,
  .step + .step {
    border-left: 0;
    padding: var(--s-6) 0;
  }
}


/* ==========================================================================
   Contact
   ========================================================================== */

.contact__form {
  grid-column: 1 / span 7;
}

.contact__aside {
  grid-column: 9 / span 4;
}

.contact__h {
  font-size: var(--fs-h2);
}

.contact__details {
  margin-top: var(--s-8);
}

.contact__details .deflist__row {
  grid-template-columns: 1fr;
  gap: var(--s-2);
}

.contact__details dd a {
  transition: color var(--t-fast) var(--ease);
}

/* --- Form ---------------------------------------------------------------- */

.form {
  margin-top: var(--s-12);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6);
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--s-6);
}

.field__label {
  color: var(--steel);
  margin-bottom: var(--s-3);
}

.field__label em {
  font-style: normal;
  color: var(--signal-text);
  margin-left: 0.35em;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: var(--fs-body);
  color: var(--ink-900);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.75rem 0;
  width: 100%;
  transition: border-color var(--t-base) var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.6;
}

.field select {
  /* Native arrow removed, replaced with a drawn chevron. */
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-900) 50%),
    linear-gradient(135deg, var(--ink-900) 50%, transparent 50%);
  background-position: calc(100% - 10px) 1.35rem, calc(100% - 5px) 1.35rem;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
  cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--steel);
  opacity: 0.65;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--signal);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.field__error {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--signal-text);
  margin-top: var(--s-2);
  min-height: 1rem;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-bottom-color: var(--signal-text);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-6);
  margin-top: var(--s-8);
  padding-top: var(--s-8);
  border-top: 1px solid var(--line);
}

.form-status {
  font-size: var(--fs-sm);
  color: var(--steel);
  max-width: 40ch;
}

.form-status.is-error {
  color: var(--signal-text);
}

.form-status.is-notice {
  color: var(--ink-900);
  background: rgba(224, 104, 58, 0.1);
  border: 1px dashed var(--signal);
  padding: var(--s-3) var(--s-4);
}

.form-status.is-success {
  color: var(--ink-900);
  border-left: 2px solid var(--signal);
  padding-left: var(--s-4);
  font-weight: 500;
}

/* Spam trap: off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alt {
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}

.form-alt__label {
  color: var(--steel);
  margin-bottom: var(--s-4);
}

.form-alt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.form-note {
  margin-top: var(--s-6);
  font-size: var(--fs-sm);
  color: var(--steel);
  max-width: 54ch;
}

.form-note a,
.why__item .t-body a {
  color: var(--ink-900);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color var(--t-fast) var(--ease);
}

.form-note a:hover,
.why__item .t-body a:hover {
  border-bottom-color: var(--signal);
}

#enquiry-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* --- Map slot ------------------------------------------------------------ */

.contact__map {
  display: inline-flex;
  margin-top: var(--s-4);
}

@media (max-width: 1099px) {
  .contact__form {
    grid-column: 1 / span 7;
  }
  .contact__aside {
    grid-column: 8 / span 5;
  }
}

@media (max-width: 899px) {
  .contact__form,
  .contact__aside {
    grid-column: 1 / -1;
  }
  .contact__aside {
    margin-top: var(--s-16);
  }
}

@media (max-width: 599px) {
  .form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form__foot .btn {
    width: 100%;
  }
}
