/* our-work.css: the Our work page's own placing and sizing. Components and tokens come from design\.
   The header's glass browser card stays on the porch photo's calm side (the railing and the garden), clear of her face
   and of the tablet at every width; the sites never sit on the tablet's screen. */

/* ---------- 1. the header ---------- */
.workhead { display: grid; }
/* up to 1279 px: the porch as a band, the card at its lower left; the words and the box under it on night */
.workhead__media { position: relative; height: 520px; overflow: hidden; background: var(--c-night-3); }
.workhead__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 0% 40%; }
.workhead__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 15, 0) 62%, var(--c-night) 100%); }
.workhead__stage { position: absolute; left: 0; right: 0; top: 0; height: 520px; z-index: 2; pointer-events: none; }
.workhead__scene { position: absolute; left: max(20px, calc((100% - var(--max-w)) / 2)); bottom: 40px; width: min(300px, calc(100% - 40px)); }
.workhead__stage .stop { pointer-events: auto; top: 14px; right: 14px; bottom: auto; }
.workhead__in { position: relative; z-index: 3; width: 100%; box-sizing: border-box; padding-block: 8px 48px; }
.workhead__copy { display: grid; gap: 16px; max-width: 560px; }
.workhead .phead__line { margin-top: 0; }
/* a phone: her face at the top right, the card across the band's foot */
@media (max-width: 759px) {
  .workhead__media, .workhead__stage { height: 440px; }
  .workhead__photo { object-position: 52% 30%; }
  .workhead__scene { left: 12px; right: 12px; bottom: 16px; width: auto; max-width: 400px; }
}
@media (min-width: 1000px) and (max-width: 1279px) { .workhead__scene { width: 330px; } }
/* from 1280 px: the words and the box on night at the left, the porch across the right two thirds */
@media (min-width: 1280px) {
  .workhead { min-height: calc(100svh - var(--header-h)); grid-template-columns: calc(max(var(--gutter), (100vw - var(--max-w)) / 2) + 520px) minmax(0, 1fr); }
  .workhead__media { grid-column: 2; grid-row: 1; height: auto; }
  .workhead__photo { object-position: 48% 40%; }
  .workhead__media::after { background: linear-gradient(90deg, var(--c-night) 0%, rgba(13, 13, 15, 0.55) 7%, rgba(13, 13, 15, 0) 22%); }
  .workhead__stage { grid-column: 2; grid-row: 1; position: relative; height: auto; }
  /* over the railing, above the tablet's top edge (about half way down), clear of her face at the right */
  .workhead__scene { left: 28px; bottom: auto; top: 12%; width: min(330px, 36%); }
  .workhead__stage .stop { top: auto; bottom: 18px; right: 40px; }
  .workhead__in { grid-column: 1; grid-row: 1; display: grid; align-content: center; padding: clamp(16px, 3vh, 40px) 32px clamp(16px, 3vh, 40px) max(var(--gutter), calc((100vw - var(--max-w)) / 2)); }
  .workhead__copy { gap: 14px; }
  .workhead .phead__title { font-size: min(clamp(2.5rem, 1.4rem + 2.6vw, 4rem), 6.4vh); }
}

/* ---------- 2. the gallery ---------- */
.gal__head { margin-bottom: 24px; }
.gal__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.gal__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--c-card); color: var(--c-ink); font: 700 0.9375rem/1 var(--font-ui); box-shadow: inset 0 0 0 1.5px var(--c-line); cursor: pointer; }
.gal__chip span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box; border-radius: 99px; background: var(--c-paper-alt); font-size: 0.8125rem; }
.gal__chip:hover { box-shadow: inset 0 0 0 1.5px var(--c-brand); }
.gal__chip:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.gal__chip[aria-pressed="true"] { background: var(--c-night); color: #fff; box-shadow: none; }
.gal__chip[aria-pressed="true"] span { background: var(--grad-x); color: var(--c-on-brand); }
.gal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 999px) { .gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .gal__grid { grid-template-columns: minmax(0, 1fr); } }
.gc { display: grid; gap: 4px; }
.gc[hidden] { display: none; }
.gc__win { overflow: hidden; margin-bottom: 10px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-m), 0 0 0 1px var(--c-line); transition: box-shadow var(--dur-fast), transform var(--dur-fast); }
.gc__bar { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; background: #ECE6DB; }
.gc__bar i { width: 7px; height: 7px; border-radius: 50%; background: #CFC6B6; }
/* each shot is the site's first screen (2:1), shown whole; hover leans into it */
.gc__view { position: relative; aspect-ratio: 2 / 1; overflow: hidden; }
.gc__shot { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0%; transform-origin: 50% 0%; transition: transform 2.6s cubic-bezier(0.45, 0, 0.25, 1); }
.gc:hover .gc__win { transform: translateY(-3px); box-shadow: var(--shadow-l), 0 0 0 2px var(--c-brand); }
.gc:hover .gc__shot { transform: scale(1.12); }
@keyframes gc-glance { 0% { transform: none; } 50% { transform: scale(1.12); } 100% { transform: none; } }
.gc.is-glance .gc__shot { animation: gc-glance 3s cubic-bezier(0.45, 0, 0.25, 1) 1; }
.gc__name { margin: 0; font: 800 1.125rem/1.25 var(--font-display); }
.gc__kind { margin: 0; font-size: var(--fs-small); color: var(--c-ink-soft); }
@media (prefers-reduced-motion: reduce) { .gc__shot { transition: none; } .gc.is-glance .gc__shot { animation: none; } }

/* ---------- 3. WV Tractor: the site and the case on the designed ground ---------- */
.wcase { --ground-x: 85%; --ground-y: 100%; }
.wcase__stage { position: relative; padding-top: 48px; }
.wcase__stage > .stop { top: 0; right: 0; bottom: auto; }
/* on the phone the stop sits on the site's frame, under the bar, so the stop and its picture share the first view */
@media (max-width: 999px) { .wcase__stage { padding-top: 0; } .wcase__stage > .stop { top: 44px; right: 10px; } }
.wcase__in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) { .wcase__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } }
.cl-win { overflow: hidden; border-radius: 16px; background: #fff; box-shadow: var(--shadow-night), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.cl-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #ECE6DB; }
.cl-bar i { width: 8px; height: 8px; border-radius: 50%; background: #CFC6B6; }
.cl-bar em { margin-left: 10px; font: 700 13px/1.4 var(--font-ui); font-style: normal; color: var(--c-ink-soft); white-space: nowrap; }
.cl-view { position: relative; aspect-ratio: 2 / 1; overflow: hidden; }
.cl-shot { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0%; transform-origin: 30% 0%; }
.cl-tag { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 9px; border-radius: 99px; background: rgba(13, 13, 15, 0.84); color: #fff; font: 700 14px/1 var(--font-ui); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.8); opacity: var(--cl-tag, 1); transform: translateY(calc(10px - 10px * var(--cl-tag, 1))); }
.cl-tag .x { width: 18px; height: 18px; border-radius: 5px; transform: scale(calc(0.5 + 0.5 * var(--cl-tag, 1))); }
.cl-lines { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.cl-line { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.cl-dot { display: grid; place-items: center; width: 40px; height: 40px; }
.cl-dot .x { width: 26px; height: 26px; border-radius: 7px; opacity: var(--cl, 1); transform: scale(calc(0.4 + 0.6 * var(--cl, 1))) rotate(calc(-24deg + 24deg * var(--cl, 1))); }
.cl-line > div { opacity: calc(0.4 + 0.6 * var(--cl, 1)); }
.cl-k { margin: 0 0 6px; font: 800 0.9375rem/1.2 var(--font-ui); color: var(--c-accent); }
.cl-v { margin: 0; font-size: 1.125rem; line-height: 1.5; color: #fff; }

/* ---------- 4. the close: the boutique framed at the left, its words on the frame's lower wash; the box at the right ---------- */
.workclose__in { display: grid; gap: 28px; align-items: center; }
.workclose__frame { position: relative; overflow: hidden; display: grid; align-items: end; min-height: 560px; border-radius: var(--radius-xl); background: var(--c-night-3); box-shadow: var(--shadow-night); }
.workclose__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 45% 15%; }
.workclose__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 15, 0) 40%, rgba(13, 13, 15, 0.82) 72%, rgba(13, 13, 15, 0.95) 100%); }
.workclose__words { position: relative; z-index: 1; display: grid; gap: 12px; padding: 28px clamp(22px, 3vw, 40px) clamp(24px, 3vw, 40px); }
.workclose__side { display: grid; gap: 22px; }
@media (min-width: 1000px) {
  .workclose__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
  .workclose__frame { min-height: 640px; }
}
