/* The work page. A dark screening room: the posts carry their own colour, so a near-black
   stage lets them glow. Same fonts, bar, buttons and footer as the rest of the site (site.css). */
body.work {
  --stage: #0b0c0e;
  --stage-2: #131519;
  --stage-3: #1b1e23;
  --edge: #2a2d34;
  --text: #f3f1ea;
  --text-2: #a9a69e;
  background: var(--stage); color: var(--text);
  overflow-x: clip;
}
.work a { color: #ffd2c4; }
.work .bar { border-bottom-color: #1f2227; background: var(--stage); position: relative; z-index: 3; }
.work .bar .logo { color: var(--text); }
.work .bar a.small { color: #ffd2c4; }
.work .kicker { color: #ff9f80; }
.work .lede { color: #cfccc3; }
.work section + section { border-top: 0; }
.work footer { border-top-color: #1f2227; color: var(--text-2); }
.work .cta .under { color: var(--text-2); }
.work .btn:focus-visible { outline-color: var(--text); }
.w-in { max-width: 1480px; margin: 0 auto; padding: 0 16px; }
.w-h2 { color: var(--text); }
.w-sub { color: var(--text-2); max-width: 40em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero: the words on the left, one post playing on the right ---------- */
.w-hero { position: relative; padding: 36px 0 40px; overflow: clip; isolation: isolate; }
.w-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 560px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 25% 30%, rgba(226, 84, 44, .22), transparent 70%),
              radial-gradient(50% 60% at 80% 20%, rgba(14, 77, 69, .55), transparent 70%);
}
.w-hero-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .w-hero-in { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; } }
.w-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 60px); line-height: 1.03; letter-spacing: -0.03em; }
.w-hero h1 em { font-style: italic; color: #ff7a52; }
.w-hero .lede { font-size: clamp(18px, 1.8vw, 21px); }
.w-hero .cta { margin-top: 22px; }
.w-diff { font-size: 18px; color: #d6d3ca; border-left: 3px solid #ff7a52; padding: 2px 0 2px 14px; max-width: 34em; }
.w-diff b { color: #fff; }
.w-count { margin: 16px 0 0; font: 600 14px/1.4 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.w-count b { color: var(--text); }

.w-feature { justify-self: center; text-align: center; }
.w-feature[hidden] { display: none; }
.w-frame {
  --glow: rgba(255, 122, 82, .35);
  position: relative; display: block; height: min(64vh, 560px); max-width: 100%; padding: 0; border: 0; cursor: pointer;
  border-radius: 22px; overflow: hidden; background: var(--stage-3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 90px -20px var(--glow);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 959px) { .w-frame { height: min(52vh, 460px); } }
.w-frame:hover { transform: translateY(-3px); }
.w-frame:focus-visible { outline: 2px solid #ff9f80; outline-offset: 4px; }
.w-frame img, .w-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w-frame video { opacity: 0; transition: opacity .4s ease; }
.w-frame video.on { opacity: 1; }
.w-frame-tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; gap: 6px; align-items: center;
  font: 600 13px/1 var(--body); padding: 8px 11px; border-radius: 999px; background: rgba(246, 243, 236, .94); color: var(--ink);
}
.w-frame-tag svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.w-frame-tag svg path:first-child { fill: currentColor; stroke: none; }
.w-frame-cap { margin: 12px 0 0; font-size: 14px; color: var(--text-2); }
.w-frame-cap b { color: var(--text); font-weight: 600; }

/* ---------- The industry bar: stays under the top while the sections scroll ---------- */
.w-filterbar {
  position: sticky; top: 0; z-index: 5; padding: 10px 0 8px; border-top: 1px solid #1f2227;
  background: rgba(11, 12, 14, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1f2227;
}
.w-filterbar .w-in { display: grid; gap: 6px; }
.w-row { display: flex; gap: 10px; align-items: center; min-width: 0; }
.w-label { font: 600 11px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); flex: none; width: 76px; }
.w-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.w-row .w-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 16px 2px 2px; }
.w-row .w-pills::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .w-row:first-child .w-pills { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 639px) { .w-label { width: 54px; font-size: 10px; } }
.w-pill {
  font: 500 14px/1 var(--body); padding: 8px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; flex: none;
  background: var(--stage-2); color: var(--text); border: 1px solid var(--edge);
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.w-pill.g { font-weight: 650; }
.w-pill.t { border-style: dashed; }
.w-pill:hover { border-color: #4a4e57; }
.w-pill:focus-visible { outline: 2px solid #ff9f80; outline-offset: 2px; }
.w-pill[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.w-pill[hidden] { display: none; }
.w-pill i { font-style: normal; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.w-pill[aria-pressed="true"] i { color: #5b5f66; }
.w-pill img { width: 22px; height: 22px; border-radius: 6px; }

.w-note { color: var(--text-2); font-size: 15px; margin: 0 0 16px; }
.w-note[hidden] { display: none; }
.w-empty { text-align: center; padding: 40px 0; color: var(--text-2); }

/* ---------- The gallery: every post at once, true shapes. work.js deals tiles into columns. ---------- */
.w-stage { padding: 28px 0 56px; border-top: 1px solid #1f2227; }
.w-stage > .w-in:first-child .w-h2 { margin-bottom: 12px; }
.w-stage .w-filterbar { margin-bottom: 18px; }
#w-gallery { max-width: 1480px; }
.w-grid { display: flex; gap: 12px; align-items: flex-start; margin: 0 auto; }
.w-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 700px) { .w-grid { gap: 18px; } .w-col { gap: 22px; } }
.w-col .tile { width: 100%; }
.w-col .t-media { height: auto; width: 100%; max-width: none; }
.w-morewrap { text-align: center; }
.w-more { margin: 28px auto 0; }
.w-more[hidden] { display: none; }

.w-arrow {
  position: relative; z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid #3a3e46; background: rgba(27, 30, 35, .92); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: opacity .2s ease, background .15s ease;
}
.w-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.w-arrow:hover { background: #2a2e35; }
.w-arrow:focus-visible { outline: 2px solid #ff9f80; outline-offset: 2px; }
.w-arrow[disabled] { opacity: 0; pointer-events: none; }
.w-arrow[hidden] { display: none; }

/* ---------- A tile ---------- */
.tile { position: relative; min-width: 0; }
.t-media {
  --glow: rgba(255, 255, 255, .12);
  position: relative; height: var(--h); width: auto; max-width: calc(100vw - 32px);
  border-radius: 14px; overflow: hidden; background: var(--stage-3); cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 14px 40px -18px var(--glow);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
.t-media img, .t-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.t-media > img, .t-media > video { position: absolute; inset: 0; }
.t-media video { opacity: 0; transition: opacity .35s ease; }
.t-media video.on { opacity: 1; }
.tile:hover .t-media, .tile:focus-within .t-media {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 26px 70px -14px var(--glow);
}
.t-badges { position: absolute; top: 10px; left: 10px; right: 56px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; z-index: 2; }
.t-badges span, .t-count {
  font: 600 11px/1 var(--body); letter-spacing: .04em; padding: 6px 8px; border-radius: 999px;
  background: rgba(10, 11, 13, .66); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; gap: 5px;
}
.t-badges svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.t-play {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: rgba(10, 11, 13, .55); display: grid; place-items: center; pointer-events: none; z-index: 2;
}
.t-play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }

.t-meta {
  display: grid; gap: 3px; width: 100%; contain: inline-size; padding: 10px 2px 0; margin: 0;
  background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; font: 500 14px/1.25 var(--body);
}
.t-meta:focus-visible { outline: 2px solid #ff9f80; outline-offset: 3px; border-radius: 6px; }
.t-who { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 600; }
.t-who img { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.t-who span, .t-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-what { color: var(--text-2); font-size: 13px; }
.tile.sm .t-meta { padding-top: 7px; }
.tile.sm .t-what { font-size: 12px; }
.tile.sm .t-media { border-radius: 10px; }

/* A carousel swipes in place. */
.t-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.t-track::-webkit-scrollbar { display: none; }
.t-track img { flex: 0 0 100%; width: 100%; height: 100%; min-width: 0; object-fit: cover; scroll-snap-align: start; }
.t-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; min-width: 0; scroll-snap-align: start; }
.t-slide img, .t-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-slide video { opacity: 0; transition: opacity .25s ease; }
.t-slide video.on { opacity: 1; }
/* bottom-left: a slide keeps its own labels in the top corners */
.wv-deck-snd { position: absolute; bottom: 12px; left: 12px; z-index: 3; }
.t-count { position: absolute; top: 10px; right: 10px; z-index: 2; pointer-events: none; }
.t-arrow {
  position: absolute; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; z-index: 3;
  border: 0; background: rgba(246, 243, 236, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity .2s ease;
}
.t-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.t-arrow.l { left: 8px; } .t-arrow.r { right: 8px; }
.t-arrow[disabled] { visibility: hidden; }
.tile:hover .t-arrow, .t-arrow:focus-visible { opacity: 1; }
@media (hover: none) { .tile .t-arrow { display: none; } }

/* ---------- Made for your industry ---------- */
.w-made { padding: 80px 0 72px; margin-top: 48px; background: linear-gradient(180deg, var(--stage), #101215); border-top: 1px solid #1f2227; }
.w-made .w-in { max-width: 1180px; }
.w-head { text-align: center; }
.w-made .w-h2 { font-size: clamp(32px, 4.6vw, 50px); }
.w-made .w-sub { margin: 0 auto 22px; }
.w-made-pick { display: flex; gap: 10px; align-items: center; min-width: 0; }
.w-made-pick .w-arrow { position: static; margin: 0; flex: none; width: 40px; height: 40px; }
.w-biz { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 3px; scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.w-biz::-webkit-scrollbar { display: none; }
.w-biz .w-pill { padding: 6px 12px 6px 6px; }
.w-profile { margin-top: 20px; background: var(--stage-2); border: 1px solid var(--edge); border-radius: 22px; padding: 20px 0 10px; }
.p-head { display: flex; gap: 14px; align-items: center; margin: 0 16px 8px; }
@media (min-width: 700px) { .p-head { margin: 4px 28px 10px; } }
.p-head img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.p-head > div { min-width: 0; }
.p-head b { display: block; font: 650 22px/1.2 var(--display); }
.p-head span { display: block; color: var(--text-2); font-size: 15px; }
.p-head .p-n { margin-left: auto; flex: none; font-size: 14px; }
.p-flow { --h: 250px; display: flex; flex-wrap: wrap; gap: 34px 10px; align-items: flex-end; padding: 30px 16px 14px; }
@media (min-width: 700px) { .p-flow { padding: 30px 28px 18px; } }
@media (max-width: 639px) { .p-flow { --h: 168px; gap: 30px 8px; } }
.p-flow .tile { width: min-content; flex: none; position: relative; }
.p-flow .tile.first:not(:first-child) { margin-left: 14px; }
.p-label {
  position: absolute; left: 0; bottom: 100%; margin: 0 0 8px; white-space: nowrap;
  font: 600 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
}
.p-label i { font-style: normal; color: #6f737b; margin-left: 3px; }

/* ---------- The close: back to the site's paper ---------- */
.w-close { background: var(--paper); color: var(--ink); padding: 72px 0; }
.w-close h2 { color: var(--ink); }
.w-close .lede { color: var(--ink-2); }
.w-close .cta .under { color: var(--ink-2); }

/* ---------- The viewer ---------- */
.wv { position: fixed; inset: 0; z-index: 50; }
.wv[hidden] { display: none; }
.wv-back { position: absolute; inset: 0; background: rgba(5, 6, 7, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.wv-box {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: 1fr; align-content: start; gap: 18px; padding: 60px 16px 40px;
}
@media (min-width: 900px) {
  .wv-box { grid-template-columns: minmax(0, 1fr) 360px; align-content: center; align-items: center; gap: 36px; padding: 32px 88px; overflow: hidden; }
}
.wv-stage { display: grid; place-items: center; min-width: 0; }
.wv-media {
  --r: .5625; position: relative; width: min(100%, calc(62vh * var(--r))); aspect-ratio: var(--r);
  border-radius: 16px; overflow: hidden; background: #000;
  box-shadow: 0 30px 120px -20px var(--glow, rgba(255, 255, 255, .15)), 0 0 0 1px rgba(255, 255, 255, .08);
}
@media (min-width: 900px) { .wv-media { width: min(100%, calc(88vh * var(--r))); } }
.wv-media > img, .wv-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wv-media .t-track img { object-fit: cover; }
.wv-controls {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; display: flex; gap: 8px; align-items: center; z-index: 3;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .6));
}
.wv-ctl {
  border: 0; border-radius: 999px; background: rgba(246, 243, 236, .94); color: var(--ink); cursor: pointer;
  font: 600 14px/1 var(--body); padding: 9px 13px; display: inline-flex; gap: 6px; align-items: center; min-height: 38px;
}
.wv-ctl svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.wv-ctl svg .f { fill: currentColor; stroke: none; }
.wv-ctl:focus-visible { outline: 2px solid #ff9f80; outline-offset: 2px; }
.wv-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); position: relative; cursor: pointer; }
.wv-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: #fff; border-radius: 4px; }
.wv-big {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 0; z-index: 3;
  background: rgba(246, 243, 236, .94); display: grid; place-items: center; cursor: pointer;
}
.wv-big svg { width: 30px; height: 30px; fill: var(--ink); margin-left: 4px; }
.wv-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 6px; justify-content: center; z-index: 3; pointer-events: none; }
.wv-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.wv-dots i.on { background: #fff; }
.wv-media .t-arrow { opacity: 1; }

.wv-info { color: var(--text); max-width: 560px; width: 100%; justify-self: center; }
.wv-biz { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.wv-biz img { border-radius: 12px; }
.wv-biz b { display: block; font: 650 22px/1.2 var(--display); }
.wv-where { display: block; color: var(--text-2); font-size: 15px; margin-top: 2px; }
.wv-biz { margin-bottom: 16px; }
.wv-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 26px; margin: 0 0 16px; }
.wv-facts div[hidden] { display: none; }
.wv-facts dt { font: 600 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 5px; }
.wv-facts dd { margin: 0; font-size: 15px; }
.wv-why { font: 500 19px/1.4 var(--display); border-left: 3px solid #ff7a52; padding: 2px 0 2px 14px; margin: 0 0 16px; }
.wv-why span { display: block; font: 600 11px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #ff9f80; margin-bottom: 6px; }
.wv-cap { white-space: pre-line; font-size: 15px; line-height: 1.55; color: #d6d3ca; background: var(--stage-2); border: 1px solid var(--edge); border-radius: 12px; padding: 14px; margin: 0 0 20px; }
.wv-cta { font-size: 17px; padding: 15px 22px; }
.wv-btn {
  position: fixed; z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #3a3e46;
  background: rgba(27, 30, 35, .9); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.wv-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.wv-btn:hover { background: #2a2e35; }
.wv-btn:focus-visible { outline: 2px solid #ff9f80; outline-offset: 2px; }
.wv-close { top: 10px; right: 10px; }
.wv-prev, .wv-next { top: 50%; margin-top: -23px; }
.wv-prev { left: 18px; } .wv-next { right: 18px; }
@media (max-width: 899px) {
  .wv-prev, .wv-next { top: auto; bottom: 14px; margin: 0; }
  .wv-prev { left: auto; right: 72px; } .wv-next { right: 16px; }
  .wv-box { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .w-frame, .w-frame video { transition: none; }
  .t-media, .t-media video { transition: none; }
  .tile:hover .t-media, .tile:focus-within .t-media { transform: none; }
}

/* A carousel that also moves: pick how to see it. */
.wv-switch { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
@media (min-width: 900px) { .wv-stage.two .wv-media { width: min(100%, calc(80vh * var(--r))); } }
