/* ==========================================================
   TygerLabs.ai · Case study pages and the Work index
   ========================================================== */

/* Facts: three plain label-value pairs under the lede */
.case-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-8);
  margin: var(--s-6) 0 0;
}
.case-facts dt { font-size: var(--text-sm); font-weight: var(--fw-bold); color: var(--tiger-2); }
.case-facts dd { margin: 2px 0 0; font-size: var(--text-lg); color: var(--ink); }

/* Screens sit in the same slim browser frame as the homepage showcase */
.case-frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.case-frame-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
}
.case-frame-dots { position: absolute; left: var(--s-4); display: flex; gap: 6px; }
.case-frame-dots i { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.case-frame-url {
  padding: 0.3rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--surface-1);
  font-size: 0.8125rem;
  color: var(--muted);
}
.case-frame img { display: block; width: 100%; height: auto; }

.case-lead { padding-bottom: var(--s-4); }

.case-overview { margin: 0 0 var(--s-7); font-size: var(--text-xl); line-height: 1.5; color: var(--ink); }
.case-story h2 { margin-bottom: var(--s-3); font-size: var(--text-xl); }
.case-story p { margin: 0; color: var(--ink-2); }

.case-tags { margin-top: var(--s-5); gap: var(--s-1) var(--s-4); }
.case-tags .pill { padding: 0; background: none; color: var(--ink-2); font-size: var(--text-sm); }
.case-tags .pill::before { content: "#"; margin-right: 0.05em; color: var(--tiger-2); }
.case-made { gap: var(--s-4); font-size: var(--text-lg); color: var(--ink); }

.case-screens-head { margin-bottom: var(--s-6); }
.case-screens { display: grid; gap: var(--s-7); }

/* Other projects: thumbnail, name, what we made; the same look as the
   homepage filmstrip, at rest in full colour since they are links */
.case-more {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: var(--s-5);
}
.case-more-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  text-decoration: none;
  transition: transform var(--t-mid) var(--ease);
}
.case-more-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin-bottom: var(--s-3);
  object-fit: cover;
  object-position: top;
  border-radius: var(--r-md);
  background: var(--surface-1);
}
.case-more-name { font-family: var(--ff-display); font-weight: var(--fw-bold); color: var(--ink); }
.case-more-kind { font-size: var(--text-sm); }
.case-more-card:hover { transform: translateY(-2px); color: var(--ink-2); }
.case-more-card:focus-visible { outline: 2px solid var(--tiger-2); outline-offset: 4px; border-radius: var(--r-md); }

.case-cta { margin-top: var(--section-y); }

@media (max-width: 575.98px) {
  .case-frame-bar { height: 34px; }
  .case-frame-url { font-size: 0.7rem; padding: 0.2rem 0.8rem; }
  .case-screens { gap: var(--s-5); }
  .case-facts { gap: var(--s-3) var(--s-6); }
}

/* ---------- Work index ----------
   Two big cards to a row: the project's first screen, then client and what
   we made, the headline, the one-line story and a link. The whole card is
   the link. */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-8) var(--s-6);
}
.work-card { display: flex; flex-direction: column; gap: var(--s-2); color: var(--ink-2); text-decoration: none; }
.work-card-shot { display: block; margin-bottom: var(--s-3); overflow: hidden; border-radius: var(--r-lg); background: var(--surface-1); }
.work-card-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: transform var(--t-slow) var(--ease);
}
.work-card-client { font-family: var(--ff-display); font-weight: var(--fw-bold); color: var(--tiger-2); }
.work-card-client span { margin-left: var(--s-2); font-family: var(--ff-body); font-weight: 400; color: var(--muted); }
.work-card-title { font-family: var(--ff-display); font-size: var(--text-2xl); font-weight: var(--fw-heavy); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.work-card-lede { max-width: 36rem; }
.work-card .link-arrow { margin-top: var(--s-2); }
.work-card:hover .work-card-shot img { transform: scale(1.02); }
.work-card:focus-visible { outline: 2px solid var(--tiger-2); outline-offset: 6px; border-radius: var(--r-lg); }

.work-brands { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-8); }
.work-brands-head { margin: 0; font-size: var(--text-lg); color: var(--ink-2); }

@media (max-width: 767.98px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .work-brands { display: grid; grid-template-columns: minmax(0, 1fr); }
}

/* Stacked columns: a label and its text belong together, so the desktop
   3rem row gap closes up once the columns stack. */
@media (max-width: 991.98px) { main .row.g-5 { --bs-gutter-y: var(--s-3); } }

/* Services behind it: the case study's way back to what we sell */
.case-services-head { margin: var(--s-6) 0 var(--s-2); font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--muted); }
.case-services { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.case-services a {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: var(--ink); font-weight: var(--fw-semi); text-decoration: none;
}
.case-services a .ph:first-child { color: var(--tiger-2); font-size: 1.15em; }
.case-services a .ph:last-child { opacity: 0.6; transition: transform var(--t-fast) var(--ease); }
.case-services a:hover { color: var(--tiger-2); }
.case-services a:hover .ph:last-child { transform: translateX(3px); opacity: 1; }
