/* Work index page (/work/, /ja/work/) — shared EN + JA. Also
   reused by journal.css for the Journal index hero (.work-hero /
   .work-hero-title / .work-hero-intro) and by tools.css's Tools page,
   which mirrors .work-hero-title's spec independently rather than
   sharing this file.

   Tokenized against Figma node 141:607 ("Work" — legacy name, matches
   current /work/ page). Every value here either already matched an
   existing token exactly or corrected to one exactly — no new tokens
   needed. See the session's audit notes for corrections and the one
   flagged conflict (hero title tracking). */

.work-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 120px clamp(20px, 8vw, var(--space-huge)); /* vertical corrected 100px -> 120px per Figma; no scale match, left as literal */
  text-align: center;
}

.work-hero-title {
  font-size: var(--font-size-display);
  font-weight: var(--weight-black);
  letter-spacing: -2px; /* RESOLVED: confirmed correct as -2px, independently matched by tools.css's hero title. Figma's -1px binding on this layer uses a variable also named "tracking-eyebrow" but is unrelated to the real --tracking-eyebrow token — stale/mislabeled on this specific layer, not a real correction. */
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-accent);
}

.work-hero-intro {
  font-size: var(--font-size-body-md);
  line-height: var(--line-height-body);
  max-width: 559px;
  color: var(--text-primary);
}

.work-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-bottom: var(--space-huge);
}

.work-row {
  display: flex;
  gap: var(--space-xxxl); /* corrected 76px -> 60px per Figma */
  width: 100%;
  padding: var(--space-xxl) clamp(20px, 6vw, var(--space-xxxl)) var(--space-lg); /* top corrected 64px -> 48px per Figma */
}

.work-row:first-child {
  padding-top: 0;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1 0 0;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

/* Image hover zoom — matches the homepage Featured Work grid
   (.featured-work-image/img, styles.css): 4% scale, ease-out on
   hover-in, ease-in on hover-out (the destination state's own
   transition governs each direction). Needs its own overflow:hidden
   wrapper since the img can't clip its own enlarged render. */
.work-card-image-wrap {
  width: 100%;
  aspect-ratio: 2000 / 1307;
  overflow: hidden;
}

.work-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.4s ease-in;
}

.work-card:hover .work-card-image {
  transform: scale(1.04);
  transition: transform 0.4s ease-out;
}

.work-card-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.work-card-title {
  font-size: var(--font-size-heading-2);
  font-weight: var(--weight-black);
  line-height: var(--line-height-heading-large);
  letter-spacing: 0;
  color: var(--text-primary);
}

.work-card-subtitle {
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-heading);
  color: var(--text-primary);
  font-weight: var(--weight-regular);
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
}

.work-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--space-12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
}

.work-card-tag-label {
  font-size: var(--font-size-label-medium);
  font-weight: var(--weight-medium);
  line-height: var(--line-height-label);
  color: var(--text-primary);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .work-card-image {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .work-row {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .work-hero-title {
    font-size: 48px;
    letter-spacing: -1.92px;
  }
}

@media (max-width: 480px) {
  .work-hero-title {
    font-size: 40px;
    letter-spacing: -1.6px;
  }
}
