/* V5 portfolio: editorial photo rhythm and complete graphic compositions. */
.hero-photo .hero-slide { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-image-position, center); opacity: 0; transition: opacity 1.3s ease; }
.hero-photo .hero-slide.active { opacity: 1; }
.hero-slide-controls { position: absolute; z-index: 3; right: var(--gutter); bottom: 92px; display: flex; align-items: center; gap: 8px; }
.hero-slide-controls button { width: 44px; height: 44px; position: relative; display: grid; place-items: center; }
.hero-slide-controls button::after { content: ''; display: block; width: 18px; height: 3px; border-radius: 10px; background: #ffffff73; transition: width .35s, background .35s; }
.hero-slide-controls button.active::after, .hero-slide-controls button:hover::after { width: 30px; background: #ff87bd; }
.work .section-heading { margin-bottom: 42px; }
.gallery.catalog-grid,
.gallery.catalog-grid.filtered {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3.2vw, 48px) clamp(16px, 2.2vw, 32px);
  align-items: start;
  overflow: visible;
  scroll-snap-type: none;
  padding: 0;
  margin: 0;
}
.gallery.catalog-grid .project:nth-child(n),
.gallery.catalog-grid.filtered .project:nth-child(n) {
  grid-column: span 4;
  flex: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  scroll-snap-align: unset;
}
.gallery.catalog-grid .project:nth-child(1),
.gallery.catalog-grid .project:nth-child(2) { grid-column: span 6; }
.gallery.catalog-grid .project[hidden] { display: none; }
.gallery.catalog-grid .project-image,
.gallery.catalog-grid .project-wide .project-image,
.gallery.catalog-grid .project-tall .project-image { aspect-ratio: 1.14; border-radius: 3px; }
.gallery.catalog-grid .project.is-portrait .project-image { aspect-ratio: .76; }
.gallery.catalog-grid .project:nth-child(1) .project-image { aspect-ratio: .58; background: #171217; }
.gallery.catalog-grid .project:nth-child(2) .project-image { aspect-ratio: 1.35; }
.gallery.catalog-grid .project:nth-child(4) .project-image,
.gallery.catalog-grid .project:nth-child(7) .project-image,
.gallery.catalog-grid .project:nth-child(10) .project-image { aspect-ratio: .87; }
.gallery.catalog-grid .project-image img,
.gallery.catalog-grid .project-open:hover .project-image img {
  transform: translate3d(0, var(--gallery-y, 0px), 0) scale(1.045);
  filter: none;
  object-position: var(--image-position, center);
}
.gallery.catalog-grid .project:nth-child(1) .project-image img,
.gallery.catalog-grid .project:nth-child(1) .project-open:hover .project-image img { object-fit: contain; transform: none; }
.gallery.catalog-grid .project-open:hover .project-image img { transform: translate3d(0, var(--gallery-y, 0px), 0) scale(1.085); }
.gallery.catalog-grid .project-caption { margin-top: 14px; }
.gallery.catalog-grid .project-caption strong { font-size: clamp(19px, 1.55vw, 25px); }
.gallery.catalog-grid .project-caption small { margin-top: 6px; line-height: 1.5; }
.gallery-catalog-actions { display: flex; align-items: center; gap: 20px; margin-top: 32px; }
.catalog-reveal { min-height: 52px; padding: 14px 22px; border: 1px solid #ff83c37d; border-radius: 999px; background: #250e1cc9; color: #fff; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; transition: background .25s, transform .25s; }
.catalog-reveal:hover { background: #a9165b; transform: translateY(-2px); }
.catalog-reveal[hidden] { display: none; }
.gallery-catalog-actions p { color: #b7aab2; font-size: 11px; line-height: 1.5; }

.design-work .section-heading { margin-bottom: 30px; }
.catalog-design-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); margin-top: 44px; }
.catalog-design-card { grid-column: span 4; display: block; min-width: 0; text-align: left; }
.catalog-design-card:nth-child(1), .catalog-design-card:nth-child(2) { grid-column: span 6; }
.catalog-design-frame { display: grid; place-items: center; overflow: hidden; min-height: 0; aspect-ratio: 1.18; padding: clamp(16px, 2vw, 30px); border-radius: 17px; border: 1px solid #ffffff23; background: radial-gradient(circle at 45% 35%, #3d1730ae, #110f13 67%); box-shadow: inset 0 1px 0 #ffffff18, 0 20px 55px #0005; transition: border-color .35s, transform .45s, box-shadow .35s; }
.catalog-design-card:nth-child(1) .catalog-design-frame,
.catalog-design-card:nth-child(2) .catalog-design-frame { aspect-ratio: 1.3; }
.catalog-design-card:hover .catalog-design-frame { border-color: #ff78ba9c; transform: translateY(-4px); box-shadow: inset 0 1px 0 #ffffff18, 0 24px 70px #0008; }
.catalog-design-frame img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .45s; }
.catalog-design-card:hover .catalog-design-frame img { transform: scale(1.025); }
.catalog-design-meta { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-top: 15px; }
.catalog-design-meta strong { display: block; font-size: clamp(19px, 1.55vw, 26px); font-weight: 400; line-height: 1.2; letter-spacing: -.04em; }
.catalog-design-meta small { display: block; margin-top: 8px; color: #b9aeb5; font-size: 9px; letter-spacing: 1px; line-height: 1.5; text-transform: uppercase; }
.catalog-design-meta > span { flex: none; color: #ff8fca; font-size: 23px; line-height: 1; }
.design-viewer { width: min(1120px, calc(100vw - 30px)); max-height: calc(100svh - 30px); margin: auto; padding: 0; color: #fff; background: #100d11; border: 1px solid #ffffff39; border-radius: 20px; box-shadow: 0 30px 100px #000b; }
.design-viewer::backdrop { background: #030203df; backdrop-filter: blur(14px); }
.design-viewer-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; width: 100%; height: min(850px, calc(100svh - 30px)); padding: clamp(14px, 2vw, 28px); }
.design-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.design-viewer-head > div { min-width: 0; }
.design-viewer-head p { color: #ff88c4; font-size: 9px; letter-spacing: 1.3px; text-transform: uppercase; }
.design-viewer-head h3 { margin-top: 5px; font-size: clamp(23px, 3vw, 38px); font-weight: 400; letter-spacing: -.04em; line-height: 1.1; }
.design-viewer-close { flex: none; width: 48px; height: 48px; border: 1px solid #ffffff58; border-radius: 50%; font-size: 28px; line-height: 1; }
.design-viewer-stage { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 10px; min-height: 0; }
.design-viewer-stage img { display: block; width: 100%; height: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
.design-viewer-arrow { width: 46px; height: 46px; border: 1px solid #ffffff54; border-radius: 50%; font-size: 23px; }
.design-viewer-arrow:hover, .design-viewer-close:hover { background: #d72071; border-color: #d72071; }
.design-viewer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #c4b8c0; font-size: 11px; }
.design-viewer-footer p { flex: 1; line-height: 1.45; }
.design-viewer-footer span { flex: none; color: #ff88c4; letter-spacing: 1px; }

.motorsport { position: relative; isolation: isolate; border-block: 1px solid #ff8cc22b; background: radial-gradient(circle at 78% 20%, #b8194b19, transparent 35%), linear-gradient(180deg, #120d12, #0c0a0d); }
.motorsport .section-heading { margin-bottom: 36px; }
.race-film-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(15px, 2vw, 27px); }
.race-film { grid-column: span 2; min-width: 0; }
.race-film:nth-child(1), .race-film:nth-child(2) { grid-column: span 3; }
.race-film .film-open { display: block; position: relative; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 9px; background: #18131a; }
.race-film .film-open img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); filter: saturate(.9); transition: transform .6s, filter .6s; }
.race-film .film-open:hover img { transform: scale(1.045); filter: saturate(1.1); }
.race-film .film-type { z-index: 2; }
.race-film-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.race-film-meta h3 { font-size: clamp(17px, 1.7vw, 24px); font-weight: 400; letter-spacing: -.04em; }
.race-film-meta a { flex: none; color: #ff8ec9; font-size: 10px; border-bottom: 1px solid #ff8ec960; padding-block: 6px; }
.race-reels-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; border-top: 1px solid #ffffff31; padding-top: 32px; margin-top: 60px; margin-bottom: 22px; }
.race-reels-heading h3 { margin-top: 9px; font-size: clamp(33px, 4vw, 55px); font-weight: 400; letter-spacing: -.06em; line-height: 1.1; }
.race-reels-heading h3 em { color: #f287bd; }
.race-reels-heading > p { max-width: 280px; color: #bcb1b9; font-size: 11px; line-height: 1.6; }
.race-reels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(15px, 2vw, 28px); max-width: 760px; }
.race-reel { position: relative; display: block; width: 100%; overflow: hidden; aspect-ratio: .85; border-radius: 10px; background: #151116; text-align: left; }
.race-reel img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .6s; }
.race-reel:hover img { transform: scale(1.04); }
.race-reel::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, #070406d9); pointer-events: none; }
.race-reel-play { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #f9ecf3d9; color: #1d0b17; font-size: 20px; }
.race-reel-title { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; font-size: clamp(19px, 2.2vw, 29px); line-height: 1.2; letter-spacing: -.04em; }
.race-reel-title small { display: block; margin-top: 8px; font-size: 9px; letter-spacing: 1.4px; color: #e4c4d6; }
.race-source-note { margin-top: 19px; color: #a99ca5; font-size: 10px; line-height: 1.6; }

.retail-lab { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr); gap: clamp(20px, 3vw, 50px); margin: 18px 0 56px; padding: clamp(22px, 3vw, 42px); border: 1px solid #ff8fc752; border-radius: 25px; background: linear-gradient(115deg, #231018d9, #0c0b0eea 60%); box-shadow: 0 25px 70px #0006, inset 0 1px 0 #ffffff1b; }
.retail-lab-copy { display: flex; flex-direction: column; align-items: start; justify-content: center; }
.retail-lab-copy h3 { margin: 17px 0; font-size: clamp(34px, 4vw, 62px); font-weight: 400; line-height: 1.03; letter-spacing: -.06em; }
.retail-lab-copy h3 em { color: #f88bc4; }
.retail-lab-copy > p:not(.tiny-index) { max-width: 350px; color: #c7b9c2; font-size: 12px; line-height: 1.65; }
.retail-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.retail-controls button { min-height: 43px; padding: 10px 14px; border: 1px solid #ffffff45; border-radius: 40px; font-size: 10px; transition: background .25s, border-color .25s; }
.retail-controls button:hover, .retail-controls button.active { background: #b3155b; border-color: #d9528f; }
.retail-disclaimer { margin-top: 22px; color: #aa9ba5 !important; font-size: 10px !important; }
.retail-scene { --retail-x: 0px; --retail-y: 0px; position: relative; isolation: isolate; min-height: 420px; overflow: hidden; border-radius: 13px; background: radial-gradient(circle at 50% 20%, #541733, #1a1018 58%, #09090b); perspective: 900px; }
.retail-scene::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, #ffffff09 0 1px, transparent 1px 34%), linear-gradient(90deg, #3c0b2360, transparent 30%, #f65fac13); pointer-events: none; }
.retail-backboard { position: absolute; top: 8%; left: 16%; right: 16%; height: 45%; padding: 9px; background: #110e12; border: 8px solid #17131a; box-shadow: 0 7px 20px #000b, 0 0 45px #fc3b9455; transform: translate3d(calc(var(--retail-x) * -.4), calc(var(--retail-y) * -.35), 0); transition: transform .15s; }
.retail-backboard img { width: 100%; height: 100%; object-fit: contain; }
.retail-shelf { position: absolute; left: 7%; right: 7%; bottom: 18%; height: 12px; background: linear-gradient(#e1dfe0, #6e6068 45%, #261c23); transform: rotateX(50deg) translate3d(var(--retail-x), var(--retail-y), 0); box-shadow: 0 25px 26px #0009; }
.retail-shelf::after { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 35px; background: linear-gradient(90deg, #1b1319, #5a454f 50%, #1c1318); }
.retail-stand { position: absolute; bottom: 20%; width: 22%; height: 23%; display: grid; place-items: center; padding: 5px; background: #100e11; box-shadow: 0 8px 22px #000a; transform: translate3d(var(--retail-x), var(--retail-y), 0); }
.retail-stand img { width: 100%; height: 100%; object-fit: contain; }
.retail-stand-left { left: 10%; }
.retail-stand-right { right: 10%; }
.retail-scene[data-scene="display"] .retail-backboard { top: 6%; left: 8%; right: 8%; height: 75%; }
.retail-scene[data-scene="display"] .retail-stand, .retail-scene[data-scene="display"] .retail-shelf { opacity: 0; }
.retail-scene[data-scene="campaign"] .retail-backboard { top: 7%; left: 21%; right: 21%; height: 82%; }
.retail-scene[data-scene="campaign"] .retail-stand, .retail-scene[data-scene="campaign"] .retail-shelf { opacity: 0; }
.retail-scene-label { position: absolute; z-index: 2; left: 13px; bottom: 11px; color: #e1c4d2; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }

.ai-lab .section-heading { margin-bottom: 36px; }
.agent-showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); min-height: 570px; overflow: hidden; border: 1px solid #ff87c747; border-radius: 24px; background: #151015; box-shadow: 0 28px 70px #0005; }
.agent-image-wrap { position: relative; min-width: 0; min-height: 450px; background: #241b22; }
.agent-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.agent-image-wrap > span { position: absolute; left: 20px; bottom: 20px; padding: 10px 13px; border: 1px solid #ffffff58; border-radius: 30px; background: #100b10d9; font-size: 9px; letter-spacing: 1px; }
.agent-panel { display: flex; flex-direction: column; align-items: start; padding: clamp(24px, 3.5vw, 55px); background: radial-gradient(circle at 90% 0, #7c16462b, transparent 45%); }
.agent-panel > .tiny-index { color: #ff92c6; }
.agent-panel h3 { margin: 17px 0 15px; font-size: clamp(45px, 5vw, 80px); font-weight: 400; line-height: 1.02; letter-spacing: -.07em; }
.agent-panel h3 em { color: #f68cbe; }
.agent-summary { max-width: 510px; color: #d1c5ce; font-size: 13px; line-height: 1.7; }
.agent-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 5px; margin: auto 0 14px; padding-top: 24px; }
.agent-steps button { min-height: 47px; padding: 10px 7px; border: 1px solid #ffffff32; border-radius: 8px; color: #c2b4bf; font-size: 10px; white-space: nowrap; }
.agent-steps button.active, .agent-steps button:hover { border-color: #f68cbe; color: #fff; background: #b7195942; }
.agent-step-frame { min-height: 100px; width: 100%; padding: 18px 19px; border: 1px solid #ffffff24; border-radius: 10px; background: #09090bab; }
.agent-detail[hidden] { display: none; }
.agent-detail strong { display: block; font-size: 14px; font-weight: 500; }
.agent-detail p { margin-top: 7px; color: #c7bdc5; font-size: 11px; line-height: 1.6; }
.agent-demo-note { margin-top: 13px; color: #a99ba6; font-size: 9px; line-height: 1.6; }
.agent-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 38px; }
.agent-services article { padding: 25px; border-top: 1px solid #f287bd6d; background: #1c111ba6; }
.agent-services article > span { color: #ed7eaf; font-size: 10px; letter-spacing: 1px; }
.agent-services h3 { margin: 25px 0 12px; font-size: clamp(20px, 2vw, 29px); font-weight: 400; letter-spacing: -.04em; }
.agent-services p { color: #c5b8c2; font-size: 12px; line-height: 1.7; }
.agent-services .chapter-cta { grid-column: 1 / -1; margin-top: 5px; }

@media (max-width: 950px) {
  .gallery.catalog-grid .project:nth-child(n), .gallery.catalog-grid.filtered .project:nth-child(n) { grid-column: span 6; }
  .catalog-design-card:nth-child(n) { grid-column: span 6; }
  .agent-showcase { grid-template-columns: 1fr; }
  .agent-image-wrap { height: 480px; }
  .agent-steps { margin-top: 25px; }
}
@media (max-width: 620px) {
  .hero-slide-controls { bottom: 72px; right: 16px; }
  .hero-slide-controls button { width: 35px; }
  .hero-slide-controls button::after { width: 13px; }
  .hero-slide-controls button.active::after { width: 23px; }
  .gallery.catalog-grid, .gallery.catalog-grid.filtered { grid-template-columns: 1fr; gap: 28px; }
  .gallery.catalog-grid .project:nth-child(n), .gallery.catalog-grid.filtered .project:nth-child(n) { grid-column: 1; }
  .gallery.catalog-grid .project-image, .gallery.catalog-grid .project-wide .project-image, .gallery.catalog-grid .project-tall .project-image, .gallery.catalog-grid .project:nth-child(1) .project-image, .gallery.catalog-grid .project:nth-child(2) .project-image, .gallery.catalog-grid .project:nth-child(4) .project-image, .gallery.catalog-grid .project:nth-child(7) .project-image, .gallery.catalog-grid .project:nth-child(10) .project-image { aspect-ratio: 1.08; }
  .gallery.catalog-grid .project.is-portrait .project-image { aspect-ratio: .9; }
  .gallery.catalog-grid .project:nth-child(1) .project-image { aspect-ratio: .58; }
  .gallery-catalog-actions { align-items: start; flex-direction: column; }
  .catalog-design-grid { grid-template-columns: 1fr; gap: 30px; }
  .catalog-design-card:nth-child(n) { grid-column: 1; }
  .catalog-design-card:nth-child(n) .catalog-design-frame { aspect-ratio: 1.16; }
  .design-viewer { width: calc(100vw - 12px); max-height: calc(100svh - 12px); border-radius: 12px; }
  .design-viewer-inner { height: calc(100svh - 12px); padding: 14px; }
  .design-viewer-stage { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 2px; }
  .design-viewer-arrow { width: 38px; height: 38px; }
  .design-viewer-footer { font-size: 10px; }
  .race-film-grid { grid-template-columns: 1fr; }
  .race-film:nth-child(n) { grid-column: 1; }
  .race-reels-heading { align-items: start; flex-direction: column; margin-top: 43px; }
  .race-reels { gap: 10px; }
  .race-reel { aspect-ratio: .68; }
  .race-reel-play { width: 49px; height: 49px; }
  .race-reel-title { left: 11px; right: 9px; bottom: 10px; font-size: 16px; }
  .race-reel-title small { font-size: 7px; letter-spacing: .5px; }
  .retail-lab { grid-template-columns: 1fr; }
  .retail-scene { min-height: 330px; }
  .agent-image-wrap { height: 350px; min-height: 350px; }
  .agent-panel { padding: 24px 18px; }
  .agent-panel h3 { font-size: 47px; }
  .agent-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-services { grid-template-columns: 1fr; gap: 10px; }
  .agent-services .chapter-cta { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-design-card:hover .catalog-design-frame, .catalog-reveal:hover { transform: none; }
  .hero-photo .hero-slide { transition: none; }
}
