/* Shared project cards: Home links to Portfolio; Portfolio cards show the work. */
.home-work-showcase { background: #f8faff; }
.home-work-showcase .home-section-heading { max-width: 740px; margin-bottom: 2rem; }
.home-work-showcase .home-section-heading h2 { margin: 0 0 1.25rem; font-size: clamp(2rem, 3.7vw, 3.2rem); font-weight: 750; line-height: 1.12; letter-spacing: -.05em; color: var(--navy); }
.home-work-showcase .home-section-heading h2 > span:not(.word-token),
.home-work-showcase .home-section-heading h2 > span:not(.word-token) .word-ink { background-image: var(--primary-gradient) !important; background-clip: text !important; -webkit-background-clip: text !important; color: transparent; -webkit-text-fill-color: transparent; }
.home-work-showcase .home-section-heading > p { max-width: 630px; margin-bottom: 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.home-work-actions { display: flex; justify-content: center; margin-top: 2rem; }
.home-work-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; }
.home-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.home-work-card {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(380px, 35vw, 500px);
  border: 1px solid #dde3ee;
  border-radius: 22px;
  background: linear-gradient(145deg, #e9edf4, #f7f9fc 65%, #edeaf7);
  color: var(--navy);
  box-shadow: 0 10px 24px #34496908;
}
.home-work-card:nth-child(3n+2) { background: linear-gradient(145deg, #eef0fa, #fafcff 60%, #e7eef9); }
.home-work-card::after {
  content: '';
  position: absolute;
  inset: 55% 0 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, #f6f8fc 12%, #f6f8fcd9 45%, transparent);
}
.work-devices { position: absolute; inset: 7% 6% 18%; filter: grayscale(1); transition: filter .5s ease; }
.work-project-image { inset: 0 0 12%; }
.work-project-image > img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.work-store-preview { inset: 5% 5% 20%; overflow: hidden; border: 1px solid #dde3ee; border-radius: 10px; background: #fff; }
.work-store-preview > img { object-fit: cover; object-position: top; mix-blend-mode: normal; }
.home-work-card:hover .work-devices,
.home-work-card:focus-visible .work-devices { filter: grayscale(0); }
.work-laptop { position: absolute; width: 82%; height: 77%; top: 1%; left: 0; padding: 9px; border: 1px solid #4d5362; border-radius: 12px 12px 4px 4px; background: #252b36; box-shadow: 0 10px 24px #20314f28; }
.work-laptop::after { content: ''; position: absolute; left: -6%; right: -6%; bottom: -11px; height: 12px; border-radius: 2px 2px 50% 50%; background: linear-gradient(#b4bdcd, #e5e9f1 55%, #9da8b9); box-shadow: 0 5px 8px #20314f16; }
.work-tablet { position: absolute; z-index: 2; width: 35%; height: 69%; right: 0; bottom: 0; padding: 8px; border: 1px solid #505868; border-radius: 18px; background: #262c36; box-shadow: 0 10px 20px #1b2b4735; }
.work-phone { position: absolute; z-index: 3; width: 20%; height: 55%; right: 29%; bottom: -2%; padding: 5px; border: 1px solid #515c6d; border-radius: 16px; background: #252b36; box-shadow: 0 8px 18px #1b2b4738; }
.work-phone::before { content: ''; position: absolute; z-index: 2; top: 7px; left: 35%; right: 35%; height: 5px; border-radius: 999px; background: #252b36; }
.work-screen { height: 100%; width: 100%; overflow: hidden; border-radius: inherit; background: #fff; }
.work-screen img { display: block; width: 100%; height: auto; }
.home-work-caption { position: absolute; z-index: 2; bottom: 26px; left: 28px; right: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.home-work-caption > div { min-width: 0; }
.home-work-meta { display: block; margin-bottom: 9px; color: var(--purple-dark); font-size: .65rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; line-height: 1.5; }
.home-work-caption h3 { margin: 0; color: var(--navy); font-size: clamp(1.5rem, 2.3vw, 2rem); letter-spacing: -.04em; font-weight: 800; line-height: 1.2; }
.home-work-arrow { display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 54px; border: 1px solid #c9c5ed; border-radius: 50%; background: #ffffffb3; color: var(--purple-dark); font-size: 1.15rem; transition: color .25s ease, background .25s ease; }
.home-work-arrow i { transform: rotate(0); transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.home-work-card:hover .home-work-arrow,
.home-work-card:focus-visible .home-work-arrow { background: var(--primary-gradient); color: #fff; border-color: transparent; }
.home-work-card:hover .home-work-arrow i,
.home-work-card:focus-visible .home-work-arrow i { transform: rotate(90deg); }
.home-work-card:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
@media (max-width: 991.98px) {
  .home-work-grid { gap: 22px; }
  .home-work-card { height: 350px; }
  .home-work-caption { left: 20px; right: 20px; bottom: 20px; gap: 12px; }
  .home-work-caption h3 { font-size: 1.4rem; }
  .home-work-arrow { flex-basis: 46px; width: 46px; height: 46px; }
  .work-laptop { padding: 7px; }
  .work-tablet { padding: 6px; }
}
@media (max-width: 575.98px) {
  .home-work-actions .btn { width: 100%; max-width: 320px; }
  .home-work-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .home-work-card { height: clamp(330px, 93vw, 410px); border-radius: 18px; }
  .home-work-meta { font-size: .59rem; letter-spacing: .06em; }
  .home-work-caption h3 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .work-devices, .home-work-arrow, .home-work-arrow i { transition: none; }
}
