/* Projects index and job pages. Loaded after styles.css. */
.page-hero { position: relative; color: var(--white); background: var(--green-900) center / cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,30,62,.94) 0%, rgba(10,74,36,.82) 55%, rgba(10,74,36,.45) 100%); }
.page-hero .wrap { position: relative; padding-top: 76px; padding-bottom: 76px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; margin: 12px 0 14px; max-width: 760px; }
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero p { font-size: 18px; color: #d6e6d6; max-width: 580px; margin: 0; }
.crumbs { font-size: 14px; color: #bcd3bf; }
.crumbs a { color: var(--lime); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Index cards */
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.job-card { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.job-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -22px rgba(1,30,62,.45); }
.job-card .thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--white); }
.job-card figure { position: relative; margin: 0; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--green-800); }
.job-card img { width: 100%; height: 100%; object-fit: cover; }
.job-card .body { padding: 20px 22px 24px; }
.job-card h2 { font-size: 23px; font-weight: 800; margin: 6px 0 8px; }
.job-card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.job-card .more { font-family: var(--display); font-weight: 800; color: var(--green-700); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.meta b { color: var(--green-700); font-weight: 600; }
.tag { position: absolute; top: 12px; padding: 6px 12px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.tag-before { left: 12px; background: rgba(1,30,62,.85); color: var(--white); }
.tag-after { left: 12px; background: var(--gold); color: var(--green-950); }
.ba .tag-after { left: auto; right: 12px; }

/* Drag slider */
.ba { position: relative; width: 100%; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(1,30,62,.55); user-select: none; touch-action: pan-y; background: var(--green-900); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba .divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: var(--white); pointer-events: none; }
.ba .handle { position: absolute; top: 50%; left: var(--pos, 50%); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--gold); color: var(--green-950); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); pointer-events: none; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba input:focus-visible ~ .handle { outline: 3px solid var(--white); outline-offset: 3px; }
.hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Side-by-side pair */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair figure { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--green-800); }
.pair img { width: 100%; height: 100%; object-fit: cover; }
.pair figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px; color: var(--white); font-size: 14px; background: linear-gradient(transparent, rgba(1,30,62,.85)); }

/* Job detail layout */
.job { display: grid; grid-template-columns: 1.3fr .7fr; gap: 44px; align-items: start; }
.job-copy h2 { font-size: 28px; font-weight: 900; margin: 34px 0 10px; }
.job-copy p { color: #34403a; font-size: 17px; margin: 0 0 14px; }
.job-copy ul { padding-left: 20px; margin: 0 0 14px; color: #34403a; font-size: 16.5px; }
.job-copy li { margin-bottom: 6px; }
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 20px; }
.facts div { background: var(--white); padding: 14px 18px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 3px 0 0; font-family: var(--display); font-weight: 800; font-size: 17px; }
.aside { position: sticky; top: 128px; }
.quote { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green-500); border-radius: var(--radius); padding: 20px; margin: 0 0 20px; font-size: 16px; }
.quote cite { display: block; margin-top: 10px; font-style: normal; font-weight: 600; font-size: 14px; color: var(--muted); }
.aside .btn { width: 100%; }
.aside .call { display: block; text-align: center; margin-top: 12px; font-weight: 600; color: var(--green-700); }
.next { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; font-weight: 600; }
.next a { color: var(--green-700); text-decoration: none; }

@media (max-width: 960px) {
  .jobs, .job { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 620px) {
  .page-hero .wrap { padding-top: 52px; padding-bottom: 52px; }
  .pair { grid-template-columns: 1fr; }
}
@media (max-width: 620px) { .facts[style] { grid-template-columns: 1fr 1fr !important; } }
