/* RTN Global v2 — Projects page */

/* hero: three columns of client logos drifting past */
.logo-drift { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; height: clamp(340px, 42vw, 460px); overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.ld-col { overflow: hidden; }
.ld-col-1 { padding-top: 56px; }
.ld-track { display: grid; gap: 14px; }
.ld-tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: #fff; box-shadow: 0 14px 30px -18px rgb(10 10 40 / 0.55); }
.ld-tile.is-dark { background: #000; }
.ld-tile img { position: absolute; inset: 16%; width: 68%; height: 68%; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .ld-track { animation: ld-up 38s linear infinite; }
  .ld-col-1 .ld-track { animation-duration: 46s; animation-direction: reverse; }
  .ld-col-2 .ld-track { animation-duration: 42s; }
  .logo-drift:hover .ld-track { animation-play-state: paused; }
}
@keyframes ld-up { to { translate: 0 calc(-50% - 7px); } }
@media (max-width: 900px) { .logo-drift { height: 300px; } }
@media (max-width: 520px) { .logo-drift { gap: 10px; height: 240px; } .ld-track { gap: 10px; } .ld-col-1 { padding-top: 36px; } @keyframes ld-up { to { translate: 0 calc(-50% - 5px); } } }

/* selected work: alternating case studies */
.case-list { display: grid; gap: clamp(28px, 4vw, 48px); }
.case-study { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(20px, 3vw, 36px); border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.case-study.is-flipped { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.case-study.is-flipped .cs-body { display: grid; gap: 12px; align-content: start; }
.cs-client { margin: 0; color: var(--blue); font-weight: 700; font-size: var(--step--1); }
.cs-body h3 { font-size: var(--step-3); font-stretch: 112%; font-weight: 800; letter-spacing: -0.03em; }
.cs-lede { font-size: var(--step-1); color: var(--ink-2); max-width: 34em; }
.cs-built { display: grid; gap: 6px; margin-top: 4px; }
.cs-built li { display: flex; gap: 10px; color: var(--ink-2); }
.cs-built li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.62em; border-radius: 50%; background: var(--blue); }
.cs-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cs-stack li { padding: 4px 12px; border-radius: 999px; background: var(--paper-2); font-size: var(--step--1); font-weight: 600; }
.cs-quote { margin: 8px 0 0; padding: 14px 18px; border-radius: var(--r-md); background: #F2F2FF; }
.cs-quote blockquote { margin: 0; font-size: var(--step-0); line-height: 1.45; }
.cs-quote blockquote p::before { content: "“"; }
.cs-quote blockquote p::after { content: "”"; }
.cs-quote figcaption { margin-top: 6px; color: var(--mute); font-size: var(--step--1); }
@media (max-width: 900px) {
  .case-study, .case-study.is-flipped { grid-template-columns: 1fr; }
  .case-study .cs-logo, .case-study.is-flipped .cs-logo { order: 2; }
}

/* logo plates */
.cs-logo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.cs-img { max-width: 62%; max-height: 56%; object-fit: contain; }
.cs-img.is-tile { width: 46%; max-width: 220px; height: auto; max-height: none; aspect-ratio: 1; object-fit: cover; border-radius: 22%; box-shadow: 0 18px 40px -18px rgb(20 20 40 / 0.45); }
.cs-mono { display: grid; place-items: center; width: 46%; max-width: 220px; aspect-ratio: 1; border-radius: 22%; background: var(--ink); color: var(--c); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; font-stretch: 125%; letter-spacing: -0.03em; box-shadow: 0 18px 40px -18px rgb(20 20 40 / 0.45); }
.cs-logo-cat { position: absolute; left: 16px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 12px; font-weight: 700; color: var(--ink-2); }

/* more projects: filter + grid */
.more-work { background: var(--paper-2); }
.pj-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); width: fit-content; max-width: 100%; }
.pj-filter button { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 700; font-size: var(--step--1); cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.pj-filter button:hover { color: var(--ink); }
.pj-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pj-filter button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (max-width: 760px) { .pj-filter { border-radius: var(--r-md); } }
.pj-showing { margin: 14px 0 20px; color: var(--mute); font-size: var(--step--1); }
.pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pj-grid { grid-template-columns: 1fr; } }
.pj { display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow 200ms var(--ease), translate 200ms var(--ease-out); }
.pj:hover { box-shadow: 0 0 0 1px var(--line), 0 24px 40px -24px rgb(20 20 40 / 0.35); translate: 0 -3px; }
.pj[hidden] { display: none; }
.pj-logo { display: grid; place-items: center; height: 150px; background: #fff; box-shadow: inset 0 -1px 0 var(--line); }
.pj-img { max-width: 58%; max-height: 84px; object-fit: contain; }
.pj-img.is-tile { width: 92px; height: 92px; max-height: none; object-fit: cover; border-radius: 22px; box-shadow: 0 12px 26px -14px rgb(20 20 40 / 0.5); }
.pj-mono { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 22px; background: var(--ink); color: var(--c); font-size: 1.9rem; font-weight: 800; font-stretch: 125%; letter-spacing: -0.03em; box-shadow: 0 12px 26px -14px rgb(20 20 40 / 0.5); }
.pj-body { display: grid; gap: 8px; padding: 18px 20px 22px; align-content: start; }
.pj-cat { margin: 0; color: var(--mute); font-size: 12.5px; font-weight: 700; }
.pj-body h3 { font-size: var(--step-1); font-weight: 800; letter-spacing: -0.01em; }
.pj-body > p:not(.pj-cat) { color: var(--ink-2); font-size: var(--step--1); line-height: 1.5; }
.pj-parts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pj-parts li { padding: 3px 10px; border-radius: 999px; background: var(--paper-2); font-size: 12px; font-weight: 600; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .pj.is-entering { animation: pj-in 340ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 35ms); }
}
@keyframes pj-in { from { opacity: 0; translate: 0 10px; } }
/* white-background logos sit on the tinted plate instead of in a white box */
.cs-img:not(.is-tile), .pj-img:not(.is-tile) { mix-blend-mode: multiply; }
.cs-mono.is-long { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-stretch: 100%; }
.pj-mono.is-long { font-size: 1.3rem; font-stretch: 100%; }
.cs-img.is-wide, .pj-img.is-wide { border-radius: 14px; box-shadow: 0 12px 26px -14px rgb(20 20 40 / 0.5); }
.pj-img.is-wide { max-width: 70%; max-height: 96px; }

/* brands we've worked with */
.brands { padding-top: 0; }
.brand-wall { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .brand-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .brand-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.brand { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 14px; border-radius: var(--r-md); background: #fff; box-shadow: 0 0 0 1px var(--line); transition: translate 200ms var(--ease-out), box-shadow 200ms var(--ease); }
.brand:hover { translate: 0 -3px; box-shadow: 0 0 0 1px var(--line), 0 18px 30px -20px rgb(20 20 40 / 0.4); }
.brand img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand.is-dark { background: #000; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .brand-wall .brand { animation: pj-in 400ms var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
.brand { position: relative; }
.brand img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); max-width: none; max-height: none; }
.brand-wall { display: flex; flex-wrap: wrap; justify-content: center; --cols: 9; }
.brand { flex: 0 0 calc((100% - (var(--cols) - 1) * 10px) / var(--cols)); }
@media (max-width: 1100px) { .brand-wall { --cols: 5; } }
@media (max-width: 520px) { .brand-wall { --cols: 3; } }

/* text wordmarks: client logos that are plain text on their own sites */
.wm { display: grid; place-items: center; max-width: 88%; padding: 0.9em 1.3em; border-radius: 12px; line-height: 1.1; text-align: center; box-shadow: 0 12px 26px -16px rgb(20 20 40 / 0.45); }
.wm > span { display: grid; gap: 0.35em; }
.wm small { display: block; font-size: 0.42em; }
.pj-logo .wm { font-size: 15px; }
.cs-logo .wm { font-size: clamp(18px, 2.4vw, 28px); }
.wm-samaritana { background: #DDD2B2; color: #000; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 1.15em; }
.pj-logo .wm-samaritana { font-size: 19px; }
.wm-neogone { background: #000; color: #fff; font-family: Rubik, sans-serif; font-weight: 400; letter-spacing: 1px; }
.pj-logo .wm-neogone { font-size: 20px; }
.wm-neogone b { font-weight: inherit; color: #BADA55; }
.wm-peterleni { background: #000; color: #fff; font-family: "Josefin Sans", sans-serif; font-weight: 300; letter-spacing: 0.04em; }
.wm-aec { background: #000; color: #fff; font-family: Heebo, sans-serif; font-weight: 500; }
.pj-logo .wm-aec { font-size: 17px; }
.wm-diane { background: #FBF8F3; color: #171614; font-family: Georgia, "Times New Roman", serif; font-weight: 400; box-shadow: 0 0 0 1px #E9E2D6, 0 12px 26px -16px rgb(20 20 40 / 0.3); }
.pj-logo .wm-diane { font-size: 20px; }
.wm-diane small { font-family: var(--font); font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.wm-adaequat { background: #fff; color: #000; font-family: Jost, "Futura", sans-serif; font-weight: 300; box-shadow: 0 0 0 1px var(--line), 0 12px 26px -16px rgb(20 20 40 / 0.3); }
.pj-logo .wm-adaequat { font-size: 21px; }
.wm-flexi { background: #123528; color: #F6F4EC; font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -0.01em; }
.pj-logo .wm-flexi { font-size: 19px; }
.wm-flexi b { color: #F2B705; }
.wm-flexi small { font-family: "Work Sans", sans-serif; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: #B9C9C0; font-size: 0.45em; }
.wm > span { display: block; white-space: nowrap; }
.wm small { margin-top: 0.45em; }

/* filter bar spans the full content width */
.pj-filter { width: 100%; flex-wrap: nowrap; }
.pj-filter button { flex: 1 1 auto; white-space: nowrap; }
@media (max-width: 760px) {
  .pj-filter { overflow-x: auto; scrollbar-width: none; border-radius: 999px; }
  .pj-filter::-webkit-scrollbar { display: none; }
  .pj-filter button { flex: 0 0 auto; }
}

/* review source link under case-study quotes */
.cs-quote-src { display: inline-flex; margin-left: 10px; color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cs-quote-src::after { content: "↗"; margin-left: 3px; text-decoration: none; }

/* text wordmarks on the brand wall */
.brand.is-text { padding: 8px; }
.brand .wm { font-size: 10px; max-width: 100%; padding: 0.8em 1em; box-shadow: none; }
.brand .wm-neogone, .brand .wm-diane, .brand .wm-adaequat { font-size: 13px; }
.brand .wm-samaritana { font-size: 12px; white-space: normal; }
.brand .wm-samaritana > span, .brand .wm-peterleni > span, .brand .wm-aec > span { white-space: normal; }
.brand.is-text { padding: 0; overflow: hidden; }
.brand .wm { width: 100%; height: 100%; border-radius: inherit; }
.brand .wm-adaequat, .brand .wm-diane { box-shadow: none; }
