/* =========================================================================
   Jampac · company.html (Services, Team, Drivers, Contact)
   Built on Golden Hour's style.css: same paper, ink, green, Mona Sans,
   header tabs, buttons, sheet and dock. Pictures stay in panels, never
   full bleed (the sources are 1672 px wide).
   ========================================================================= */

.company { padding-top: calc(env(safe-area-inset-top, 0px) + 96px); }
.company::before { /* paper fade under the floating header, so text never runs behind the tabs */
  content: ""; position: fixed; z-index: 30; left: 0; right: 0; top: 0; height: calc(env(safe-area-inset-top, 0px) + 84px);
  background: linear-gradient(to bottom, var(--white) 55%, rgba(243, 244, 240, 0)); pointer-events: none;
}
html:not([data-bg="paper"]) .company::before { background: linear-gradient(to bottom, rgba(247, 247, 248, .92) 45%, rgba(247, 247, 248, 0)); }
.company .head-right .nav a[aria-current="true"]::after { transform: scaleX(1); }

/* ---------------- type ---------------- */
.c-h1 {
  font-size: clamp(48px, 6.4vw, 112px);
  font-weight: 830; line-height: .9; letter-spacing: -.055em;
  text-wrap: balance; max-width: 11ch; margin: 18px 0 26px;
}
.c-h2 {
  font-size: clamp(40px, 5vw, 90px);
  font-weight: 810; line-height: .93; letter-spacing: -.047em;
  text-wrap: balance; max-width: 13ch; margin: 14px 0 22px;
}
.c-lede { font-size: clamp(17px, 1.45vw, 22px); line-height: 1.4; color: var(--ink-2); max-width: 38ch; font-weight: 470; }
.c-note { font-size: 14px; color: var(--ink-2); max-width: 52ch; margin-top: 18px; }
.c-link { color: var(--sign); font-weight: 620; text-decoration: none; }
.c-link:hover { text-decoration: underline; }

/* ---------------- pictures: panels with the trailer-tab corner ---------------- */
.c-pic { margin: 0; overflow: hidden; border-radius: var(--notch); background: var(--white-2); position: relative; }
.c-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------------- intro ---------------- */
.c-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 72px);
  align-items: center; padding: clamp(24px, 4vh, 56px) var(--gxr) clamp(56px, 10vh, 120px) var(--gx);
  min-height: calc(100svh - 96px);
}
.c-intro-pic { aspect-ratio: 4 / 3.4; max-height: 74svh; }
.c-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.c-jump .chip { text-decoration: none; height: 34px; padding: 0 15px; }
.c-jump .chip:hover { background: var(--ink); color: var(--white); }

/* ---------------- sections ---------------- */
.c-sec { padding: clamp(72px, 13vh, 150px) var(--gxr) 0 var(--gx); scroll-margin-top: 80px; }
.c-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.c-split-r { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.c-side { align-self: stretch; }
.c-sticky { position: sticky; top: 104px; aspect-ratio: 4 / 4.6; max-height: calc(100svh - 140px); }
.c-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

/* services list */
.c-services { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: s; }
.c-services li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; row-gap: 6px;
  padding: 22px 0 24px; border-top: 1px solid var(--rule);
}
.c-services li:last-child { border-bottom: 1px solid var(--rule); }
.c-num { grid-row: span 2; font-size: 14px; font-weight: 700; font-stretch: 75%; letter-spacing: .02em; color: var(--sign); padding-top: 9px; }
.c-services h3 { font-size: clamp(26px, 2.5vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.c-services p { color: var(--ink-2); max-width: 48ch; font-size: 16px; }

/* approach */
.c-approach-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.c-approach-list li { padding: 20px 22px 6px 0; }
.c-approach-list li + li { padding-left: 22px; border-left: 1px solid var(--rule); }
.c-approach-list h3 { font-size: 19px; font-weight: 760; letter-spacing: -.02em; margin-bottom: 8px; }
.c-approach-list p { font-size: 14.5px; color: var(--ink-2); }

/* team */
.c-team-head { max-width: 900px; }
.c-people { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); }
.c-person {
  background: #fff; border-radius: var(--notch); overflow: hidden;
  box-shadow: 0 0 0 1px var(--rule), 0 22px 40px -30px rgba(12, 14, 13, .45);
  display: flex; flex-direction: column;
}
.c-mono {
  aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(12, 14, 13, .07) calc(25% - 1px) 25%),
    linear-gradient(180deg, var(--white) 0%, var(--white-2) 100%);
}
.c-mono::after { /* the reefer's red-and-white conspicuity tape */
  content: ""; position: absolute; left: 0; right: 0; bottom: 14%; height: 7px;
  background: repeating-linear-gradient(90deg, #C8242B 0 22px, #fff 22px 34px); opacity: .85;
}
.c-mono span { font-size: clamp(64px, 6.4vw, 108px); font-weight: 860; font-stretch: 80%; letter-spacing: -.06em; color: var(--green); line-height: 1; transform: translateY(-6%); }
.c-person-text { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; flex: 1; }
.c-person h3 { font-size: clamp(22px, 1.8vw, 28px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.c-role { color: var(--sign); }
.c-person p:not(.c-role) { color: var(--ink-2); font-size: 15px; }
.c-person .c-link { margin-top: 4px; font-size: 14.5px; overflow-wrap: anywhere; }

/* drivers */
.c-ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.c-ticks li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--rule); font-weight: 560; }
.c-ticks li::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg);
}
.c-quote { margin: 34px 0 0; padding: 0 0 0 22px; border-left: 3px solid var(--green); }
.c-quote p { font-size: clamp(26px, 2.4vw, 38px); font-weight: 760; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 10px; }

/* contact */
.c-cards { margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.c-card { padding: 22px 22px 26px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; align-content: start; }
.c-card:not(:nth-child(4n + 1)) { padding-left: 22px; border-left: 1px solid var(--rule); }
.c-card dd { margin: 0; }
.c-card a { text-decoration: none; font-weight: 620; }
.c-card a:hover { text-decoration: underline; }
.c-card dt { margin-bottom: 4px; }
.c-big { font-size: clamp(28px, 2.6vw, 40px); font-weight: 800 !important; letter-spacing: -.035em; }
.c-mid { font-size: clamp(17px, 1.35vw, 21px); overflow-wrap: anywhere; }
.c-card-lead { grid-column: span 1; }
.c-card .chip { margin-top: 6px; }

/* footer */
.c-foot { margin-top: clamp(90px, 15vh, 170px); background: var(--night); color: #fff; padding: clamp(56px, 9vh, 96px) var(--gxr) calc(env(safe-area-inset-bottom, 0px) + 26px) var(--gx); }
.c-foot-line { font-size: clamp(42px, 6.4vw, 116px); font-weight: 830; letter-spacing: -.055em; line-height: .88; margin-bottom: 34px; }
.c-foot-items { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 32px; border-top: 1px solid rgba(255, 255, 255, .32); font-size: 15px; font-weight: 520; }
.c-foot-items li { display: flex; gap: 10px; align-items: baseline; }
.c-foot-items a { text-decoration: none; }
.c-foot-items a:hover { text-decoration: underline; }
.c-foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .8); }

/* ---------------- motion: words sharpen, panels rise ---------------- */
.c-motion [data-reveal] { opacity: 0; filter: blur(12px); transform: translateY(22px); transition: opacity .9s var(--ease-out), filter 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.c-motion [data-reveal].in { opacity: 1; filter: none; transform: none; }
.c-motion [data-words] .w { opacity: 0; filter: blur(14px); transform: translateY(.18em); transition: opacity .8s var(--ease-out), filter 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.c-motion [data-words].in .w { opacity: 1; filter: none; transform: none; }
/* the clip lives on the picture, not the panel: a fully clipped target never reports as on screen */
.c-motion [data-pic] .c-loopbox { clip-path: inset(100% 0 0 0); transform: scale(1.14); transition: clip-path 1.3s var(--ease-io), transform 1.8s var(--ease-out); }
.c-motion [data-pic].in .c-loopbox { clip-path: inset(0 0 0 0); transform: scale(1); }
.c-motion [data-pic] img { clip-path: inset(100% 0 0 0); transform: scale(1.14); transition: clip-path 1.3s var(--ease-io), transform 1.8s var(--ease-out); }
.c-motion [data-pic].in img { clip-path: inset(0 0 0 0); transform: scale(1); }

/* ---------------- v3: intro film loop ---------------- */
.c-intro-pic { position: relative; }
.c-intro-pic img, .c-loopbox, .c-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* one short reel (drone pass, headlight, wheel, trailer roof); fades in over the poster once it plays */
.c-loop { opacity: 0; z-index: 1; transition: opacity .8s var(--ease-out); }
.c-loop.playing { opacity: 1; }
.c-pic-tag {
  position: absolute; z-index: 2; left: 18px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px;
  pointer-events: none;
}
.c-pic-tag span { background: rgba(243, 244, 240, .9); color: var(--ink); border-radius: 999px; padding: 7px 12px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.c-still .c-loopbox { display: none; }

/* ---------------- v3: services picture changes with the service on screen ---------------- */
.c-swap img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0); transform: scale(1.1); z-index: 1;
  transition: clip-path 1.05s var(--ease-out), transform 1.6s var(--ease-out);
}
.c-swap img.was { clip-path: inset(0 0 0 0); transform: none; z-index: 1; transition: none; }
.c-swap img.on { clip-path: inset(0 0 0 0); transform: none; z-index: 2; }
.c-motion .c-swap:not(.in) img.on { clip-path: inset(100% 0 0 0); transform: scale(1.14); }
.c-motion .c-swap.in img.on { transition: clip-path 1.3s var(--ease-io), transform 1.8s var(--ease-out); }
.c-swap-cap {
  position: absolute; z-index: 3; left: 18px; bottom: 16px; color: #fff; display: flex; gap: 8px; align-items: center;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}
.c-swap-cap .cap-roll span { transform: translateY(calc(var(--i, 0) * -100%)); }
.c-services li { cursor: default; }
.c-services h3, .c-services .c-num { transition: transform .6s var(--ease-out), color .4s var(--ease-out); }
.c-services li.is-on h3 { transform: translateX(10px); }
.c-services li.is-on .c-num { color: var(--green); transform: translateX(4px); }
.c-still .c-swap img { transition: none; transform: none; }
.c-still .c-swap img:not(.on) { clip-path: inset(100% 0 0 0); }

/* ---------------- v3: team cards lift on hover ---------------- */
.c-person { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.c-person:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--rule), 0 30px 50px -30px rgba(12, 14, 13, .55); }
.c-mono span { transition: transform .7s var(--ease-out); }
.c-person:hover .c-mono span { transform: translateY(-6%) scale(1.06); }

/* ---------------- tablet ---------------- */
@media (max-width: 1100px) {
  .c-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-approach-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-approach-list li:nth-child(4) { padding-left: 0; border-left: 0; }
  .c-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-card:not(:nth-child(4n + 1)) { padding-left: 0; border-left: 0; }
  .c-card:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--rule); }
}

/* ---------------- phone ---------------- */
@media (max-width: 760px) {
  .company { padding-top: calc(env(safe-area-inset-top, 0px) + 78px); }
  .c-intro { grid-template-columns: 1fr; min-height: 0; padding-bottom: 40px; }
  .c-intro-pic { aspect-ratio: 4 / 3; order: -1; }
  .c-h1 { font-size: clamp(42px, 12.4vw, 60px); margin: 14px 0 18px; }
  .c-split, .c-split-r { grid-template-columns: 1fr; }
  .c-split .c-side { order: -1; }
  .c-sticky { position: relative; top: 0; aspect-ratio: 4 / 3; }
  /* the services picture rides along at the top while the list scrolls under it */
  .c-split > .c-side-swap { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 66px); z-index: 2; background: var(--white); padding-bottom: 12px; box-shadow: 0 -26px 0 var(--white); }
  .c-side-swap .c-sticky { aspect-ratio: 16 / 10; }
  .c-services li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; }
  .c-approach-list { grid-template-columns: 1fr; }
  .c-approach-list li, .c-approach-list li + li { padding: 16px 0 10px; border-left: 0; border-bottom: 1px solid var(--rule); }
  .c-people { grid-template-columns: 1fr; gap: 12px; }
  .c-person { flex-direction: row; }
  .c-mono { aspect-ratio: auto; width: 104px; flex: none; }
  .c-mono span { font-size: 44px; }
  .c-mono::after { height: 5px; }
  .c-person-text { padding: 16px 16px 18px; gap: 6px; }
  .c-ticks { grid-template-columns: 1fr; }
  .c-cards { grid-template-columns: 1fr; }
  .c-card, .c-card:nth-child(2n), .c-card:not(:nth-child(4n + 1)) { padding: 18px 0 20px; border-left: 0; }
  .c-actions .btn { flex: 1; }
  .c-foot { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); }
}

@media (prefers-reduced-motion: reduce) {
  .c-motion [data-reveal], .c-motion [data-words] .w, .c-motion [data-pic] img { opacity: 1 !important; filter: none !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* v3.7 phone pass: html.is-calm = phones. Fades without the blur, solid tags. */
.is-calm.c-motion [data-reveal], .is-calm.c-motion [data-words] .w { filter: none; }
.is-calm .c-pic-tag span { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--white); }
