@font-face {
  font-family: "Geist";
  src: url("assets/Geist-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #f9f6f2;
  --black: #101010;
  --deep: #0b0b0b;
  --muted: #bdb7b1;
  --orange: #ff9a65;
  --line: #ffffff26;
  --font: "Geist", "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--ink); font: 16px/1.65 var(--font); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
.wrap { width: min(100% - 100px, 1380px); margin-inline: auto; }
.skip { position: fixed; z-index: 20; top: 12px; left: 12px; transform: translateY(-150%); padding: 8px 16px; background: var(--deep); }
.skip:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 1; background: var(--black); }
.nav { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.identity { display: inline-flex; align-items: baseline; gap: 11px; font-weight: 750; white-space: nowrap; }
.identity span { color: var(--muted); font: 650 .77rem/1.1 var(--font); letter-spacing: .12em; }
.nav nav { display: flex; gap: clamp(16px, 3.4vw, 48px); align-items: center; white-space: nowrap; font-size: .875rem; }
.nav-contact { padding: 5px 13px; border: 1px solid #ffffff45; border-radius: 40px; }
.nav a:hover, .site-footer a:hover { color: var(--orange); }
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--black); border-bottom: 1px solid #f7b09442; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(ellipse 53% 51% at 98% 113%, #fff9eb 0%, #ffdbc5 37%, #f68c58 61%, #ac583c29 93%, transparent 100%),
    radial-gradient(ellipse 54% 49% at 94% 105%, #fa975fee 10%, #d75d2e80 59%, #58281814 87%, transparent 100%),
    radial-gradient(ellipse 55% 18% at 22% 114%, #c57950 0%, #63371f7d 62%, transparent 100%);
}
.hero-content { min-height: clamp(545px, 54vw, 720px); padding-top: clamp(64px, 8.5vw, 126px); padding-bottom: 120px; }
.hero-kicker, .eyebrow { font: 700 .81rem/1.35 var(--font); letter-spacing: .14em; color: var(--orange); }
.hero-kicker span { margin-left: 12px; padding-left: 12px; border-left: 1px solid #ffffff3b; color: #c9beb5; font-weight: 500; letter-spacing: .08em; }
.hero h1 { margin: 22px 0 24px; font-size: clamp(3.1rem, 7.25vw, 7.5rem); font-weight: 700; letter-spacing: -.045em; }
.hero-period { color: var(--orange); }
.hero-offset { margin-left: clamp(16px, 16vw, 238px); }
.hero-role { font-size: clamp(1.32rem, 3.65vw, 3.8rem); font-weight: 500; line-height: 1.24; letter-spacing: -.025em; }
.hero-role span { color: #b6a79b; font-weight: 400; margin-inline: .11em; }
.hero-english { margin-top: 12px; font: 400 clamp(1rem, 2.6vw, 2.65rem)/1.16 var(--font); letter-spacing: .028em; color: #f1eae4; }
.hero-english strong { font-weight: 760; }
.hero-actions { margin-top: clamp(37px, 6vw, 76px); display: flex; gap: 16px 20px; align-items: center; flex-wrap: wrap; }
.hero-actions p { font-size: .875rem; color: #c7bdb5; }
.hero-link { padding: 9px 15px; border: 1px solid #d3987ec2; border-radius: 28px; font-size: .875rem; }
.hero-link:hover { color: #111; background: #ffaf89; border-color: #ffaf89; }
.section-heading { padding-bottom: 17px; margin-bottom: clamp(23px, 3.4vw, 45px); border-bottom: 1px solid var(--line); }
.section-heading h2 { margin-top: 7px; font-size: clamp(2.3rem, 5.2vw, 5.3rem); font-weight: 700; letter-spacing: -.045em; }
.text-link { display: inline-block; width: fit-content; font-size: .875rem; padding-bottom: 3px; border-bottom: 1px solid #e4936f; }
.text-link:hover, .work-card:hover .text-link, .ai-card:hover .text-link { color: var(--orange); }
.about { border-top: 1px solid var(--line); background: radial-gradient(ellipse at bottom right,#5a2a19 0%,#251813 41%,#151311 74%); }
.about-inner { max-width: 1200px; }
.profile { display: grid; align-items: start; grid-template-columns: minmax(115px, 195px) minmax(0, 670px); gap: clamp(25px, 6vw, 90px); }
.portrait img { aspect-ratio: .96; object-fit: cover; border-radius: 12px; }
.portrait figcaption { display: grid; gap: 2px; padding-top: 11px; }
.portrait figcaption span { font-size: .78rem; letter-spacing: .1em; color: var(--muted); }
.about-copy h3 { font-size: clamp(1.3rem,2.5vw,2.1rem); letter-spacing: -.035em; }
.about-copy > p { margin: 11px 0 26px; color: #d1c7bd; }
.profile-contact { display: flex; flex-wrap: wrap; gap: 9px 24px; }
.experience { margin: 0 0 25px; border-top: 1px solid var(--line); }
.experience div { display: grid; grid-template-columns: 155px 1fr; gap: 2px 18px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.experience dt { font-size: .875rem; color: #dfbea9; }
.experience dd { margin: 0; }
.experience dd span { display: block; color: #c7bdb5; font-size: .875rem; }
.site-footer { padding: 27px 0; background: var(--deep); color: var(--muted); font-size: .875rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; }
.case-intro { padding: 31px 0 clamp(47px,7vw,90px); background: radial-gradient(ellipse 72% 130% at 100% 105%,#542b1b 0%,#291a13 36%,var(--black) 81%); border-bottom: 1px solid var(--line); }
.breadcrumb { display: inline-block; margin-bottom: clamp(27px,4vw,57px); border-bottom: 1px solid #e4936f; padding-bottom: 2px; color: #ded6cd; font-size: .875rem; }
.breadcrumb:hover, .next-case a:hover, .section-nav a:hover { color: var(--orange); }
.intro-row { display: flex; justify-content: space-between; align-items: end; gap: 12px 38px; }
.intro-row h1 { font-size: clamp(2.7rem,7.1vw,7.3rem); font-weight: 700; letter-spacing: -.045em; margin: 6px 0 10px; }
.case-desc, .case-spec { color: #ddd2c9; }
.case-desc { max-width: 24em; }
.section-nav { position: sticky; z-index: 2; top: 0; display: flex; flex-wrap: wrap; gap: 7px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); background: var(--black); }
.section-nav a { font-size: .875rem; border-bottom: 1px solid #e4936f95; }
.case-group { padding: clamp(36px,6vw,78px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 72px; }
.group-heading { display: flex; align-items: end; justify-content: space-between; gap: 8px 30px; margin: 0 0 22px; }
.group-heading h2 { font-size: clamp(1.6rem,4vw,3.55rem); font-weight: 700; letter-spacing: -.035em; }
.group-heading p { color: var(--muted); max-width: 31em; }
.render-showcase { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; padding-block: clamp(25px,4vw,57px); }
.render-panel { --tone: #edbb9d; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; min-height: clamp(335px,38vw,535px); padding: clamp(12px,1.4vw,23px); border: 1px solid var(--line); border-radius: 21px; background: radial-gradient(ellipse at 54% -13%,var(--tone),#221915 51%,#0c0c0c 88%); overflow: hidden; }
.render-panel.tone-1 { --tone: #bcb8b5; background: radial-gradient(ellipse at 54% -13%,var(--tone),#282728 51%,#0c0c0c 88%); }
.render-panel.tone-2 { --tone: #ef9157; }
.render-panel.tone-3 { --tone: #c6a497; }
.render-scope { color: #fcf5ef; font-size: .875rem; }
.render-art { display: grid; place-items: center; }
.render-art img { max-height: 265px; object-fit: contain; border-radius: 8px; }
.render-panel h2 { font-size: clamp(1.15rem,2vw,1.85rem); }
.render-panel figcaption p { color: #c8bbb1; font-size: .875rem; margin-top: 6px; }
.screen-spread, .long-pair { display: grid; align-items: start; gap: clamp(9px,1.55vw,22px); }
.screen-spread { grid-template-columns: repeat(4,minmax(0,1fr)); padding: clamp(9px,2.6vw,36px); background: #0b0b0b; border: 1px solid var(--line); border-radius: 19px; }
.screen-strip { min-width: 0; border: 1px solid #bf886c6b; border-radius: 13px; overflow: hidden; }
.screen-strip:nth-child(2) { margin-top: 24%; }
.screen-strip:nth-child(3) { margin-top: 7%; }
.screen-strip:nth-child(4) { margin-top: 16%; }
.long-art { max-width: 1050px; margin-inline: auto; background: #1a1614; }
.long-pair { grid-template-columns: repeat(2,minmax(0,1fr)); }
.long-pair h3 { font-size: 1.25rem; margin-bottom: 12px; }
.long-pair .long-art { overflow: hidden; border-radius: 13px; }
.listing-board { width: min(100%,1020px); margin-inline: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(9px,2vw,24px); padding: clamp(11px,3vw,36px); background: #efebe6; border-radius: 17px; color: #252220; }
.listing-board > div { display: grid; gap: clamp(10px,2.2vw,24px); align-content: start; }
.listing-board > div:nth-child(2) { padding-top: 14%; }
.listing-board img { border-radius: 4px; }
.listing-board figcaption { margin-top: 5px; font-size: .875rem; }
.ai-spread { padding: clamp(26px,4.6vw,66px) 0 0; display: grid; grid-template-columns: 1.22fr 1fr; gap: 13px; }
.ai-card { position: relative; isolation: isolate; display: flex; align-items: end; min-height: clamp(300px,37vw,500px); overflow: hidden; background: #191616; border: 1px solid var(--line); border-radius: 19px; }
.ai-card img { position: absolute; z-index: -2; inset: 0; height: 100%; object-fit: cover; }
.ai-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg,#080808 2%,#0e0a08cf 27%,#1115 60%,transparent 82%); }
.ai-caption { padding: clamp(16px,3vw,34px); }
.ai-caption h2 { font-size: clamp(1.5rem,3vw,2.7rem); margin: 5px 0 6px; }
.ai-caption p:not(.eyebrow) { max-width: 37em; color: #ede4dd; }
.ai-caption .text-link { margin-top: 8px; }
.case-aigc .long-art { border-radius: 14px; overflow: hidden; }
.poster-board, .logo-board { display: grid; align-items: start; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(10px,2vw,25px); padding: clamp(13px,3vw,42px); border-radius: 20px; background: radial-gradient(ellipse 85% 70% at 0 0,#f8a477,#f5ded0 52%,#f2ebe6 94%); }
.poster-board figure, .logo-board figure { min-width: 0; padding: clamp(4px,.8vw,11px); background: #131211; border: 1px solid #080808; border-radius: 12px; overflow: hidden; }
.poster-board img { aspect-ratio: .5625; object-fit: contain; background: #1c1a19; }
.poster-board img, .logo-board img { border-radius: 6px; }
.poster-board figcaption, .logo-board figcaption { padding: 6px 3px 2px; color: #eee4db; font-size: .875rem; }
.logo-board { grid-template-columns: repeat(2,minmax(0,1fr)); }
.next-case { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 26px 0 35px; }
.next-case a { border-bottom: 1px solid #e4936f; padding-bottom: 2px; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 56px); }
  .hero-content { min-height: 510px; }
  .hero-offset { margin-left: 8vw; }
  .intro-row, .group-heading { align-items: start; flex-direction: column; }
  .render-showcase { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 580px) {
  .wrap { width: calc(100% - 36px); }
  .nav { min-height: 60px; gap: 9px; }
  .nav nav { gap: 11px; }
  .identity span { display: none; }
  .nav-contact { padding-inline: 7px; }
  .hero-content { min-height: 470px; padding: 65px 0 135px; }
  .hero::before { background: radial-gradient(ellipse 75% 43% at 100% 105%,#ffddc3 0%,#f18052 39%,#9c422949 76%,transparent 100%); }
  .hero h1 { font-size: clamp(2.25rem,8.7vw,3.15rem); margin: 22px 0 19px; letter-spacing: -.045em; }
  .hero-offset { margin-left: 16px; }
  .hero-role { font-size: clamp(1.15rem,5.2vw,1.75rem); }
  .hero-english { max-width: 24em; font-size: .97rem; line-height: 1.3; margin-top: 8px; }
  .hero-actions { margin-top: 30px; }
  .profile { grid-template-columns: 1fr; }
  .portrait { width: 120px; }
  .experience div { grid-template-columns: 1fr; }
  .case-group { scroll-margin-top: 110px; }
  .render-showcase { gap: 7px; }
  .render-panel { min-height: 256px; border-radius: 15px; }
  .render-art img { max-height: 145px; }
  .render-panel figcaption p { font-size: .82rem; }
  .screen-spread, .long-pair, .ai-spread { grid-template-columns: minmax(0,1fr); }
  .screen-spread { gap: 0; padding: 0; overflow: hidden; }
  .screen-strip, .screen-strip:nth-child(n) { margin: 0; border: 0; border-radius: 0; }
  .long-pair { gap: 25px; }
  .poster-board, .logo-board { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .logo-board { grid-template-columns: 1fr; }
  .ai-card { min-height: 315px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* On the home page, each project has its own screen and a heading above the artwork. */
html:has(.home) { scroll-snap-type: y mandatory; }
.home .hero, .home .project-screen, .home .about { scroll-snap-align: start; }
.home .project-screen { scroll-snap-stop: always; }
.home .site-footer { scroll-snap-align: end; }
.home .hero { scroll-margin-top: 74px; }
.home .hero-content { min-height: calc(100svh - 75px); }
.project-screen { border-bottom: 1px solid var(--line); }
.project-layout {
  --art-height: clamp(250px, calc(100svh - 206px), 660px);
  min-height: calc(100svh - 1px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  padding-block: clamp(24px, 4.1vh, 44px);
}
.project-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
}
.project-heading h2 {
  margin-top: 4px;
  font-size: clamp(2.15rem, 5.1vw, 5rem);
  font-weight: 700;
  letter-spacing: -.045em;
}
.project-heading .text-link { flex: none; margin-bottom: 3px; }
.project-render { background: #101010; }
.project-commerce { background: #0b0b0b; }
.commerce-preview {
  height: var(--art-height);
  width: min(100%, 1130px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(7px, 1.7vw, 24px);
  overflow: hidden;
  position: relative;
}
.commerce-preview::after {
  content: ""; position: absolute; inset: auto 0 0; height: 32px;
  background: linear-gradient(0deg, #0b0b0b, transparent);
  pointer-events: none;
}
.show-strip {
  min-width: 0;
  height: max-content;
  overflow: hidden;
  border: 1px solid #aa755989;
  border-radius: 14px 14px 0 0;
  background: #211711;
}
.show-strip:nth-child(2) { margin-top: 18%; }
.show-strip:nth-child(3) { margin-top: 5%; }
.show-strip:nth-child(4) { margin-top: 12%; }
.project-amazon { background: #11100f; }
.project-aigc { background: #0b0b0b; }
.project-aigc .ai-spread {
  padding: 0; grid-template-columns: 1.24fr 1fr;
}
.project-aigc .ai-card { min-height: min(var(--art-height), 550px); }
.project-aigc .ai-caption h3 { margin: 5px 0 6px; font-size: clamp(1.4rem, 3.15vw, 2.85rem); }
.project-brand { background: #11100f; }
@media (max-width: 850px) {
  .project-layout { --art-height: clamp(280px, calc(100svh - 176px), 540px); }
}
@media (max-width: 580px) {
  .home .hero { scroll-margin-top: 60px; }
  .home .hero-content { min-height: max(470px, calc(100svh - 61px)); }
  .project-layout { --art-height: clamp(270px, calc(100svh - 158px), 520px); gap: 14px; }
  .project-heading { gap: 7px; }
  .project-heading h2 { font-size: clamp(1.65rem, 7.5vw, 2.65rem); }
  .project-heading .text-link { font-size: .81rem; }
  .show-strip { border-radius: 6px 6px 0 0; }
  .project-aigc .ai-spread { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .project-aigc .ai-card { border-radius: 12px; min-height: clamp(280px, 61svh, 465px); }
  .project-aigc .ai-caption { padding: 10px; }
  .project-aigc .ai-caption h3 { font-size: 1.13rem; }
  .project-aigc .ai-caption p { font-size: .81rem; }
  .project-aigc .ai-caption .eyebrow { font-size: .69rem; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.home) { scroll-snap-type: none; }
}


/* Home project previews */
.render-portraits {
  width: min(100%, 1120px, calc((var(--art-height) - 62px) * 3.05));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.45vw, 20px);
}
.render-tile {
  overflow: hidden;
  background: #171514;
  border: 1px solid #ffffff23;
  border-radius: 15px;
}
.render-tile img { aspect-ratio: 4 / 5; object-fit: cover; background: #24201d; }
.render-tile:first-child img { object-position: 50% 54%; }
.render-tile figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 11px 13px 12px;
}
.render-tile h3 { font-size: clamp(1rem, 1.6vw, 1.45rem); }
.render-tile figcaption span { font-size: .81rem; color: var(--muted); }
.poster-wall {
  width: 100%;
  height: var(--art-height);
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #1b2029;
}
.poster-tiles {
  --columns: 6;
  width: 111%;
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: clamp(7px, 1vw, 14px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -51%) rotate(-10deg);
}
.poster-tiles figure {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #192533;
}
.poster-tiles img { height: 100%; object-fit: cover; }
.poster-tiles .is-dim img { filter: brightness(.48) saturate(.76); }
.poster-tiles .is-lit img { filter: brightness(1.02); }
.poster-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 55px #0b1019aa;
  pointer-events: none;
}
@media (max-width: 580px) {
  .render-portraits {
    width: min(100%, calc((100svh - 194px) * .8));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .render-tile { border-radius: 10px; }
  .render-tile figcaption { padding: 7px 8px; gap: 3px; }
  .render-tile h3 { font-size: .94rem; }
  .render-tile figcaption span { font-size: .75rem; }
  .poster-tiles { --columns: 4; width: 116%; }
}

.project-render .render-portraits { align-self: start; margin-top: clamp(0px, 3vh, 24px); }
.case-render-portraits { --art-height: 540px; margin-block: clamp(24px, 4vw, 56px); }
.case-render-portraits img { object-fit: contain; }
@media (min-width: 851px) {
  :is(.project-commerce, .project-brand) .project-layout {
    --art-height: clamp(250px, calc(100svh - 221px), 660px);
  }
}
@media (max-width: 580px) {
  .project-render .render-portraits { margin-top: 0; }
  .case-render-portraits { width: 100%; }
}

.project-render .project-layout {
  min-height: 0;
  grid-template-rows: auto auto;
  padding-bottom: clamp(35px, 5.5vh, 52px);
}
.project-render .render-portraits { margin-top: 0; }
.render-tile-dark img {
  object-fit: contain;
  background: radial-gradient(ellipse at 52% 43%, #393a3d, #202125 55%, #111216 100%);
}
.amazon-carousel {
  width: min(100%, 1120px);
  min-width: 0;
  margin-inline: auto;
  padding: clamp(14px, 3.1vw, 40px);
  overflow: hidden;
  border: 1px solid #ffffff19;
  border-radius: 15px;
  background: radial-gradient(ellipse at 50% 38%, #2d2724 0%, #1c1918 44%, #141415 82%);
  color: var(--ink);
}
.carousel-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  height: clamp(150px, 31vw, 355px);
  padding-inline: 4%;
}
.carousel-slide {
  position: relative;
  width: 100%;
  aspect-ratio: 1.62;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.carousel-slide:focus-visible, .carousel-case:focus-visible {
  outline: 2px solid #f3a484;
  outline-offset: 4px;
}
.carousel-card {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
  background: #111214;
  filter: brightness(.64) saturate(.83);
  transition: box-shadow .22s ease, filter .22s ease;
}
.carousel-card img { height: 100%; object-fit: cover; }
.carousel-slide:first-child img { object-position: center 39%; }
.carousel-slide.is-active { z-index: 1; }
.carousel-slide.is-active .carousel-card {
  inset: auto;
  width: 121%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #111214;
  filter: none;
  box-shadow: 0 0 0 1px #efb18c57, 0 21px 35px #000a;
}
.carousel-slide.is-active .carousel-card img { object-fit: contain; }
.carousel-controls { margin: 5px 4% 0; }
.carousel-case {
  display: inline-block;
  max-width: 100%;
  font-weight: 720;
  padding-bottom: 2px;
  border-bottom: 1px solid #e9916e;
}
.carousel-case:hover { color: #f3a484; }
@media (max-width: 580px) {
  .amazon-carousel { padding: 10px; }
  .carousel-track { padding-inline: 3%; }
  .carousel-controls { margin: 0 3%; }
  .carousel-case { font-size: .86rem; }
}
@media (max-height: 700px) and (min-width: 851px) {
  .carousel-track { height: min(30vw, 43svh); }
}

/* Project previews and the complete rendering gallery */
.screen-art:has(> .project-area-link) { position: relative; }
.project-area-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.project-area-link:focus-visible { outline-offset: -3px; }
.home .ai-spread .ai-card { z-index: 3; }
.home .amazon-carousel .carousel-track, .home .amazon-carousel .carousel-controls {
  position: relative;
  z-index: 3;
  pointer-events: none;
}
.home .amazon-carousel .carousel-slide, .home .amazon-carousel .carousel-case { pointer-events: auto; }

.case-brand :is(.poster-board, .logo-board) figure {
  background: #eeecea;
  border-color: #d2ccc7;
}
.case-brand :is(.poster-board, .logo-board) img { background: #e4e1de; }
.case-brand :is(.poster-board, .logo-board) figcaption { color: #383432; }


.render-filter [aria-current="true"] { border-color: var(--orange); color: var(--orange); }
.render-masonry {
  --masonry-gap: clamp(8px, 1.2vw, 16px);
  --masonry-columns: 4;
  column-count: var(--masonry-columns);
  column-gap: var(--masonry-gap);
  padding-top: clamp(18px, 3vw, 37px);
}
.render-masonry figure {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 var(--masonry-gap);
}
.render-masonry.is-packed {
  display: grid;
  grid-template-columns: repeat(var(--masonry-columns), minmax(0, 1fr));
  gap: var(--masonry-gap);
}
.render-masonry-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--masonry-gap);
}
.render-masonry-column figure { display: block; margin: 0; }
.render-masonry img { width: 100%; height: auto; }
.render-masonry-white { background: #fff; }
@media (max-width: 850px) {
  .render-masonry { --masonry-columns: 3; }
}
@media (max-width: 580px) {
  .render-masonry { --masonry-columns: 2; }
}

/* Localized light for the project previews. */
.home :is(.render-tile, .show-strip) { position: relative; }

.project-spotlight {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--light-strength, 0);
  transition: opacity 180ms ease-out;
}
.project-spotlight::before, .project-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.project-spotlight::before {
  background: radial-gradient(
    255px circle at var(--light-x) var(--light-y),
    rgb(255 159 105 / .14),
    rgb(255 139 81 / .04) 52%,
    transparent 76%
  );
}
.project-spotlight::after {
  padding: 1.5px;
  background: radial-gradient(
    169px circle at var(--light-x) var(--light-y),
    rgb(255 208 176 / .94),
    rgb(255 147 96 / .44) 51%,
    transparent 80%
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.project-spotlight-area { z-index: 5; }
.project-spotlight-area::before {
  background: radial-gradient(
    300px circle at var(--light-x) var(--light-y),
    rgb(255 156 96 / .085),
    transparent 79%
  );
}
.render-portraits > .project-spotlight-area::after,
.commerce-preview > .project-spotlight-area::after,
.ai-spread > .project-spotlight-area::after { display: none; }

@media (prefers-reduced-motion: reduce), (any-hover: none) {
  .project-spotlight { display: none; }
}

