/* Homepage work section (A132): stacking project cards. Since A144 they scroll as on Amotax: every card pins at the same
   height under the menu, so the next one slides up and covers the one before it completely (no shrink, no stack edges;
   the Froxen stack is in archive/home-work-shrink-stack-2026-11-07/). Card: the project's wide device
   photo edge to edge, a dark panel along the bottom with the name, our one-line description, Pine pills for what we built,
   and the industry. Written in the new system (DESIGN.md) because the homepage keeps its own older tokens until batch 2. */
.hw { --hw-accent: var(--accent); --hw-line: #2d2d38; --hw-nav: 84px; }
/* The head, centred as on Froxen: the name alone (styles: the homepage's shared .sec-head in index.html, A137). As on
   Froxen, no line under it; the "View all work" button sits under the last card (.hw-cta). */
.hw-title { font: 800 var(--home-h2)/.98 "Sofia Sans Extra Condensed", "Satoshi", sans-serif !important; text-transform: uppercase; }
#work .hw-head { flex-direction: column; align-items: center; text-align: center; }
/* "Our ✱ work" (A138, after Amotax's "Case ✱ Studies"; Ryan picked the star): our eyebrow star in Pine between the
   words, turning once every 10 seconds (Amotax's speed), still with reduced motion. */
#work .hw-star { display: inline-block; width: .74em; height: .74em; margin: 0 .1em; vertical-align: -.02em; color: var(--hw-accent); }   /* #work: type.css turns heading spans white */
.hw-star svg { display: block; width: 100%; height: 100%; animation: hw-spin 10s linear infinite; }
@keyframes hw-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .hw-star svg { animation: none; } }

.hw-list { display: grid; gap: clamp(40px, 5vw, 72px); margin: 0; padding: 0; list-style: none; }
/* every card pins at the same height, so the one after it covers it exactly; the last one scrolls on with the page */
.hw-item { position: sticky; top: calc(var(--hw-nav) + 16px); }
.hw-item:last-child { position: relative; top: auto; }
.hw-card { position: relative; display: block; height: min(720px, calc(100svh - var(--hw-nav) - 120px)); min-height: 460px; overflow: hidden;
  border: 1px solid var(--hw-line); border-radius: 24px; background: #0c0c0f; box-shadow: 0 50px 100px -45px rgb(0 0 0 / .95); color: #fff; }
.hw-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.hw-card:hover .hw-img { transform: scale(1.03); }
.hw-card:focus-visible { outline: 2px solid var(--hw-accent); outline-offset: 4px; }

/* The panel: name, line and pills on the left; the industry and an arrow on the right */
.hw-panel { position: absolute; left: 32px; right: 32px; bottom: 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px;
  padding: 24px 32px; border: 1px solid rgb(255 255 255 / .14); border-radius: 24px; background: rgb(12 12 16 / .82);
  box-shadow: 0 26px 64px -30px rgb(0 0 0 / .9), inset 0 1px 0 rgb(255 255 255 / .12); }
.hw-lead { min-width: 0; }
.hw-name { margin: 0; color: #fff; font: 800 clamp(36px, 4.2vw, 60px)/1 "Sofia Sans Extra Condensed", "Satoshi", sans-serif !important;
  letter-spacing: .02em; text-transform: uppercase; }
.hw-line { max-width: 52ch; margin: 10px 0 0; color: #b8b8c2; font: 400 16px/1.55 Inter, system-ui, sans-serif; }
.hw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.hw-tags li { padding: 8px 16px; border: 1px solid rgb(158 240 79 / .5); border-radius: 999px; background: rgb(158 240 79 / .12); color: var(--detail);
  font: 600 12px/1.2 Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.hw-side { display: flex; flex: none; align-items: flex-end; gap: 32px; }
.hw-spec { margin: 0; }
.hw-spec dt { color: #fff; font: 600 12px/1.4 Inter, system-ui, sans-serif; letter-spacing: .125em; text-transform: uppercase; }
.hw-spec dd { margin: 6px 0 0; color: var(--detail); font: 500 16px/1.3 Inter, system-ui, sans-serif; white-space: nowrap; }
.hw-go { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border: 1px solid rgb(158 240 79 / .5); border-radius: 50%; color: var(--detail);
  transition: background-color .3s, color .3s; }
.hw-go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.hw-card:hover .hw-go { background: var(--detail); color: #0b0b0d; }
.hw-card:hover .hw-go svg { transform: translateX(2px); }

.hw-cta { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
/* the new system's button (the homepage's other buttons follow in batch 2) */
.hw .roll { --b-ink: var(--on-accent); --b-acc: #fff; --b-on: #0b0b0d; background: var(--hw-accent); color: var(--on-accent); box-shadow: none;
  font: 700 13px/1 Inter, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 900px) {
  .hw-panel { flex-direction: column; align-items: stretch; left: 16px; right: 16px; bottom: 16px; padding: 20px; }
  .hw-side { justify-content: space-between; }
}
/* Phones: the panel would cover the whole photo, so the card stacks instead, text first and the site photo under it
   (WEBSITE-RULES 11). The card itself is the frame, so the panel drops its own border and fill. */
@media (max-width: 600px) {
  .hw-card { display: flex; flex-direction: column; height: min(600px, calc(100svh - 112px)); min-height: 500px; }
  .hw-panel { position: static; order: -1; flex: none; gap: 20px; padding: 24px 20px 20px; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .hw-img { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; height: auto; }
  .hw-line { font-size: 15px; }
  .hw-item { top: calc(var(--hw-nav) - 12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hw-img, .hw-go, .hw-go svg { transition: none; }
  .hw-card:hover .hw-img { transform: none; }
}
