/* Shared layout refinements for the portfolio and its service pages. */
:root {
  --muted: #aaa8a1;
}

.mobile-menu {
  box-sizing: border-box;
  justify-content: flex-start;
  gap: clamp(.6rem, 1.8vh, 1.2rem);
  overflow-y: auto;
  padding: max(6rem, env(safe-area-inset-top)) 1.5rem max(2rem, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

.mobile-menu a,
.mobile-menu .mobile-worlds-trigger {
  max-width: 100%;
  font-size: clamp(1.45rem, 4.1vh, 2.15rem);
  line-height: 1.12;
  text-align: center;
  overflow-wrap: anywhere;
}

.mobile-menu a:focus-visible,
.mobile-menu .mobile-worlds-trigger:focus-visible,
.hamburger:focus-visible,
.lang-btn:focus-visible,
.logo-wordmark-alt:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 5px;
}

.dept-hero {
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

#hero {
  min-height: min(78svh, 780px);
  padding-top: 6rem;
  padding-bottom: 2.5rem;
}

#hero .hero-title {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
}

#hero .hero-title .dept-line--accent {
  font-size: clamp(2.5rem, 6.4vw, 5.4rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}









.section-pad {
  padding-block: clamp(5rem, 8vw, 7rem);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.projects-wrapper {
  gap: clamp(3rem, 5vw, 5rem);
}

#musica {
  margin-top: 0 !important;
}

.music-card--no-artwork .proj-visual {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #191a19;
}

.music-card__artwork-title {
  max-width: 12ch;
  color: var(--bone);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  line-height: 1;
  text-align: center;
}

@media (max-width: 900px) {
  #hero {
    min-height: min(76svh, 700px);
  }
}

/* Image-led refinement, October 2026. */
body { background: #080909; }

header {
  padding-block: 1rem;
  mix-blend-mode: normal;
  background: rgba(8, 9, 9, .88);
  backdrop-filter: blur(14px);
}

.logo-wordmark-alt { width: 3.25rem; }
.nav-dropdown {
  background: #111211;
  padding: 1.25rem;
  border: 1px solid var(--line);
}

#hero {
  min-height: min(720px, calc(100svh - 160px));
  padding-top: 9rem;
  padding-bottom: 4rem;
  text-align: left;
  isolation: isolate;
}

.portfolio-hero-image,
.dept-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: -2;
}

#hero::after,
.dept-hero:has(.dept-hero-image)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 7, 7, .94), rgba(6, 7, 7, .76) 46%, rgba(6, 7, 7, .12));
  pointer-events: none;
}

#hero #waveCanvas { display: none; }
#hero .hero-content { max-width: 1400px; }
#hero .hero-title {
  max-width: 21ch;
  font-size: 48px;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
}
#hero .hero-title:focus { outline: none; }
#hero .hero-title .dept-line--accent { font-size: 66px; }
#hero .hero-title .dept-line--gradient {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--bone);
}
#hero .hero-dept-sub {
  max-width: 45ch;
  font-size: 18px;
  color: #e2ded6;
  margin: 0 0 2rem;
}
#hero .hero-meta { justify-content: flex-start; }
.hero-btn { border-radius: 4px; letter-spacing: 0; }
.hero-btn-primary { background: var(--amber); box-shadow: none; }
.hero-btn-primary:hover { box-shadow: none; }

.section-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; }
.work-pillar-sub { font-size: 16px; }
.work-reel-video { border-radius: 4px; }
.work-project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
}
.work-project-row {
  flex-direction: column;
  align-items: stretch;
  gap: .85rem;
  padding: 0;
  border: 0;
}
.work-project-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
}
.work-project-info h4 { font-size: 24px; margin-bottom: .5rem; }
.work-project-info p { font-size: 14px; line-height: 1.5; }
.work-project-tag { display: none; }
.work-dropdown summary { font-size: 12px; letter-spacing: 0; }
.work-project-row:hover .work-project-thumb { opacity: .85; }
.reel-platform-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: .85rem;
  font-size: 13px;
  color: var(--muted);
}
.reel-platform-link img { width: 16px; height: 16px; filter: invert(1); }
.footer-social a img { width: 22px; height: 22px; filter: invert(1); }
.other-world__brand-mark { filter: invert(1); }
.reel-platform-link:hover { color: var(--bone); }
.reel-platform-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }

.services-grid {
  gap: 2rem;
  padding: 0;
  border: 0;
  background: none;
}
.service-card:has(.service-card__image),
.visual-card:has(.visual-card__image) {
  min-height: 0;
  padding: 0 1.5rem 1.5rem;
  background: #121413;
  border: 1px solid var(--line);
  border-radius: 4px;
  transform: none;
}
.service-card__image,
.visual-card__image {
  display: block;
  flex: none;
  width: calc(100% + 3rem);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 -1.5rem 1.5rem;
}
.service-card:has(.service-card__image) .service-card__number,
.visual-card:has(.visual-card__image) .visual-card__number {
  margin-bottom: .85rem;
  font-size: 11px;
}
.service-card:has(.service-card__image) .service-card__title,
.visual-card:has(.visual-card__image) .visual-card__title {
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: .75rem;
}
.service-card:has(.service-card__image) .service-card__copy,
.visual-card:has(.visual-card__image) .visual-card__copy {
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: #c2c0b9;
}
.service-card:has(.service-card__image) .service-card__tags { display: none; }
.service-card__cta {
  border-radius: 4px;
  letter-spacing: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  margin-top: auto;
}
.service-card__cta:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.visual-card:has(.visual-card__image) .visual-card__tags { font-size: 11px; }

.dept-hero:has(.dept-hero-image) {
  position: relative;
  isolation: isolate;
  max-width: none;
  overflow: hidden;
  padding-top: 9rem;
}
.dept-hero:has(.dept-hero-image) h1 { max-width: 21ch; font-size: 56px; letter-spacing: 0; }
.dept-hero:has(.dept-hero-image) .dept-hero-lead {
  max-width: 48ch;
  font-size: 18px;
  color: #e2ded6;
}
.dept-hero-eyebrow { max-width: 50ch; }
.process-card h3 { font-size: 24px; }
.process-card p { font-size: 15px; }
.music-card__meta { font-size: 13px; }
.music-card .proj-visual img { filter: none; opacity: 1; }

@media (min-width: 1600px) {
  #hero .hero-title { font-size: 60px; }
  #hero .hero-title .dept-line--accent { font-size: 76px; }
}

@media (max-width: 900px) {
  #hero { min-height: 660px; padding-top: 8rem; }
  #hero .hero-title { font-size: 38px; }
  #hero .hero-title .dept-line--accent { font-size: 52px; }
  .dept-hero:has(.dept-hero-image) h1 { font-size: 42px; }
  #hero::after,
  .dept-hero:has(.dept-hero-image)::after {
    background: linear-gradient(90deg, rgba(6, 7, 7, .92), rgba(6, 7, 7, .55));
  }
}

@media (max-width: 600px) {
  #hero { min-height: 640px; padding-top: 7.5rem; padding-bottom: 3rem; }
  #hero .hero-title { font-size: 30px; max-width: 100%; }
  #hero .hero-title .dept-line--accent { font-size: 42px; }
  #hero .hero-dept-sub { font-size: 16px; max-width: 32ch; }
  #hero .hero-meta { align-items: flex-start; }
  .portfolio-hero-image { object-position: 62% center; }
  .services-grid { gap: 1.5rem; }
  .work-project-list { grid-template-columns: 1fr; }
  .service-card:has(.service-card__image) .service-card__title,
  .visual-card:has(.visual-card__image) .visual-card__title { font-size: 28px; }
  .dept-hero:has(.dept-hero-image) h1 { font-size: 34px; }
  .dept-hero:has(.dept-hero-image) .dept-hero-lead { font-size: 16px; }
}

@media (max-width: 360px) {
  #hero .hero-title { font-size: 26px; }
  #hero .hero-title .dept-line--accent { font-size: 36px; }
}

.work-pillars { margin-bottom: 2rem; }
.projects-wrapper { gap: 2rem; }
#work { padding-top: 3.5rem; padding-bottom: 2.5rem; }
#services { padding-top: 3.5rem; }
#work, #services, #vision, #faq { scroll-margin-top: 6rem; }
.footer-content { margin-top: 2rem; margin-bottom: 4rem; }
#musica {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
#musica h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}
