/* =====================================================================
   Daytime Design Co. — Work index page
   Page header + full project list. The list reuses the exact
   .more / .more__row row styling from home.css (see MORE WORK section
   there) — new bits here are just the on-light nav variant, the page
   intro, and extra thumbnail gradients for projects not on the home page.
   ===================================================================== */

/* ---------- Nav — static, sits ON the pink hero field (matches Figma) ---------- */
.nav--light {
  position: static;
  background: var(--c-pink);
  border-bottom: 0;
}
.nav--light .logo__word { color: var(--c-ink); }
.nav--light .nav__links a { color: var(--c-ink); opacity: 0.68; }
.nav--light .nav__links a:hover,
.nav--light .nav__links a.is-active { opacity: 1; }
/* the mobile dropdown is always green (set inline by anim.js) — keep its text cream regardless of nav variant */
@media (max-width: 820px) {
  .nav--light .nav__links a { color: var(--c-cream); opacity: 0.92; }
}

/* ---------- HERO (pink — matches Figma "Work Index · Desktop" > Section/Work Hero, 1440×470 incl. nav) ---------- */
.workhero { background: var(--c-pink); padding: 60px 0 76px; }
.workhero__eyebrow { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--c-ink); margin-bottom: 30px; }
.workhero__title {
  font-size: clamp(44px, 5.8vw, 84px); line-height: 1; letter-spacing: -2px;
  margin: 0; color: var(--c-ink);
}
/* headline and project count share one baseline at the bottom of the hero */
.workhero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin: 0; }
.workhero__count { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--c-ink-3); white-space: nowrap; }

@media (max-width: 820px) {
  .workhero { padding: 36px 0 44px; }
  .workhero__eyebrow { margin-bottom: 18px; }
  .workhero__row { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---------- PROJECT ROWS (white — matches Figma Section/Project Rows, rows 1240×480) ---------- */
.prows { background: var(--c-paper); padding: 90px 0; }
.prows__eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--c-red); margin-bottom: 8px; display: block; }
.prows__title { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -0.5px; line-height: 1.05; margin: 0 0 64px; color: var(--c-ink); }

.prow { display: grid; grid-template-columns: minmax(240px, 330px) 1fr; gap: 40px; align-items: stretch; padding: 32px 0; border-top: 1px solid var(--c-hair); }
.prow:last-of-type { border-bottom: 1px solid var(--c-hair); }
.prow__info { display: flex; flex-direction: column; align-items: flex-start; }
.prow__num { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--c-red); margin-bottom: 18px; }
.prow__name { font-family: var(--font-sans); font-weight: 800; font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -0.5px; line-height: 1.12; color: var(--c-ink); margin: 0 0 14px; }
/* scope reads as small outline tags at every breakpoint */
.prow__scope {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px;
  text-transform: uppercase; margin: 0 0 26px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.prow__scope span {
  display: inline-flex; align-items: center; line-height: 1; color: var(--c-ink);
  border: 1px solid rgba(39,39,39,0.28); border-radius: 4px; padding: 5px 9px;
  white-space: nowrap;
}
/* uses the global .btn / .btn--green pill; this only handles placement + scale */
.prow__btn { margin-top: auto; font-size: 15px; padding: 14px 26px; }

.prow__cover {
  position: relative; border-radius: var(--radius-lg); overflow: visible;
  aspect-ratio: 868 / 416; display: grid; place-items: center;
}
a.prow__cover { display: grid; cursor: pointer; }
.prow__ph {
  position: relative; z-index: 1; width: 36%; aspect-ratio: 34 / 30;
  border-radius: 6px; background: linear-gradient(160deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}
/* a real project poster sitting on the pattern field */
/* matches the .prow__ph placeholder footprint so every row reads at one scale */
.prow__poster {
  position: relative; z-index: 1; width: 46%; height: auto;
  border-radius: 6px;
  transition: transform .4s var(--ease-out, ease);
}
a.prow__cover:hover .prow__poster { transform: translateY(-6px); }
/* transparent device art carries its own shadow — sits wider, no card edge */
.prow__poster--devices { width: 64%; border-radius: 0; }
/* a single wide laptop cutout. The 64% phone-triad width makes one big screen crowd the
   field, and the UI inside is already dense — pull it in so the pattern breathes. */
.prow__poster--laptop { width: 56%; border-radius: 0; }
/* a photographic cover with a hard edge (signage, poster-in-situ) — unlike the cutout
   device art it carries no baked shadow, so it needs the card treatment. Shadow matches
   .prow__ph exactly so a real cover and a placeholder row read at the same visual weight. */
.prow__poster--photo { width: 46%; border-radius: 6px; box-shadow: 0 14px 30px rgba(0,0,0,0.18); }

/* Em's real yellow grid pattern, never stretched */
.cover--yellow { background: var(--c-acid) url("../02_Site-Wide%20Assets/backgrounds/bg-yellow.png") center / cover no-repeat; }
.cover--orange { background-color: var(--c-orange); background-image: repeating-linear-gradient(to right, transparent 0 12px, rgba(250,255,91,0.3) 12px 13px); }
.cover--blue   { background-color: var(--c-blue); background-image: linear-gradient(to right, rgba(0,0,0,0.14) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,0,0,0.14) 1px, transparent 1px); background-size: 36px 36px; }
.cover--olive  { background-color: var(--c-olive); background-image: repeating-linear-gradient(to right, transparent 0 45px, rgba(10,83,66,0.55) 45px 46px); }
.cover--black  { background-color: #17140f; background-image: repeating-linear-gradient(to right, transparent 0 45px, rgba(255,255,255,0.07) 45px 46px); }
.cover--cream  { background-color: var(--c-cream); background-image: linear-gradient(to right, rgba(202,206,40,0.55) 1px, transparent 1px), linear-gradient(to bottom, rgba(202,206,40,0.55) 1px, transparent 1px); background-size: 36px 36px; }

/* project tag placement on the wide project rows (shape + colour live in styles.css) */
.prow__cover .sticker { top: 18px; right: 26px; }

@media (max-width: 1100px) {
  .prow { grid-template-columns: 240px 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .prows { padding: 60px 0; }
  .prows__title { margin-bottom: 30px; }

  /* ---- Mobile: the cover IS the row. Image leads, meta reads as one line. ---- */
  .prow {
    grid-template-columns: 1fr; gap: 16px;
    padding: 0 0 38px; border-top: 0;
  }
  .prow + .prow { padding-top: 38px; border-top: 1px solid var(--c-hair); }
  .prow:last-of-type { border-bottom: 0; }

  /* taller, more poster-like — and the artwork gets real presence */
  .prow__cover { order: -1; aspect-ratio: 4 / 3.2; }
  .prow__poster { width: 74%; }
  .prow__ph { width: 54%; }

  /* name on its own line, then a single meta row: index · scope ——— cta */
  .prow__info {
    display: grid; align-items: center;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "name name name" "num scope cta";
    gap: 12px 14px;
  }
  .prow__name  { grid-area: name; font-size: clamp(28px, 8vw, 38px); letter-spacing: -1px; margin: 0; }
  .prow__num   { grid-area: num;  margin: 0; }
  .prow__scope { grid-area: scope; margin: 0; }
  .prow__scope span { font-size: 10px; padding: 5px 8px; }
  .prow__btn, .prow__soon { grid-area: cta; margin: 0; justify-self: end; }
  .prow__btn { font-size: 14px; padding: 12px 20px; }

  .sticker { top: 12px; right: 14px; width: 78px; height: 78px; }
}

/* ---------- FULL ARCHIVE — exact homepage .more row styling; only the extra
   thumbnail gradients (rows beyond the 3 on home) live here ---------- */
.thumb--cait     { background: var(--c-cream) url("../01_Case%20Studies/Cait%20Scudder%20%3A%20TMM/02_Website/web/cait-thumb.webp") center / cover no-repeat; }
.thumb--tacy     { background: #dccc9c url("../01_Case%20Studies/Sarah%20Tacy/02_Website/web/sarah-tacy-thumb.webp") center / cover no-repeat; }
.thumb--maureen  { background: #547484 url("../01_Case%20Studies/Dr.%20Maureen/02_Website/web/maureen-thumb.webp") center / cover no-repeat; }
.thumb--erin     { background: var(--c-cream) url("../01_Case%20Studies/Erin%20McMahone%20Catering/02_Website/web/erin-thumb.webp") center / cover no-repeat; }
.thumb--monica   { background: #d4d4d4 url("../01_Case%20Studies/Monica%20Justesen/02_Website/web/monica-thumb.webp") center / cover no-repeat; }
.thumb--danielle { background: #fcc4cc url("../01_Case%20Studies/Danielle%20Harasek/02_Website/web/danielle-thumb.webp") center / cover no-repeat; }
.thumb--natalie  { background: #dcd4cc url("../01_Case%20Studies/Natalie%20Ellis/02_Website/web/natalie-thumb.webp") center / cover no-repeat; }
.thumb--lisa     { background: var(--c-cream) url("../01_Case%20Studies/Lisa%20Lantz/02_Website/web/lisa-lantz-thumb.webp") center / cover no-repeat; }

/* "Coming Soon" rows read a touch quieter until the reveal */
.more__row--soon .more__cat { color: var(--c-red); }
/* archive rows aren't linked yet — drop the interactive affordances */
.more__row--soon { grid-template-columns: 60px 120px 1fr auto; cursor: default; }
.more__row--soon:hover .more__thumb { transform: none; }
.more__row--soon:hover .more__name { font-family: var(--font-sans); font-weight: 800; font-style: normal; letter-spacing: -1.5px; }
.more__row--soon:hover .more__cat { background: none; padding: 0; color: var(--c-red); }

/* featured rows without a detail page yet */
.prow__soon {
  margin-top: auto; display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--c-ink-3);
  border: 1px solid rgba(39,39,39,0.3); border-radius: 4px; padding: 5px 10px;
}
