/* Works: one screen, six tiles (3 x 2), one project per tile, like the original Workspace grid.
   The orange tile is the hub (who I am + links). Fonts: Oswald / Barlow / Barlow Semi Condensed. */
.wk { margin: 0; background: #000; color: #fff; font-family: var(--f-body); overflow-x: hidden; }
.wk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr));
           height: 100vh; height: 100svh; min-height: 560px; }

/* ---------- Hub tile ---------- */
.cs .wk-hub { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: clamp(22px, 3vw, 40px);
          background: var(--cs-orange); color: #000; }
.wk-hub-name { margin: 0; font-family: var(--f-display); font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; letter-spacing: .3px; text-transform: uppercase; line-height: 1.1; }
.wk-hub-name small { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 14px; font-weight: 600; letter-spacing: 1.5px; opacity: .7; }
.wk-hub nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.wk-hub nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 2px solid rgba(0, 0, 0, .85);
                color: #000; text-decoration: none; font-family: var(--f-mono); font-size: 15px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.wk-hub nav a::after { content: "\2192"; transition: transform .2s; }
.wk-hub nav a:hover::after, .wk-hub nav a:focus-visible::after { transform: translateX(5px); }
.wk-hub nav a:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

/* ---------- Project tiles ---------- */
.wk-tile { --c: var(--cs-orange); position: relative; overflow: hidden; display: block; color: #fff; text-decoration: none; background: #111; }
.wk-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.wk-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .55) 38%, rgba(0, 0, 0, 0) 66%);
                  transition: background-color .3s; }
.wk-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: clamp(16px, 1.8vw, 26px); }
.wk-type { font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--c); }
.wk-name { margin: 0; font-family: var(--f-display); font-size: clamp(24px, 2.1vw, 32px); font-weight: 600; line-height: 1.08; letter-spacing: .3px; text-wrap: balance; }
.wk-role { font-size: 15.5px; line-height: 1.4; color: rgba(255, 255, 255, .88); }
.wk-role b { font-weight: 600; color: #fff; }
/* Extra detail slides in on hover / keyboard focus (always shown on touch screens) */
.wk-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .7, .2, 1); }
.wk-more > div { overflow: hidden; }
.wk-more p { margin: 8px 0 6px; max-width: 46ch; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.wk-more .wk-win { display: inline-block; margin-bottom: 4px; font-size: 14.5px; color: #fff; }
.wk-more .wk-win b { font-family: var(--f-display); font-weight: 600; color: var(--c); }
.wk-go { display: inline-block; margin-top: 6px; font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c); }
.wk-tile:hover img, .wk-tile:focus-visible img { transform: scale(1.05); filter: brightness(.55); }
.wk-tile:hover .wk-more, .wk-tile:focus-visible .wk-more { grid-template-rows: 1fr; }
.wk-tile:focus-visible { outline: 3px solid var(--c); outline-offset: -3px; }
.wk-tile + .wk-tile, .wk-hub + .wk-tile { box-shadow: inset 1px 0 0 #000; }

.wk-tile--ms img { object-position: 50% 45%; }

.wk-tile:nth-of-type(2) { --c: var(--cs-orange); }
.wk-tile:nth-of-type(3) { --c: #a3e05a; }
.wk-tile:nth-of-type(4) { --c: #ff5c8a; }
.wk-tile:nth-of-type(5) { --c: #ff6b5a; }
.wk-tile:nth-of-type(6) { --c: #7fd6dd; }

.wk-tile--ne img { object-position: 55% 25%; }

/* ---------- iPad / touch screens 768px+ : same one-screen grid, details always visible ---------- */
@media (hover: none) and (min-width: 768px) {
  .wk-more p { display: none; }
  .wk-more { grid-template-rows: 1fr; }
  .wk-tile::after { background: linear-gradient(to top, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .6) 42%, rgba(0, 0, 0, 0) 72%); }
}
/* Portrait tablets: 2 columns x 3 rows, still one screen */
@media (min-width: 768px) and (max-width: 1100px) and (orientation: portrait) {
  .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); min-height: 900px; }
}
/* Narrow desktop windows (mouse, not portrait tablet): two columns, scrolls */
@media (hover: hover) and (max-width: 991px) {
  .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(340px, 46vh); height: auto; }
}

/* ---------- Phones ---------- */
@media screen and (max-width: 767px) {
  .wk-grid { display: flex; flex-direction: column; gap: 10px; height: auto; min-height: 0; padding: 10px; }
  .cs .wk-hub { gap: 16px; padding: 22px 20px 20px; border-radius: 4px; }
  .wk-hub-name { font-size: 26px; }
      .wk-hub nav { gap: 0 16px; }
  .wk-hub nav a { font-size: 14px; padding: 11px 0; }
  .wk-tile { aspect-ratio: 4 / 3; min-height: 250px; border-radius: 4px; box-shadow: none !important; }
  .wk-tile + .wk-tile, .wk-hub + .wk-tile { box-shadow: none; }
  .wk-tile::after { background: linear-gradient(to top, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .78) 48%, rgba(0, 0, 0, .1) 82%); }
  .wk-info { padding: 16px 16px 18px; gap: 3px; }
  .wk-name { font-size: 25px; }
  .wk-role { font-size: 14.5px; }
  .wk-more { grid-template-rows: 1fr; }
  .wk-more p { display: none; }
  .wk-more .wk-win { margin: 6px 0 0; font-size: 14px; }
  .wk-go { display: none; }
  .wk-info::after { content: "\2192"; position: absolute; right: 16px; bottom: 18px; font-size: 22px; color: var(--c); }
  .wk-tile:active img { filter: brightness(.7); }
}
@media (prefers-reduced-motion: reduce) {
  .wk * { transition: none !important; }
}
