/* work 2: the one Work page, the website on top of every brand page, the new brand pages and the Services first screen.
   Transform and opacity only for motion; nothing wider than the page (no sideways scroll). */
.w2 { --g0: #17110e; --g1: #2a130a; --mag: #ff5a1f; --ink: #f1ede6; --dim: #c9c0b4; --line: rgba(241,237,230,.14); background: var(--g0); color: var(--ink); overflow-x: clip; }
.w2 main { position: relative; z-index: 1; }
/* the ground flows: two slow embers drifting behind everything (fixed, transform only) */
.w2-ground { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; contain: strict; }
.w2-ground i { position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%; filter: blur(10px); opacity: .55; will-change: transform; }
.w2-ground i:nth-child(1) { left: -30vmax; top: -40vmax; background: radial-gradient(circle, rgba(194,65,12,.55), rgba(194,65,12,0) 62%); animation: w2-a 38s ease-in-out infinite alternate; }
.w2-ground i:nth-child(2) { right: -40vmax; bottom: -50vmax; background: radial-gradient(circle, rgba(120,36,10,.6), rgba(120,36,10,0) 60%); animation: w2-b 46s ease-in-out infinite alternate; }
@keyframes w2-a { to { transform: translate3d(28vw, 22vh, 0) scale(1.15); } }
@keyframes w2-b { to { transform: translate3d(-24vw, -30vh, 0) scale(.9); } }

.w2-wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.w2-kick { font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mag); margin: 0 0 10px; }
.w2-name { font: 600 clamp(30px, 4.2vw, 58px)/1.02 var(--serif); margin: 0; letter-spacing: -.01em; }
.w2-line { font: 400 17px/1.5 var(--sans); color: var(--dim); max-width: 64ch; margin: 12px 0 0; }

/* ---------- the website on top ---------- */
.w2-top { padding: 104px 0 28px; }
.w2-top .w2-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.w2-frame { display: block; position: relative; border-radius: 14px; overflow: hidden; background: #0c0908; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,90,31,.08); color: inherit; text-decoration: none; isolation: isolate; }
.w2-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px 0 16px; background: #1d1714; border-bottom: 1px solid var(--line); }
.w2-dots { display: flex; gap: 6px; flex: none; } .w2-dots i { width: 10px; height: 10px; border-radius: 50%; background: #4a3d36; }
.w2-url { flex: 1; min-width: 0; font: 500 13px/1 var(--sans); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(255,255,255,.06); border-radius: 999px; padding: 8px 14px; }
.w2-open { flex: none; font: 700 14px/1 var(--sans); color: #111; background: var(--mag); border-radius: 999px; padding: 9px 14px; white-space: nowrap; }
.w2-frame:hover .w2-open, .w2-frame:focus-visible .w2-open { background: var(--ink); }
.w2-view { display: block; position: relative; overflow: hidden; container-type: size; height: min(68vh, 640px); background: #0c0908; }
.w2-view picture, .w2-view img.w2-cap { display: block; position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.w2-view .w2-roll { position: absolute; inset: 0 0 auto 0; will-change: transform; animation: w2-roll var(--dur, 26s) var(--settle, cubic-bezier(.45,0,.55,1)) infinite; animation-delay: 2.5s; }
.w2-view .w2-roll img { display: block; width: 100%; height: auto; }
@keyframes w2-roll { 0%, 28% { transform: translate3d(0, 0, 0); } 58%, 66% { transform: translate3d(0, calc(-100% + 100cqh), 0); } 94%, 100% { transform: translate3d(0, 0, 0); } }
.w2-frame.scrub .w2-roll { animation: none; transition: transform .5s var(--settle, ease-out); }
.w2-tip { position: absolute; right: 14px; bottom: 14px; z-index: 2; font: 600 13px/1 var(--sans); color: var(--ink); background: rgba(12,9,8,.78); border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; pointer-events: none; }
.w2-view.m { display: none; }
@media (max-width: 760px) {
  .w2-wrap { padding: 0 16px; }
  .w2-top { padding: 84px 0 18px; }
  .w2-name { font-size: 30px; }
  .w2-line { font-size: 15px; margin-top: 6px; }
  .w2-top .w2-head { margin-bottom: 12px; }
  .w2-view.d { display: none; } .w2-view.m { display: block; height: min(62vh, 560px); }
  .w2-bar { height: 40px; } .w2-dots { display: none; } .w2-open { font-size: 13px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { .w2-view .w2-roll, .w2-ground i { animation: none; } }

/* ---------- pieces (masonry by columns; reveal on view) ---------- */
.w2-made { padding: 26px 0 50px; }
.w2-made h2, .w2-group h2 { font: 600 clamp(22px, 2.4vw, 32px)/1.1 var(--serif); margin: 0 0 18px; }
.w2-grid { columns: 3 300px; column-gap: 16px; }
.w2-p { break-inside: avoid; margin: 0 0 16px; border-radius: 12px; overflow: hidden; background: #0f0b09; border: 1px solid var(--line); position: relative; }
.w2-p img, .w2-p video { display: block; width: 100%; height: auto; }
.w2-p.svg { background: #f4efe6; } .w2-p.svg.dark { background: #0f0b09; }
.w2-p.svg img { padding: 9% 10%; box-sizing: border-box; }
.w2-p figcaption { font: 500 13px/1.35 var(--sans); color: var(--dim); padding: 10px 12px 12px; background: #0f0b09; }
.w2-rv { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .7s var(--settle, ease-out), transform .9s var(--settle, ease-out); }
.w2-rv.in { opacity: 1; transform: none; }
@media (max-width: 760px) { .w2-grid { columns: 2 150px; column-gap: 10px; } .w2-p { margin-bottom: 10px; border-radius: 10px; } .w2-p figcaption { font-size: 12px; padding: 8px 9px 10px; } }

/* ---------- the Work page ---------- */
.w2-whead { padding: 100px 0 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.w2-whead h1 { font: 600 clamp(34px, 5vw, 72px)/.95 var(--serif); margin: 0; }
.w2-whead p { font: 400 16px/1.45 var(--sans); color: var(--dim); margin: 0; max-width: 46ch; }
.w2-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.w2-jump a { display: inline-block; font: 600 13px/1 var(--sans); color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; }
.w2-jump a:hover { border-color: var(--mag); }
.w2-group { padding: 22px 0 26px; }
.w2-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.w2-card { display: block; position: relative; color: inherit; text-decoration: none; border-radius: 12px; overflow: hidden; background: #0f0b09; border: 1px solid var(--line); }
.w2-card .w2-cm { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #0c0908; }
.w2-card .w2-cm img, .w2-card .w2-cm video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--settle, ease-out); }
.w2-card.svg .w2-cm { background: #f4efe6; } .w2-card.svg.dark .w2-cm { background: #0f0b09; }
.w2-card.svg .w2-cm img { object-fit: contain; padding: 14%; box-sizing: border-box; }
.w2-card:hover .w2-cm img, .w2-card:hover .w2-cm video { transform: scale(1.04); }
.w2-card .w2-ct { display: block; padding: 11px 12px 13px; }
.w2-card b { display: block; font: 650 15px/1.25 var(--sans); }
.w2-card span.w { display: block; font: 500 13px/1.3 var(--sans); color: var(--dim); margin-top: 2px; }
.w2-card .go { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(12,9,8,.72); color: var(--ink); font: 700 16px/1 var(--sans); border: 1px solid var(--line); }
.w2-card:hover .go { background: var(--mag); color: #111; }
/* website cards: the site scrolls inside the card */
.w2-card.site .w2-cm { aspect-ratio: auto; height: 420px; container-type: size; }
.w2-card.site .w2-roll { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; animation: w2-roll var(--dur, 22s) cubic-bezier(.45,0,.55,1) infinite; }
.w2-card.site .w2-roll img { position: static; width: 100%; height: auto; object-fit: initial; transform: none !important; }
.w2-card.site .w2-roll.m { display: none; }
.w2-cards.sites { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .w2-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .w2-cards.sites { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .w2-whead { padding: 80px 0 10px; } .w2-whead p { font-size: 14px; } .w2-jump { display: none; }
  .w2-group { padding: 12px 0 16px; } .w2-group h2 { margin-bottom: 10px; font-size: 21px; }
  .w2-cards, .w2-cards.sites { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .w2-card .w2-ct { padding: 8px 9px 10px; } .w2-card b { font-size: 13px; } .w2-card span.w { font-size: 12px; }
  .w2-card.site .w2-cm { height: 330px; } .w2-card.site .w2-roll.d { display: none; } .w2-card.site .w2-roll.m { display: block; }
  .w2-card .go { width: 28px; height: 28px; font-size: 13px; top: 7px; right: 7px; }
}
.w2-more { padding: 8px 0 60px; }
.w2-more a { color: var(--ink); }

/* ---------- write-up under the pieces (new pages) ---------- */
.w2-text { padding: 10px 0 60px; max-width: 760px; }
.w2-text h2 { font: 600 clamp(22px, 2.4vw, 30px)/1.15 var(--serif); margin: 34px 0 10px; }
.w2-text p { font: 400 17px/1.6 var(--sans); color: var(--dim); margin: 0 0 14px; }
.w2-mark { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); }
.w2-mark .w2-p { margin: 0; }
.w2-mark h2 { margin-top: 0; }
@media (max-width: 760px) { .w2-mark { grid-template-columns: 1fr; gap: 14px; } .w2-text p { font-size: 15px; } }
.w2-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.w2-pair .w2-p { margin: 0; }
.w2-pair .w2-p.svg img { padding: 16% 14%; }
@media (max-width: 760px) { .w2-pair { gap: 10px; } }
.w2-end { padding: 10px 0 70px; display: flex; gap: 12px; flex-wrap: wrap; }
.w2-end a { display: inline-block; font: 700 15px/1 var(--sans); padding: 14px 18px; border-radius: 999px; text-decoration: none; color: #111; background: var(--mag); }
.w2-end a.ghost { background: transparent; color: var(--ink); border: 1px solid var(--edge, rgba(241,237,230,.26)); }
.w2-off .w2-roll, .w2-off.w2-roll { animation-play-state: paused; }
/* spans used as blocks inside links */
.w2-card .w2-cm, .w2-card .w2-roll, .w2-frame .w2-roll { display: block; }
.w2-card.site .w2-roll.m { display: none; }
.w2-whead { padding-left: 28px; padding-right: 28px; }
@media (max-width: 760px) {
  .w2-card.site .w2-roll.d { display: none; } .w2-card.site .w2-roll.m { display: block; }
  .w2-whead { padding: 74px 16px 8px; gap: 6px; } .w2-whead h1 { font-size: 34px; }
  .w2-group:first-of-type { padding-top: 4px; }
}
.w2-card.fit .w2-cm img { object-fit: contain; }
/* the lead piece fits the screen; the frame fills the first screen on a laptop */
.w2-lead .w2-p { background: #0c0908; }
.w2-lead .w2-p img, .w2-lead .w2-p video { width: 100%; height: auto; max-height: calc(100vh - 250px); min-height: 260px; object-fit: contain; }
.w2-lead .w2-p.svg img { max-height: calc(100vh - 250px); padding: 6% 10%; }
@media (min-width: 761px) {
  .w2-top { padding-top: 92px; }
  .w2-top .w2-head > div { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 32px; align-items: end; }
  .w2-top .w2-head .w2-kick { grid-column: 1 / -1; }
  .w2-top .w2-name { font-size: clamp(30px, 3.2vw, 46px); }
  .w2-top .w2-line { margin: 0; font-size: 15px; }
  .w2-view { height: calc(100vh - 250px); min-height: 420px; }
}
/* the piece a write-up section describes, shown in that section */
.w2-sec { background: transparent; margin: 18px 0 8px; }
.w2-sgrid { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 12px; }
.w2-sgrid.one { --n: 1; } .w2-sgrid.three { --n: 3; }
.w2-sgrid .w2-p { margin: 0; }
@media (max-width: 760px) { .w2-sgrid.three { --n: 2; } .w2-sgrid { gap: 8px; } }
/* a piece is never drawn wider than its file holds at the screen's pixel ratio (--mw = the file's width) */
:root { --dpr: 1.5; }
@media (max-width: 760px) { :root { --dpr: 2.625; } }
.w2-p img[style*="--mw"], .w2-p video[style*="--mw"] { max-width: calc(var(--mw) * 1px / var(--dpr)); margin-inline: auto; }
.w2-p.svg img { max-width: none; }
/* five websites sit in one row on a laptop */
@media (min-width: 1101px) { .w2-cards.sites { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

/* review 1 mends */
.w2-card.site .w2-roll { animation-delay: 2.5s; }
.w2-card .go { top: auto; bottom: 11px; right: 10px; width: 30px; height: 30px; font-size: 14px; }
.w2-card .w2-ct { padding-right: 46px; }
.w2-card.svg .w2-cm img { padding: 9%; }
.w2.w2-inj { background: transparent; }
@media (min-width: 1101px) {
  .w2-cards.sites { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .w2-cards.sites .w2-card.site:first-child { grid-column: span 2; }
  .w2-card.site .w2-cm { height: 470px; }
}
