/* Version 19: emergency-first homepage and continuously flowing field-work stream */

.hero h1 { max-width: 720px; font-size: clamp(52px, 4.75vw, 72px); }
.hero-lead { max-width: 710px; font-size: 18px; }
.hero-actions { flex-wrap: wrap; }
.hero-actions .save-contact-button { min-width: 270px; justify-content: space-between; text-align: left; }
.hero-actions .button-glass { min-width: 210px; justify-content: space-between; text-align: left; }
.hero-actions .button-glass .call-icon { width: 26px; height: 26px; }

/* On desktop the kicker begins with a 25px rule and an 11px gap. Align the
   primary copy and the lower scroll label with the kicker's first letter. */
@media (min-width: 901px) {
  .hero h1,
  .hero-lead,
  .hero-actions { margin-left: 36px; }
  .hero-scroll span { margin-left: 36px; }
}

.job-stream-section {
  position: relative;
  padding: 62px 0 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eef7fb;
}
.job-stream-section[hidden], .job-stream[hidden], .job-preview[hidden] { display: none; }
.job-stream-heading {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr);
  align-items: end;
  gap: 50px;
}
.job-stream-heading h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(38px, 4vw, 58px);
  letter-spacing: -.05em;
  line-height: .98;
}
.job-stream-heading h2 em { color: var(--blue); font-family: Georgia, serif; font-weight: 400; }
.job-stream-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.job-stream { position: relative; }
.job-stream-viewport {
  position: relative;
  width: min(var(--shell), calc(100% - 64px));
  margin-inline: auto;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
.job-stream-viewport:active { cursor: grabbing; }
.job-stream-viewport:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.job-stream-track {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: max-content;
  will-change: transform;
}
.job-stream-card {
  position: relative;
  flex: 0 0 calc((min(var(--shell), 100vw - 64px) - 36px) / 4);
  height: 300px;
  min-width: 240px;
  overflow: hidden;
  border: 0;
  padding: 0;
  color: white;
  text-align: left;
  background: #cbdde6;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(7, 58, 87, .08);
}
.job-stream-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: transform .28s ease, filter .28s ease;
}
.job-stream-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(3, 28, 42, .02) 38%, rgba(3, 28, 42, .9) 100%);
  pointer-events: none;
}
.job-stream-card:hover img, .job-stream-card.is-armed img { transform: scale(1.035); }
.job-stream-card.is-armed { outline: 4px solid var(--red); outline-offset: -4px; }
.job-stream-card.is-armed::before {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  padding: 7px 9px;
  content: "Tap again to enlarge";
  color: white;
  background: var(--red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.job-card-meta {
  position: absolute;
  z-index: 3;
  top: 13px;
  left: 13px;
  max-width: calc(100% - 26px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
}
.job-time-row, .job-place-row {
  padding: 7px 9px;
  color: #0a2637;
  background: rgba(255, 255, 255, .96);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 3px 11px rgba(0, 25, 40, .12);
}
.job-time-row.is-after-hours { color: white; background: var(--red); }
.job-card-copy {
  position: absolute;
  z-index: 3;
  left: 15px;
  right: 15px;
  bottom: 15px;
  padding-right: 10px;
  pointer-events: none;
}
.job-card-copy strong { display: block; font-size: 20px; line-height: 1.08; letter-spacing: -.025em; }
.job-card-copy span { display: block; margin-top: 5px; color: rgba(255,255,255,.78); font-size: 11px; line-height: 1.35; }
.job-stream-status {
  width: min(var(--shell), calc(100% - 64px));
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.job-stream-prompt[hidden] { display: none; }
.job-stream-prompt {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  width: max-content;
  max-width: calc(100% - 34px);
  transform: translate(-50%, -50%);
  padding: 15px 20px;
  color: white;
  background: rgba(4, 34, 51, .94);
  border: 2px solid white;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .34);
  text-align: center;
  pointer-events: none;
}
.job-stream-prompt strong,
.job-stream-prompt span { display: block; }
.job-stream-prompt strong { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.job-stream-prompt span { margin-top: 5px; font-size: 13px; }

.job-preview {
  position: fixed;
  z-index: 1000;
  inset: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 22, 34, .82);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.job-preview-dialog {
  position: relative;
  width: min(860px, 58vw);
  height: min(720px, 82vh);
  max-height: 82vh;
  overflow: hidden;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  color: var(--navy-deep);
  background: white;
  box-shadow: 0 28px 100px rgba(0,0,0,.42);
  transition: width .28s ease, height .28s ease, max-height .28s ease;
}
.job-preview.is-full .job-preview-dialog {
  width: calc(100vw - 32px);
  height: calc(100vh - 32px);
  max-height: none;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .5fr);
}
.job-preview-image-button {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #061d2b;
  cursor: zoom-in;
}
.job-preview.is-full .job-preview-image-button { min-height: 0; cursor: zoom-out; }
.job-preview-image-button img { width: 100%; height: 100%; display: block; object-fit: contain; pointer-events: none; }
.job-preview-image-button > span {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 11px 16px;
  color: white;
  background: rgba(239, 61, 52, .96);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  pointer-events: none;
}
.job-preview-copy {
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: min(720px, 82vh);
  padding: 30px 26px;
  overflow-x: hidden;
  overflow-y: scroll;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #2b82b9 #dce8ee;
  position: relative;
}
.job-preview-copy:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.job-preview-copy::-webkit-scrollbar { width: 12px; }
.job-preview-copy::-webkit-scrollbar-track { background: #dce8ee; }
.job-preview-copy::-webkit-scrollbar-thumb { background: #2b82b9; border: 3px solid #dce8ee; }
.job-preview-time, .job-preview-place {
  width: max-content;
  max-width: 100%;
  padding: 8px 10px;
  color: #0a2637;
  background: #edf4f7;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.job-preview-time.is-after-hours { color: white; background: var(--red); }
.job-preview-place { margin-top: 5px; background: #dcecf4; }
.job-preview-copy h3 { margin: 22px 0 12px; font-size: clamp(28px, 2.7vw, 42px); line-height: 1.03; letter-spacing: -.04em; }
.job-preview-copy > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.62; white-space: pre-line; }
.job-preview.is-full .job-preview-copy > p { font-size: 17px; line-height: 1.75; }
.job-preview-controls { display: flex; gap: 8px; margin-top: 24px; }
.job-preview-controls button {
  border: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--navy-deep);
  background: white;
  cursor: pointer;
}
.job-preview-scroll-hint {
  position: sticky;
  z-index: 3;
  right: 0;
  bottom: -22px;
  margin: 18px -10px -18px;
  padding: 10px 12px;
  color: white;
  background: rgba(7, 58, 87, .94);
  box-shadow: 0 -8px 22px rgba(7, 58, 87, .16);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-align: center;
  pointer-events: none;
}
.job-preview-scroll-hint[hidden] { display: none; }
.job-preview-close {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(3, 28, 42, .86);
  cursor: pointer;
  font-size: 23px;
}
.job-preview-open { overflow: hidden; }

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(40px, 10vw, 56px); }
  .hero-lead { font-size: 16px; }
  .job-stream-heading { grid-template-columns: 1fr; gap: 14px; }
  .job-stream-card { flex-basis: min(74vw, 410px); height: 290px; }
  .job-preview-dialog, .job-preview.is-full .job-preview-dialog {
    width: min(94vw, 720px);
    height: calc(100vh - 24px);
    max-height: 92vh;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 46vh) minmax(0, 1fr);
  }
  .job-preview.is-full .job-preview-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    max-height: none;
    grid-template-rows: minmax(0, var(--mobile-preview-image-height, 61vh)) minmax(0, 1fr);
  }
  .job-preview-image-button,
  .job-preview.is-full .job-preview-image-button { min-height: 0; }
  .job-preview-copy,
  .job-preview.is-full .job-preview-copy { height: 100%; max-height: none; padding: 22px; }
}

@media (max-width: 620px) {
  .hero { height: auto; min-height: 0; }
  .hero-inner { min-height: 0; padding-bottom: 106px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .save-contact-button, .hero-actions .button-glass { width: 100%; min-width: 0; }
  .job-stream-section { padding: 44px 0 34px; }
  .job-stream-heading, .job-stream-viewport, .job-stream-status { width: calc(100% - 34px); }
  .job-stream-card { flex-basis: 78vw; min-width: 250px; height: 280px; }
  .job-card-copy strong { font-size: 19px; }
  .job-preview { padding: 8px; }
  .job-preview-dialog { width: 100%; }
  .job-preview.is-full .job-preview-copy { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .job-stream-track { will-change: auto; }
  .job-stream-card img { transition: none; }
}
