/* Our work, the grid cards and the one page per client.
   Laid out off weberco.io/our-work on Seth's call, 2026-09-13 and 2026-09-14:
   a card opens that client's own page, which carries the client, the
   services, a Visit website button, the whole homepage as one tall picture,
   then a sliding row of the other clients. No write up, on purpose.
   Client pages are written by tools/gen_work_pages.py from content/work.yml. */

[hidden] { display: none !important; }

/* ---- cards, shared by /our-work and the row under each client page ---- */
.work-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 2.5vw, 2.25rem) clamp(0.875rem, 1.5vw, 1.25rem);
  text-align: left;
}
@media (max-width: 64rem) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .work-grid { grid-template-columns: 1fr; } }
.work-card a { display: block; color: inherit; text-decoration: none; }
.work-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #060607;
}
.work-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
/* The wash, dark at the bottom where the logo sits, the same fall off the
   reference cards use, so a white logo reads on any photograph. */
.work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #060607a6 0%, #060607b8 55%, #060607e6 100%);
  transition: background 0.3s ease;
}
.work-card__logo {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 62%;
  max-height: 30%;
  object-fit: contain;
}
.work-card__logo--round { max-height: 42%; }
/* A client with no photograph we can use gets the dark ground and a soft
   glow instead. Operation Children First shows no children's faces. */
.work-card__media--plain {
  background: radial-gradient(70% 70% at 50% 45%, #6f9bd83d 0%, transparent 70%), #0d0f14;
}
.work-card__media--plain::after { display: none; }
.work-card h3 {
  margin: 1rem 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: var(--display-tracking);
  color: var(--paper);
  transition: color 0.18s ease;
}
.work-card__tags { margin: 0; font-size: 0.9rem; color: var(--paper-soft); }
.work-card a:hover .work-card__photo,
.work-card a:focus-visible .work-card__photo { transform: scale(1.04); }
.work-card a:hover h3,
.work-card a:focus-visible h3 { color: var(--accent-on-dark); }
.work-card a:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 6px; border-radius: 0.75rem; }

/* ---- one client ---- */
.case-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(3rem, 7vw, 5rem);
  margin-top: calc(var(--header-h) * -1);
  border-radius: 0 0 clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
  min-height: clamp(20rem, 30vw, 25rem);
  display: grid;
  align-content: center;
  background:
    linear-gradient(180deg, #060607b3 0%, #0606078c 45%, #060607d9 100%),
    url(/assets/img/work/banner-kenai-fjords.jpg) center 55% / cover no-repeat;
  text-align: center;
}
.case-hero .wrap { position: relative; z-index: 2; }
.case-hero__title, .case-back { text-shadow: 0 2px 24px #000000b3; }
.case-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--paper-soft);
  text-decoration: none;
}
.case-back:hover, .case-back:focus-visible { color: var(--accent-on-dark); }
.case-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: var(--display-tracking);
  color: var(--paper);
}

/* Client, Services, Visit website, the three lines weberco.io shows. */
.case-intro { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); text-align: left; }
.case-label {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  color: var(--paper-soft);
}
.case-value {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: var(--display-tracking);
  color: var(--paper);
  text-wrap: balance;
}
.case-value--services { max-width: 46rem; }
.case-value a { color: inherit; text-decoration: none; transition: color 0.18s ease; }
.case-value a:hover, .case-value a:focus-visible { color: var(--accent-on-dark); }
.case-visit { margin-top: 0.6rem; }

.case-shot-band { padding: 0 0 clamp(4rem, 8vw, 6rem); }
.case-shot {
  display: block;
  max-width: 100%;
  overflow: hidden;
  border-radius: clamp(0.75rem, 1.5vw, 1.1rem);
  border: 1px solid #ffffff1f;
  box-shadow: 0 30px 80px #00000080;
  background: #0d0f14;
}
.case-shot img { display: block; width: 100%; height: auto; }
.case-shot__note { margin: 0.9rem 0 0; font-size: 0.9rem; color: var(--paper-soft); text-align: center; }

.case-more { padding: clamp(4rem, 8vw, 6rem) 0; }
.case-more__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: left;
}
.case-more__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: var(--display-tracking);
  color: var(--paper);
}
.case-more__all { color: var(--paper); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.15rem; }
.case-more__all:hover, .case-more__all:focus-visible { color: var(--accent-on-dark); }
.case-more__row {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(15rem, 30%, 24rem);
  gap: clamp(0.875rem, 1.5vw, 1.25rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  text-align: left;
}
.case-more__row::-webkit-scrollbar { display: none; }
.case-more__row > li { scroll-snap-align: start; }
@media (max-width: 34rem) { .case-more__row { grid-auto-columns: 82%; } }
.case-more__arrows { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.5rem; }
.case-more__arrows button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid #ffffff4d;
  background: transparent;
  color: var(--paper);
  font-size: 1.1rem;
  cursor: pointer;
}
.case-more__arrows button:hover, .case-more__arrows button:focus-visible { border-color: var(--accent-on-dark); color: var(--accent-on-dark); }
.case-more__arrows button:disabled { opacity: 0.35; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .work-card__photo, .work-card h3 { transition: none; }
  .case-more__row { scroll-behavior: auto; }
}
