/* AXION gallery layer. Original films, people and client marks stay intact. */
.gallery-site { --gallery-line: rgba(244, 242, 236, 0.2); }
.gallery-site #network { opacity: 0.18; }
.gallery-site .hero-forward-content {
  right: 6.5vw;
  bottom: clamp(116px, 18vh, 195px);
  left: 6.5vw;
  padding-bottom: 56px;
}
.gallery-site .hero-forward-title { font-weight: 500; letter-spacing: -0.035em; }
.gallery-site .hero-word:hover > span { color: #f8f6f0; }
.gallery-site .hero-light { background: radial-gradient(ellipse 32% 52% at var(--hero-pointer-x) var(--hero-pointer-y), rgba(239, 185, 24, 0.065), transparent 80%); }
.hero-gallery-frame {
  position: absolute;
  z-index: 1;
  inset: calc(var(--header-h) + 32px) 3.3vw 88px;
  pointer-events: none;
}
.hero-gallery-frame i {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 0 solid rgba(244, 242, 236, 0.36);
}
.hero-gallery-frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hero-gallery-frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hero-gallery-frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hero-gallery-frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.gallery-site .hero-film-control { top: calc(var(--header-h) + 50px); right: 5vw; border-color: rgba(244, 242, 236, 0.2); font-size: 12px; }
.gallery-site .hero-explore { border-color: rgba(244, 242, 236, 0.28); background: rgba(10, 11, 12, 0.15); }
.gallery-site .hero-explore:hover { background: var(--accent); }
.gallery-site .hero-path { opacity: 0.65; }
.gallery-site .hero-path > span { width: 12%; }
.gallery-site .section-heading { margin-bottom: clamp(48px, 6vw, 90px); }
.gallery-site .services-section .section-heading { grid-template-columns: 64px minmax(0, 1fr); }
.gallery-site .services-section h2 { max-width: 950px; font-size: clamp(34px, 4.1vw, 64px); }
.gallery-site .eyebrow { letter-spacing: 0.045em; font-size: 12px; }
.gallery-site .section-intro { font-size: 16px; }
.gallery-site .service-list { gap: 16px; }
.gallery-site .service-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 18px;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.gallery-site .service-card-head { grid-template-columns: 24px minmax(0, 1fr) 18px; min-height: 116px; }
.gallery-site .service-card-title strong { font-size: clamp(18px, 1.55vw, 25px); line-height: 1.16; }
.gallery-site .service-card-title small { font-size: 13px; line-height: 1.55; }
.gallery-site .service-card .num { font-size: 12px; padding-top: 2px; }
.gallery-site .service-card-main { flex: 1; min-height: 180px; aspect-ratio: auto; }
.gallery-site .service-card.has-portfolio .service-card-main { min-height: 144px; }
.gallery-site .service-card-main img { filter: saturate(0.7); transform: scale(1.025); }
.gallery-site .service-card.is-active .service-card-main img { filter: saturate(1); transform: scale(1.07); }
.gallery-site .service-card-samples { flex: none; width: 100%; height: 64px; gap: 5px; }
.gallery-site .service-card-samples span { aspect-ratio: auto; }
.gallery-site .service-card-kind { min-height: 24px; font-size: 12px; letter-spacing: 0; }
.gallery-site .service-card:hover,
.gallery-site .service-card:focus-visible,
.gallery-site .service-card.is-active,
.gallery-site .service-card.is-pointer-active { transform: none; box-shadow: none; }
.gallery-site .service-card.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--surface-raised) 40%, transparent); }
.gallery-site .service-card.is-active .row-arrow { transform: translate(2px, -2px); }
.gallery-site .service-card::before { display: none; }
.gallery-site .service-card-type { min-height: 180px; padding: 18px; }
.gallery-site .service-card-type b { font-size: clamp(30px, 3.3vw, 52px); }
.gallery-site .service-card-type small { font-size: 12px; }
.gallery-site .service-card-type::before { content: "04 / MEDIA"; }

/* A naturally scrolling, staggered hanging of the existing capabilities. */
.gallery-site .work-section { overflow: clip; background: #0b0d0e; }
.gallery-site .work-section::after { display: none; }
.gallery-site .work-section .section-shell { width: min(100%, 1560px); }
.gallery-site .work-heading { grid-template-columns: 64px 1fr; }
.gallery-site .work-heading h2 { max-width: 900px; }
.gallery-index {
  position: sticky;
  z-index: 5;
  top: var(--header-h);
  display: flex;
  gap: 24px;
  margin-bottom: 62px;
  padding: 18px 0;
  border-top: 1px solid var(--gallery-line);
  border-bottom: 1px solid var(--gallery-line);
  background: rgba(11, 13, 14, 0.95);
  backdrop-filter: blur(16px);
}
.gallery-nav-link { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 32px; flex: 1; color: rgba(244, 242, 236, 0.65); font-size: 13px; }
.gallery-nav-link span { min-width: 0; overflow-wrap: anywhere; }
.gallery-nav-link b { font-weight: 500; color: rgba(244, 242, 236, 0.4); font-variant-numeric: tabular-nums; }
.gallery-nav-link::after { content: ""; position: absolute; height: 1px; inset-inline: 0; bottom: -19px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease); }
.gallery-nav-link.is-current { color: #f4f2ec; }
.gallery-nav-link.is-current b { color: var(--accent); }
.gallery-nav-link.is-current::after { transform: scaleX(1); }
.gallery-nav-link:focus-visible { outline: 1px solid var(--accent); outline-offset: 5px; }
.gallery-site .work-grid { gap: clamp(72px, 9vw, 144px) 30px; align-items: start; }
.gallery-site .work-item { position: relative; border: 0; border-radius: 0; background: transparent; overflow: visible; scroll-margin-top: calc(var(--header-h) + 106px); }
.gallery-site .work-item:nth-child(1) { grid-column: 1 / 8; }
.gallery-site .work-item:nth-child(2) { grid-column: 9 / 13; margin-top: 180px; }
.gallery-site .work-item:nth-child(3) { grid-column: 1 / 6; }
.gallery-site .work-item:nth-child(4) { grid-column: 7 / 13; margin-top: 100px; }
.gallery-site .work-item figure { position: relative; aspect-ratio: 5 / 4; overflow: hidden; }
.gallery-site .work-item:nth-child(2) figure { aspect-ratio: 4 / 5; }
.gallery-site .work-item:nth-child(4) figure { aspect-ratio: 1; }
.gallery-site .work-item > div { position: relative; grid-template-columns: 28px minmax(0, 1fr); gap: 9px 18px; padding: 24px 36px 26px 0; border-bottom: 1px solid var(--gallery-line); }
.gallery-site .work-item > div::after { content: "↗"; position: absolute; top: 22px; right: 0; color: var(--accent); font-size: 25px; transition: transform 400ms var(--ease); }
.gallery-site .work-item:hover > div::after { transform: translate(3px, -3px); }
.gallery-site .work-item > div > span { font-size: 12px; }
.gallery-site .work-item h3 { font-size: clamp(23px, 2.4vw, 34px); letter-spacing: -0.025em; }
.gallery-site .work-item p { grid-column: 2; font-size: 15px; line-height: 1.65; color: rgba(244, 242, 236, 0.68); }
.gallery-site .work-item img:not(.gallery-work-preview) { transform: translateY(var(--gallery-y, 0px)) scale(1.07); filter: saturate(0.85); transition: filter 600ms ease, transform 250ms ease-out; }
.gallery-site .work-item.is-in-view img { filter: saturate(1); }
.gallery-site .work-item .gallery-work-preview { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.04); filter: none; transition: opacity 650ms ease, transform 1000ms var(--ease); }
.gallery-site .work-item:focus-visible { outline: 1px solid var(--accent); outline-offset: 10px; }
.gallery-site .work-item:focus-visible .gallery-work-preview { opacity: 1; transform: scale(1); }
.gallery-site .work-item::before { display: none; }
.gallery-site .work-item.reveal.is-visible.is-pointer-active,
.gallery-site .work-item.reveal.is-visible:active,
.gallery-site .work-item:hover { transform: none; }
.gallery-site .work-type-visual { background: #151719 !important; }
.gallery-site .work-type-visual > span { font-size: clamp(56px, 7vw, 104px); letter-spacing: -0.065em; }
.gallery-site .work-type-visual > small { font-size: 12px; }
.gallery-site .work-type-visual::before { font-size: 11px; }
.gallery-site .process-map { box-shadow: none; border: 1px solid var(--line); }
.gallery-site .process-visual { clip-path: none; }
.gallery-site .process-detail-copy > p:not(.eyebrow) { font-size: 16px; }
.gallery-site .process-node-number { transition: background 350ms ease, color 350ms ease, box-shadow 350ms ease; }
.gallery-site .recommendation-card { transition: transform 550ms var(--ease), border-color 350ms ease; }
.gallery-site .recommendation-card:hover { transform: translateY(-7px); }
.gallery-site .team-card img { transition: filter 600ms ease, transform 1000ms var(--ease); }
.gallery-site .team-card:hover img { transform: scale(1.035); }
html[dir="rtl"] .gallery-site .gallery-nav-link::after { transform-origin: right; }
html[dir="rtl"] .gallery-site .work-item > div { padding-right: 0; padding-left: 36px; }
html[dir="rtl"] .gallery-site .work-item > div::after { right: auto; left: 0; }

@media (min-width: 1181px) {
  .gallery-site .service-list { display: flex; align-items: stretch; }
  .gallery-site .service-card { flex: 1 1 0; height: clamp(530px, 40vw, 590px); transition: flex-grow 750ms var(--ease), background 500ms ease, border-color 400ms ease; }
  .gallery-site .service-card.is-active { flex-grow: 1.45; }
}
@media (hover: hover) and (pointer: fine) {
  .gallery-site .work-item:hover .gallery-work-preview { opacity: 1; transform: scale(1); }
  .gallery-site .work-item figure::after { content: "↗"; position: absolute; z-index: 3; left: clamp(30px, var(--card-x, 80%), calc(100% - 30px)); top: clamp(30px, var(--card-y, 70%), calc(100% - 30px)); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #0b0d0e; font-size: 25px; opacity: 0; transform: translate(-50%, -50%) scale(0.6); transition: opacity 300ms ease, transform 400ms var(--ease); pointer-events: none; }
  .gallery-site .work-item.is-pointer-active figure::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero.is-motion-ready .hero-gallery-frame i { animation: gallery-frame-enter 1600ms 180ms var(--ease) both; }
  .hero.is-motion-ready .hero-gallery-frame i:nth-child(2) { animation-delay: 280ms; }
  .hero.is-motion-ready .hero-gallery-frame i:nth-child(3) { animation-delay: 380ms; }
  .hero.is-motion-ready .hero-gallery-frame i:nth-child(4) { animation-delay: 480ms; }
  .gallery-site.js-ready .work-item.reveal figure { clip-path: inset(9% 7% 9% 7%); transition: clip-path 1100ms var(--ease); }
  .gallery-site.js-ready .work-item.reveal.is-visible figure { clip-path: inset(0); }
}
@keyframes gallery-frame-enter { from { opacity: 0; scale: 0.5; } to { opacity: 1; scale: 1; } }
@media (max-width: 1180px) {
  .gallery-site .service-card { flex-basis: min(44vw, 330px); height: 530px; }
  .gallery-site .service-card-title strong { font-size: 24px; }
  .gallery-site .work-item:nth-child(2) { grid-column: 9 / 13; margin-top: 100px; }
  .gallery-index { gap: 16px; }
  .gallery-nav-link { font-size: 12px; }
}
@media (max-width: 820px) {
  .gallery-site .hero-forward-content { left: 6vw; right: 6vw; bottom: 128px; }
  .hero-gallery-frame { inset: calc(var(--header-h) + 22px) 16px 88px; }
  .hero-gallery-frame i { width: 20px; height: 20px; }
  .gallery-site .hero-film-control { top: calc(var(--header-h) + 34px); right: 28px; }
  .gallery-site .section-heading,
  .gallery-site .work-heading,
  .gallery-site .services-section .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .gallery-site .service-card { flex-basis: min(76vw, 340px); min-height: 480px; height: 510px; }
  .gallery-site .service-card-head { min-height: 110px; }
  .gallery-site .service-card-title small { font-size: 14px; }
  .gallery-index { top: var(--header-h); gap: 18px; margin-bottom: 38px; padding: 14px 0; }
  .gallery-nav-link { flex: none; min-height: 32px; }
  .gallery-nav-link.is-current { flex: 1; }
  .gallery-nav-link span { display: none; }
  .gallery-nav-link.is-current span { display: block; font-size: 12px; }
  .gallery-nav-link:not(.is-current) { min-width: 32px; justify-content: center; }
  .gallery-nav-link::after { bottom: -15px; }
  .gallery-site .work-grid { display: grid; grid-template-columns: 1fr; gap: 60px; margin: 0; padding: 0; overflow: visible; }
  .gallery-site .work-grid .work-item { grid-column: 1; width: 100%; margin-top: 0; }
  .gallery-site .work-item:nth-child(2) { width: 86%; justify-self: end; }
  .gallery-site .work-item:nth-child(3) { width: 90%; }
  .gallery-site .work-item:nth-child(2) figure { aspect-ratio: 5 / 4; }
  .gallery-site .work-item > div { padding-top: 18px; gap: 8px 12px; }
  .gallery-site .work-item h3 { font-size: 26px; }
  .gallery-site .work-item p { font-size: 14px; }
  .gallery-site .work-type-visual { min-height: 250px; }
}
@media (max-width: 380px) {
  .gallery-index { gap: 10px; }
  .gallery-nav-link:not(.is-current) { min-width: 28px; }
  .gallery-nav-link { gap: 6px; }
  .gallery-site .hero-forward-content { left: 24px; right: 24px; }
}
@media (max-height: 500px) and (min-width: 601px) {
  .gallery-site .hero-forward-content { bottom: 65px; padding-bottom: 36px; }
  .hero-gallery-frame { bottom: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-site .service-card,
  .gallery-site .service-card img,
  .gallery-site .work-item img,
  .gallery-site .work-item figure,
  .gallery-site .gallery-nav-link::after,
  .gallery-site .hero-gallery-frame i { animation: none !important; transition: none !important; }
  .gallery-site .work-item img:not(.gallery-work-preview),
  .gallery-site .service-card-main img { transform: none !important; }
  .gallery-site .work-item figure::after { display: none; }
}
