/* ============================================================
   Work — page styles (works-default.html)
   Only the hero is page-specific. The project grid and the closing
   "Let's build something better" section reuse the home-page markup
   and styles unchanged.
   ============================================================ */

/* ------ Hero: full-bleed liquid-metal video (dark in both themes) ------ */
.wk-hero { position: relative; overflow: hidden; isolation: isolate; min-height: 88svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 4rem; }
.wk-hero > .mxd-container { position: relative; z-index: 1; width: 100%; }
.wk-hero__bg { position: absolute; inset: 0; z-index: 0; background: #0a0a0a; }
.wk-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
/* Keeps the white type readable over the brightest parts of the metal */
.wk-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.55) 0%, rgba(15, 15, 15, 0.1) 35%, rgba(15, 15, 15, 0.35) 65%, rgba(15, 15, 15, 0.92) 100%),
    linear-gradient(90deg, rgba(15, 15, 15, 0.6) 0%, rgba(15, 15, 15, 0) 60%);
}
.wk-hero__row { align-items: flex-end; }
.wk-eyebrow {
  margin: 0 0 2.4rem;
  color: rgba(255, 255, 255, 0.72);
  font: normal 600 1.3rem/1 var(--_font-accent);
  text-transform: uppercase; letter-spacing: 0.08rem;
}
.wk-eyebrow span { color: #fff; }
.wk-hero__title {
  margin: 0; max-width: 17ch;
  color: #fff;
  font: normal 500 clamp(4rem, 5.6vw, 8.4rem)/1.1 var(--_font-default);
  letter-spacing: -0.1rem;
}
.wk-hero__title .line { padding-bottom: 0.12em; margin-bottom: -0.12em; }
.wk-hero__aside { margin-top: 3rem; }
@media only screen and (min-width: 1200px) { .wk-hero__aside { margin: 0 0 0.8rem auto; max-width: 40rem; } }
.wk-hero__intro { margin: 0; color: rgba(255, 255, 255, 0.78); font: normal 400 1.6rem/1.6 var(--_font-default); }
.wk-capline { display: flex; flex-wrap: wrap; gap: 0.3rem 0; margin: 2rem 0 0; padding: 0; list-style: none; color: #fff; font: normal 600 1.2rem/1.8 var(--_font-accent); text-transform: uppercase; }
.wk-capline li:not(:last-child)::after { content: "\00B7"; padding: 0 0.8rem; color: rgba(255, 255, 255, 0.6); }
.wk-hero__down {
  display: inline-flex; align-items: center; gap: 1rem;
  margin-top: 4.8rem; padding: 1rem 0;
  color: #fff; text-decoration: none;
  font: normal 600 1.3rem/1 var(--_font-accent); text-transform: uppercase;
}
.wk-hero__down svg { width: 1.2rem; height: 1.2rem; fill: currentColor; transition: transform 0.4s cubic-bezier(.23, .65, .74, 1.09); }
.wk-hero__down:hover svg, .wk-hero__down:focus-visible svg { transform: translateY(3px); }
.wk-hero__down:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.wk-projects { position: relative; }

/* ------ "Let's build something better": inverted against the page theme (Luis asked)
   Night: light panel, black text.  Day: dark panel, white text.  No blend mode. ------ */
.wk-page .cursor-trail-transparent { background-color: #eeeae8; }
:root[color-scheme="light"] .wk-page .cursor-trail-transparent { background-color: #0f0f0f; }
.wk-page .cursor-trail-transparent .mxd-divider-xl__caption.difference,
.wk-page .cursor-trail-transparent .mxd-divider-xl__btngroup.difference { mix-blend-mode: normal; }
.wk-page .cursor-trail-transparent .mxd-divider-xl__caption h2,
.wk-page .cursor-trail-transparent .mxd-divider-xl__caption h2 .line,
.wk-page .cursor-trail-transparent .btn-line-permanent,
.wk-page .cursor-trail-transparent .btn-line-permanent .btn-caption { color: #000; }
.wk-page .cursor-trail-transparent .btn-line-permanent svg { fill: #000; }
:root[color-scheme="light"] .wk-page .cursor-trail-transparent .mxd-divider-xl__caption h2,
:root[color-scheme="light"] .wk-page .cursor-trail-transparent .mxd-divider-xl__caption h2 .line,
:root[color-scheme="light"] .wk-page .cursor-trail-transparent .btn-line-permanent,
:root[color-scheme="light"] .wk-page .cursor-trail-transparent .btn-line-permanent .btn-caption { color: #fff; }
:root[color-scheme="light"] .wk-page .cursor-trail-transparent .btn-line-permanent svg { fill: #fff; }
/* Split-line masks were clipping the "g" in "something" */
.wk-page .cursor-trail-transparent .mxd-divider-xl__caption h2 .line { padding-bottom: 0.14em; margin-bottom: -0.14em; }

@media (prefers-reduced-motion: reduce) {
  .wk-hero__down svg { transition: none; }
}
