/* ============================================================
   DAF — Work index page
   Editorial mixed grid: flagship cases + second-level index
   ============================================================ */

/* ---------- Page head ---------- */
.wk-hero { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); }
.wk-hero .hero-tex {
  position: absolute; left: 0; top: 0; bottom: 0; width: clamp(14px, 3vw, 46px);
  background: url('assets/texture-blue-1.png') center/cover;
  z-index: 1;
}
.wk-hero-in {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 7vw, 110px) var(--pad) clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
}
.wk-hero .label { display: block; margin-bottom: 22px; }
.wk-h1 { font-size: clamp(52px, 7.5vw, 110px); max-width: 12ch; }
.wk-hero-meta {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase; text-align: right;
  padding-bottom: 10px;
}
.wk-hero-meta .big { color: var(--ink); font-weight: 700; }

/* ---------- Editorial grid ---------- */
.wk-index { background: var(--paper); }
.wk-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 1px; background: var(--line);
  border-bottom: 1px solid var(--line);
}
.wk-grid > * { background: var(--paper); }

/* spans */
.sp-12 { grid-column: span 12; }
.sp-7  { grid-column: span 7; }
.sp-6  { grid-column: span 6; }
.sp-5  { grid-column: span 5; }
.sp-4  { grid-column: span 4; }
.sp-8  { grid-column: span 8; }

/* ---------- Tier 1 — flagship case card ---------- */
.wk-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 480px; padding: clamp(22px, 2.6vw, 36px);
  background: var(--ink); color: var(--paper);
  overflow: hidden;
}
.wk-card.is-tall { min-height: clamp(520px, 60vh, 660px); }
.wk-card .bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.wk-card:hover .bg { transform: scale(1.035); }
.wk-card .scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,10,.42) 0%, rgba(10,10,10,0) 32%, rgba(10,10,10,0) 48%, rgba(10,10,10,.72) 100%);
}
.wk-card .top {
  position: absolute; z-index: 2; left: clamp(22px, 2.6vw, 36px); right: clamp(22px, 2.6vw, 36px); top: clamp(20px, 2.4vw, 30px);
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(242,239,233,.85);
}
.wk-card .top .num { font-size: 13px; font-weight: 700; color: var(--white); }
.wk-card .info { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.wk-card .brand {
  font-family: var(--grotesk); font-weight: 700; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--white);
}
.wk-card .t {
  font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em;
  font-size: clamp(26px, 2.6vw, 40px); max-width: 18ch; text-wrap: balance;
  color: var(--white);
}
.wk-card.is-tall .t { font-size: clamp(32px, 3.6vw, 54px); max-width: 22ch; }
.wk-card .t .it { font-style: italic; }
.wk-card .cta {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em;
  color: var(--white);
}
.wk-card .cta .arr { width: 18px; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.wk-card:hover .cta .arr { transform: translateX(5px); }

/* light-image variant — dark text */
.wk-card.is-lighty { color: var(--ink); }
.wk-card.is-lighty .scrim {
  background: linear-gradient(180deg, rgba(242,239,233,.5) 0%, rgba(242,239,233,0) 34%, rgba(242,239,233,0) 50%, rgba(242,239,233,.85) 100%);
}
.wk-card.is-lighty .top { color: rgba(10,10,10,.7); }
.wk-card.is-lighty .top .num, .wk-card.is-lighty .brand, .wk-card.is-lighty .t, .wk-card.is-lighty .cta { color: var(--ink); }

/* ---------- Tier 2 — second-level index row ---------- */
.wk-mini {
  position: relative; display: grid;
  grid-template-columns: auto 132px 1fr auto; align-items: center; gap: clamp(16px, 2vw, 28px);
  min-height: 150px; padding: clamp(18px, 2vw, 26px) clamp(22px, 2.6vw, 36px);
  background: var(--paper-2);
  transition: background .3s ease;
}
.wk-mini:hover { background: var(--white); }
.wk-mini .num {
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--muted);
}
.wk-mini .mthumb {
  position: relative; width: 132px; height: 96px; overflow: hidden; background: var(--ink);
}
.wk-mini .mthumb img, .wk-mini .mthumb image-slot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.wk-mini:hover .mthumb img { transform: scale(1.05); }
.wk-mini .mmeta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wk-mini .brand {
  font-family: var(--grotesk); font-weight: 700; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}
.wk-mini .mt {
  font-family: var(--serif); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.15;
  color: var(--ink); text-wrap: pretty;
}
.wk-mini .mside {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.wk-mini .mtag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.wk-mini .mtag.soon { color: var(--blue); }
.wk-mini .arr { width: 22px; color: var(--ink); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.wk-mini:hover .arr { transform: translateX(5px); }

/* strip label row */
.wk-striplbl {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(22px, 2.6vw, 36px);
  background: var(--ink); color: var(--paper);
}
.wk-striplbl .label { color: var(--paper); }
.wk-striplbl .mono { color: var(--muted-dk); }

/* ---------- Outro CTA ---------- */
.wk-outro {
  background: var(--paper); border-bottom: 1px solid var(--line);
  text-align: center; padding: clamp(60px, 9vw, 130px) var(--pad);
}
.wk-outro .oh { font-size: clamp(34px, 4.4vw, 64px); margin-bottom: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .wk-grid { grid-template-columns: 1fr 1fr; }
  .wk-grid > * { grid-column: span 2 !important; }
  .wk-grid > .wk-card.sp-5, .wk-grid > .wk-card.sp-4 { grid-column: span 1 !important; min-height: 380px; }
  .wk-grid > .wk-card.sp-6 { grid-column: span 1 !important; min-height: 380px; }
  .wk-card .t { font-size: clamp(22px, 3.4vw, 30px); }
}
@media (max-width: 680px) {
  .wk-hero-in { grid-template-columns: 1fr; align-items: start; }
  .wk-hero-meta { align-items: flex-start; text-align: left; }
  .wk-grid { grid-template-columns: 1fr; }
  .wk-grid > * { grid-column: span 1 !important; }
  .wk-card, .wk-card.is-tall { min-height: 420px; }
  .wk-mini { grid-template-columns: auto 96px 1fr; }
  .wk-mini .mthumb { width: 96px; height: 72px; }
  .wk-mini .mside { display: none; }
}
