/* ===========================================================
   Imagine Work — the commercial page (/commercial).
   Builds on site.css and uses its colours, type and radii. The one
   deliberate break from the brief's design rules: the photo reels move.
   =========================================================== */

/* ---- Hero photos ------------------------------------------ */

/* Three photos side by side under the hero, in place of the homepage's one
   wide photo: the photos that suit commercial work are all portrait. */
.hero__photos {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}
.hero__photos img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-photo);
}
@media (max-width: 600px) {
  .hero__photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero__photos img {
    border-radius: 16px;
  }
  .hero__photos img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }
}

/* ---- How a job runs, and the free site visit band ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0 clamp(24px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.step__n {
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--green);
}
.step p {
  color: var(--ink-soft);
}

/* The free site visit: a short green band, heading left, button right. */
.walk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
}
.walk .section-head {
  margin: 0;
}

/* ---- Our work: one moving reel per job --------------------- */

/* Pause / Play for moving photos. */
.motion-btn {
  font: inherit;
  font-size: 15px;
  border: 0;
  background: none;
  color: var(--green);
  cursor: pointer;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.motion-btn:hover {
  color: var(--green-dark);
}
.motion-btn svg {
  flex-shrink: 0;
}
.motion-btn .when-paused,
.motion-btn[aria-pressed="true"] .when-playing {
  display: none;
}
.motion-btn[aria-pressed="true"] .when-paused {
  display: inline;
}
@media (prefers-reduced-motion: reduce) {
  .motion-btn {
    display: none;
  }
}

/* ---- The strip -------------------------------------------- */

.strip {
  --tile-h: 280px;
  --tile-gap: 14px;
  --tile-r: 20px;
  --strip-pad: 0px;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  padding-block: var(--strip-pad);
  margin-block: calc(-1 * var(--strip-pad));
  user-select: none;
  -webkit-user-select: none;
}
.strip.is-dragging {
  cursor: grabbing;
}
.strip__track {
  display: flex;
  gap: var(--tile-gap);
  width: max-content;
  will-change: transform;
}
.strip--static .strip__track {
  will-change: auto;
}

.tile {
  position: relative;
  flex: none;
  display: block;
  height: var(--tile-h);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--tile-r);
  overflow: hidden;
  background: var(--paper-alt);
  color: var(--ink);
  font: inherit;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.tile img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: transform 0.35s ease, opacity 0.25s ease;
}
.tile:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: -3px;
}

/* Play mark on the walk-through video. */
.tile__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
}

/* Caption pill, shown while a photo is zoomed. */
.tile__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 12px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* ---- Zoom: the photo zooms in where the pointer is ---------- */

.strip[data-magnify="zoom"] .tile.is-zoomed img {
  transform: scale(2.2);
  transition: transform 0.3s ease;
}
.strip[data-magnify="zoom"] .tile.is-zoomed .tile__cap {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .strip[data-magnify="zoom"] .tile.is-zoomed img {
    transform: none;
  }
}

/* ---- Full-size viewer ------------------------------------- */

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0d1210;
  color: #fff;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.7);
}
.lightbox__inner {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(12px, 3vw, 24px);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}
.lightbox__close {
  font: inherit;
  font-size: 15px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}
.lightbox__stage {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(8px, 7vw, 76px);
  touch-action: pan-y;
}
.lightbox__media {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__media img,
.lightbox__media video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox__nav:hover,
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.24);
}
.lightbox__prev {
  left: clamp(4px, 1.5vw, 16px);
}
.lightbox__next {
  right: clamp(4px, 1.5vw, 16px);
}
.lightbox__cap {
  padding: 14px clamp(12px, 3vw, 24px) 22px;
  text-align: center;
  font-size: 17px;
}
.lightbox__cap span {
  color: rgba(255, 255, 255, 0.66);
}
.lightbox :focus-visible {
  outline-color: #fff;
}
@media (max-width: 600px) {
  .lightbox__nav {
    top: auto;
    bottom: 8px;
    translate: none;
  }
}

/* ---- Reels: job details beside each strip ------------------ */

.reels {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 56px);
}
.reel-group {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-soft);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-bottom: calc(-1 * clamp(12px, 2vw, 24px));
}
.reel {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: 20px clamp(24px, 4vw, 48px);
  align-items: center;
}
.reel__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.reel__kind {
  font-size: 15px;
  color: var(--ink-soft);
}
.reel__name {
  font-size: clamp(22px, 2.4vw, 26px);
}
.reel__blurb {
  color: var(--ink-soft);
}
.reel__now {
  font-size: 15px;
  min-height: 1.5em;
  color: var(--ink);
}
.reel .strip {
  --tile-h: 250px;
  --tile-r: 18px;
  border-radius: 22px;
}
@media (max-width: 860px) {
  .reel {
    grid-template-columns: minmax(0, 1fr);
  }
  .reel__now {
    display: none;
  }
}
@media (max-width: 600px) {
  .reel .strip {
    --tile-h: 190px;
    --tile-gap: 10px;
    --tile-r: 14px;
    border-radius: 16px;
  }
}
