/* ==========================================================================
   PB n' J: additions for the work & people led homepage
   Appended after style.css so it wins on equal specificity.
   ========================================================================== */

/* ---------- Marquee ------------------------------------------------------ */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  border-block: 1px solid var(--line-soft);
  padding-block: 1.15rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: slide 46s linear infinite;
}
.marquee__track span {
  font-family: var(--f-display);
  font-size: clamp(0.95rem, 1.6vw, 1.35rem);
  font-weight: 600;
  color: var(--cream-2);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.marquee__track i {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--amber);
  transform: rotate(45deg);
  opacity: 0.7;
}
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}

/* ---------- Mobile tap-to-call bar --------------------------------------- */
/* Hidden on desktop where the phone number is already in the top bar and
   header CTA. Fixed to the bottom on small screens only. */
.callbar { display: none; }

@media (max-width: 700px) {
  .callbar {
    position: fixed;
    z-index: 120;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -12px 34px -18px rgba(0, 0, 0, 0.95);
  }
  .callbar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 1.05rem 0.75rem;
    background: var(--navy-700);
    color: var(--cream);
    font-size: var(--t-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .callbar__btn svg { width: 1.1em; height: 1.1em; flex: none; }
  .callbar__btn--call {
    background: var(--amber);
    color: var(--navy-900);
  }
  /* Stop the bar covering the end of the page / footer links */
  body { padding-bottom: 4.1rem; }
  .footer__bar { padding-bottom: 1.25rem; }

  /* Hide the call bar while the nav drawer is open so it can't be mistaken
     for part of the menu, and keep the drawer's own CTAs reachable. */
  body.nav-open .callbar { display: none; }
  body.nav-open { padding-bottom: 0; }
  .nav { padding-bottom: 2rem; }
}

/* ---------- Recent jobs (homepage) ----------------------------------------- */
/* The same even grid as the Our Work gallery: every photo one size, with the
   job name and a line about it underneath. */
.masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1rem, 2.2vw, 1.75rem);
}
.masonry__item { display: flex; flex-direction: column; }
.masonry__img {
  display: block;
  /* Square is the honest compromise: the source photos are a mix of 3:4 and
     4:3, and a square crop takes the same 25% off either one instead of
     slicing the wide shots down to a portrait sliver. */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
  background: var(--navy-600);
}
.masonry__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.masonry__cap { display: block; padding: 0.85rem 0 0; }
.masonry__cap strong {
  display: block;
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--cream);
  transition: color 0.2s var(--ease);
}
.masonry__cap small {
  display: block;
  margin-top: 0.3rem;
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--cream-3);
}
@media (hover: hover) and (pointer: fine) { .masonry__item:hover .masonry__img img { transform: scale(1.05); } }
@media (hover: hover) and (pointer: fine) { .masonry__item:hover .masonry__cap strong { color: var(--amber); } }
.masonry__item:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

@media (max-width: 900px) { .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .masonry__cap strong { font-size: var(--t-base); }
  .masonry__cap small { font-size: var(--t-xs); }
}

/* ---------- Hero headline tuning ---------------------------------------- */
.hero__inner { max-width: 62rem; }
.hero h1 { margin-bottom: 0.3em; }

/* On a 13" laptop the hero content is taller than the viewport, which pushes
   the primary CTA below the fold. Tighten the vertical rhythm rather than
   shrink the photo. */
@media (min-width: 901px) and (max-height: 940px) {
  .hero { padding-block: clamp(2.5rem, 4.5vw, 3.5rem) 2.5rem; }
  .hero__script { margin-bottom: 1.1rem; }
  .hero__lead { font-size: var(--t-base); }
  .hero .trust { margin-top: 2rem; padding-top: 1.1rem; }
}

/* ---------- Numbered service cards --------------------------------------- */
/* Replaces the generic line icons. The numbers match the 01–06 labels on the
   services page, so the two pages read as one system. */
.card__num {
  display: block;
  margin-bottom: 1.15rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--amber);
}

/* ---------- One light band per page -------------------------------------- */
/* The palette is all navy, so re-pointing the colour tokens inside a light
   section flips every child — headings, body, muted text, borders — without
   per-component overrides. Accent text darkens to stay readable on paper. */
.band-light {
  --cream: #14202b;
  --cream-2: #2c3944;
  --cream-3: #55616c;
  --cream-4: #77828c;
  --line: #d9cfb2;
  --line-soft: #e4dbc2;
  --amber: #8a4a05;
  background: #f5edd6;
  color: var(--cream-2);
  border-block: 1px solid var(--line-soft);
}
.band-light .creds__item {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--cream-2);
}
/* Primary button inverts to ink on paper so it still reads as the action. */
.band-light .btn {
  --btn-bg: #0b1628;
  --btn-fg: #fcf0c0;
}
@media (hover: hover) and (pointer: fine) { .band-light .btn:hover { background: #1d2f4d; color: #fcf0c0; } }
.band-light .crew__media {
  border-color: var(--line);
  box-shadow: 0 22px 46px -28px rgba(20, 32, 43, 0.45);
}
/* The dog panel keeps its own surface, just repainted for the light band. */
.band-light .jj {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
}
.band-light .award {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--line);
}
.band-light .award__icon { color: var(--amber); }

/* ---------- Person cards on the homepage -------------------------------- */
@media (max-width: 900px) {
  .split--flip .split__body { order: 1; }
  .split--flip .split__media { order: 2; }
}

/* ---------- Floating mascot contact button -------------------------------- */
/* Desktop only. Below 900px the sticky tap-to-call bar already covers this
   job, and two stacked controls in the same corner fight each other. */
.mascot { display: none; }

@media (min-width: 901px) {
  .mascot {
    display: block;
    position: fixed;
    right: clamp(1rem, 2.5vw, 2rem);
    bottom: clamp(1rem, 2.5vw, 2rem);
    z-index: 110;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
  }
}

.mascot__btn {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(160deg, var(--navy-600), var(--navy-800));
    box-shadow: var(--shadow-lg);
  cursor: pointer;
    transition: transform 0.2s var(--ease);
}
.mascot__btn img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}
@media (hover: hover) and (pointer: fine) { .mascot__btn:hover { transform: translateY(-3px); } }
.mascot__btn:active { transform: scale(0.96); }

/* Pulse: an amber ring that swells out from the button and fades, with a
   rest between beats so it draws the eye without nagging. Stops while the
   panel is open. Reduced motion is handled by the global rule in style.css,
   which runs the animation once to its invisible end state. */
.mascot__btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 3px solid var(--amber);
  opacity: 0;
  pointer-events: none;
  animation: mascot-pulse 2.6s cubic-bezier(0.25, 0.6, 0.4, 1) 1.5s infinite;
}
.mascot__btn[aria-expanded="true"]::after { animation: none; }
@keyframes mascot-pulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  65%  { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}



.mascot__panel {
  width: min(300px, 78vw);
  padding: 1.15rem;
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 0.4rem;
  transform-origin: bottom right;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
@starting-style {
  .mascot__panel { opacity: 0; transform: translateY(6px) scale(0.97); }
}
.mascot__panel[hidden] { display: none; }
.mascot__title {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.35rem;
}
.mascot__link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.6rem;
  border-radius: var(--r);
  transition: background-color 0.2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .mascot__link:hover { background: var(--navy-600); } }
.mascot__link svg {
  width: 20px; height: 20px;
  color: var(--amber);
  flex: none;
}
.mascot__link strong { display: block; font-size: var(--t-sm); color: var(--cream); font-weight: 600; }
.mascot__link small { display: block; font-size: var(--t-xs); color: var(--cream-4); }


/* ---------- The crew photo ------------------------------------------------- */
.crew { position: relative; }
.crew__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.crew__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Jar Jar Binks has his own panel under the crew section, separate from the
   photo of the two fellas. */
.jj {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(0.9rem, 2vw, 1.25rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--navy-700), var(--navy-800));
}
.jj__media {
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--navy-600);
}
.jj__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .jj__media:hover img { transform: scale(1.05); } }
.jj__name { font-size: var(--t-lg); margin-bottom: 0.4rem; }
.jj__body p { color: var(--cream-3); font-size: var(--t-sm); max-width: 56ch; }
.jj__body .eyebrow { margin-bottom: 0.5rem; }

@media (max-width: 720px) {
  .jj { grid-template-columns: 1fr; }
  .jj__media { aspect-ratio: 3 / 2; max-height: 300px; }
  /* No negative offsets on small screens: anything pulled outside the column
     is what causes horizontal scroll. */
  .framed::before { inset: 12px 8px -12px 8px; }
}

/* ---------- Projects gallery ---------------------------------------------- */
/* An even grid: every job photo the same size, with its name and the type of
   work underneath, and the jobs grouped by type. The mixed-size mosaic this
   replaces made it hard to tell one job from the next. */
.gallery--feature {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1rem, 2.2vw, 1.75rem);
}
.gallery--feature .shot,
.gallery--feature .shot--wide,
.gallery--feature .shot--tall {
  grid-column: auto;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  background: none;
  border-radius: 0;
  overflow: visible;
  text-align: left;
}
.gallery--feature .shot::after { content: none; }
.gallery--feature .shot.is-hidden { display: none; }
.shot__img {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
  background: var(--navy-600);
}
.shot__img svg {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 6px;
  background: rgba(4, 11, 23, 0.82);
  color: var(--amber);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .shot:hover .shot__img svg { opacity: 1; } }
.shot:focus-visible .shot__img svg { opacity: 1; }
.gallery--feature .shot__cap {
  position: static;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.85rem 0 0;
}
.gallery--feature .shot__title {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--cream);
  transition: color 0.2s var(--ease);
}
.gallery--feature .shot__tag {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
@media (hover: hover) and (pointer: fine) { .gallery--feature .shot:hover .shot__title { color: var(--amber); } }
@media (max-width: 900px) { .gallery--feature { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .gallery--feature .shot__title { font-size: var(--t-base); }
  .gallery--feature .shot__tag { font-size: 0.68rem; letter-spacing: 0.08em; }
}
